Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpi4py version 4.0.0 prevents installation of FEniCS adapter #180

Closed
NiklasVin opened this issue Sep 4, 2024 · 0 comments · Fixed by #181
Closed

mpi4py version 4.0.0 prevents installation of FEniCS adapter #180

NiklasVin opened this issue Sep 4, 2024 · 0 comments · Fixed by #181
Assignees
Milestone

Comments

@NiklasVin
Copy link
Collaborator

Legacy FEniCS is not compatible with version 4.0.0 of mpi4py. During installation of the FEniCS adapter, the FEniCS installation is tested.

Therefore, the FEniCS adpater cannot be installed, as FEniCS produces an error.
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      ERROR: could not import mpi4py!
      ValueError: mpi4py.MPI.Op size changed, may indicate binary incompatibility. Expected 56 from C header, got 40 from PyObject
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        ...
          from fenics import *
        File "/usr/lib/python3/dist-packages/fenics/__init__.py", line 7, in <module>
          from dolfin import *
        File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/__init__.py", line 144, in <module>
          from .fem.assembling import (assemble, assemble_system, assemble_multimesh, assemble_mixed,
        File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/fem/assembling.py", line 34, in <module>
          from dolfin.fem.form import Form
        File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/fem/form.py", line 12, in <module>
          from dolfin.jit.jit import dolfin_pc, ffc_jit
        File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/jit/jit.py", line 124, in <module>
          def compile_class(cpp_data, mpi_comm=MPI.comm_world):
                                               ^^^^^^^^^^^^^^
      RuntimeError: Error when importing mpi4py
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

This issue is also related to precice/tutorials#563 and precice/precice#2052 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants