Skip to content

ImportError when using dolfinx in PythonCall #729

@touste

Description

@touste

Affects: PythonCall

Describe the bug

using CondaPkg
]conda add fenics-dolfinx

using PythonCall
dolfinx = pyimport("dolfinx")

ERROR: LoadError: Python: ImportError: libdolfinx.so.0.10: cannot open shared object file: No such file or directory

What's strange is

using CondaPkg
]conda run python
>>> import dolfinx

works fine

Your system
Ubuntu 24.04, Julia 1.12.1, PythonCall 0.9.30. Python and Conda managed by CondaPkg (default environment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions