question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory

See original GitHub issue

🐛 Bug Report

I get this error with latest Demux version:

Successfully built demucs
Installing collected packages: demucs
Successfully installed demucs-3.0.1

and the Colab example notebook provided:

Going to separate the files:
/gdrive/MyDrive/demucs/82929740.mp3
With command:  python3 -m demucs.separate -o /gdrive/MyDrive/demucs_separated/ -n mdx_extra --mp3 --mp3-bitrate=320
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/dist-packages/demucs/separate.py", line 14, in <module>
    import torchaudio as ta
  File "/usr/local/lib/python3.7/dist-packages/torchaudio/__init__.py", line 1, in <module>
    from torchaudio import _extension  # noqa: F401
  File "/usr/local/lib/python3.7/dist-packages/torchaudio/_extension.py", line 27, in <module>
    _init_extension()
  File "/usr/local/lib/python3.7/dist-packages/torchaudio/_extension.py", line 21, in _init_extension
    torch.ops.load_library(path)
  File "/usr/local/lib/python3.7/dist-packages/torch/_ops.py", line 110, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory
Command failed, something went wrong.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
adefossezcommented, Nov 22, 2021

that’s amazing! good thing they fixed it upstream.

1reaction
adefossezcommented, Nov 19, 2021

This is super weird. On my colab cuda 111 is definitely used. So maybe I need a script to detect the cuda version and install the right pytorch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: libcudart.so.10.2: cannot open shared object file
The reason is a mismatch of CUDA versions. I ran into this issue because the preinstalled version of pytorch did match the default...
Read more >
Docker error: libcudart.so.10.2: cannot open shared object file
error while loading shared libraries: libcudart.so.10.2: cannot open shared object file: No such file or directory. I'm not clear:.
Read more >
ImportError: libcudart.so.11.0: cannot open shared object file
I'm trying to setup nnabla on a nvidia T4 system (on AWS), and I get an error for the libcudart.so file not being...
Read more >
libcudart.so.10.2: cannot open shared object file - Code Grepper
Answers related to “libcudart.so.10.2: cannot open shared object file: No such file or directory in google colab”. ImportError: libGL.so.1: cannot open ...
Read more >
ImportError: libcudart.so.10.2: cannot open shared object file ...
解决OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found