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

ImportError: libpython3.9.so.1.0: cannot open shared object file: No such file or directory #102

Open
coolteemf opened this issue Feb 23, 2022 · 1 comment

Comments

@coolteemf
Copy link
Contributor

I am using a conda environment in which I built SOFA v21.12 with SofaPython3 (in tree) and caribou v21.12 with SOFA support.

The issue appears when I try to import Caribou at build/v21.12/install/lib/python3/site-packages/Caribou/init.py:1

Full error:

Traceback (most recent call last):
  File "/home/francois/anaconda3/envs/XRAI_3DFlow_pytorch-build/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3457, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-cb2c892d0da3>", line 1, in <module>
    import Caribou
  File "/snap/pycharm-community/267/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/home/francois/Projects/caribou/build/v21.12/install/lib/python3/site-packages/Caribou/__init__.py", line 1, in <module>
    from .Caribou  import *
  File "/snap/pycharm-community/267/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ImportError: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

However, If I first import Sofa and then import Caribou, it works.

@jnbrunet
Copy link
Member

jnbrunet commented Mar 2, 2022

Hey François,

Thanks for telling us about this. I will try to have a look at this soon. Good that found a workaround, it should also help us to locate the problem.

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

No branches or pull requests

2 participants