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.

libcudart.so.10.0 ERROR

See original GitHub issue

I could install it successfully, but when I tried

from torch_geometric.data import Data,

there would be an error:

ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory

The complete error message is below:

>>> from torch_geometric.data import Data
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
    from .data import Data
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_geometric/data/data.py", line 2, in <module>
    from torch_geometric.utils import (contains_isolated_nodes,
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_geometric/utils/__init__.py", line 2, in <module>
    from .scatter import scatter_
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_geometric/utils/scatter.py", line 1, in <module>
    import torch_scatter
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_scatter/__init__.py", line 3, in <module>
    from .mul import scatter_mul
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_scatter/mul.py", line 3, in <module>
    from torch_scatter.utils.ext import get_func
  File "/home/bob/anaconda3/envs/torch_cu100/lib/python3.7/site-packages/torch_scatter/utils/ext.py", line 5, in <module>
    import torch_scatter.scatter_cuda
ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory 

I installed CUDA-9.0 and CUDA-10.0 on my PC, and used a symlink pointing cuda package from /usr/local/cuda-10.0/ to /usr/local/cuda/. I wondered if it may cause the error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
RuihongQiucommented, Mar 27, 2019

image

I have done it and my PyTorch is working all well.

3reactions
rusty1scommented, Mar 27, 2019

Did you modify LD_LIBRARY_PATH to point to CUDA 10?

Read more comments on GitHub >

github_iconTop Results From Across the Web

libcudart.so.10.0 ERROR · Issue #114 - GitHub
there would be an error: ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory.
Read more >
ImportError: libcublas.so.10.0: cannot open shared object file ...
However when I am trying to import tensorflow I am getting error about libcublas.so.10.0: user:~$ python3 Python 3.6.7 (default, Oct 22 2018, 11 ......
Read more >
ImportError: libcudart.so.10.0: cannot open shared object file ...
I am facing the below issue on Xavier-B? ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory. Do I need...
Read more >
Libcublas.so.10: cannot open shared object file
Hello guys, Am seeking for help running the mxnet in ubuntu 20.04 with cuda 11.1 installed. I have installed the mxnet-cu101 but seems...
Read more >
A Common Issue faced while training with Tensorflow GPU code
As you may have noticed in the error log, “ Could not dlopen library 'libcudart.so.10.0' “. These files are CUDA library files.
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