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

Python3.9: OSError: libcublas.so.11: cannot open shared object file: No such file or directory #402

Open
colossusb opened this issue Dec 7, 2022 · 0 comments

Comments

@colossusb
Copy link

Aware, of course, that you don't yet officially support Python3.9, but thought this might be useful for someone who needs to use it:

Had this error when trying to install the module on Python3.9:

/python3.9/site-packages/torch/__init__.py", line 153, in _load_global_deps
     ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
   File "/usr/lib64/python3.9/ctypes/__init__.py", line 374, in __init__
     self._handle = _dlopen(self._name, mode)
 OSError: libcublas.so.11: cannot open shared object file: No such file or directory

Worked around the error by updating the torch version in our model's requirements.txt to include a different cuda version (when running on Python3.9 or greater) thus:

# Workaround for OGB issue on Python3.9
--find-links https://download.pytorch.org/whl/torch_stable.html
torch==1.13.0+cu116; python_version >= '3.9'
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

1 participant