-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: libcudart.so.7.0: cannot open shared object file: No such file or directory #8
Comments
Two suggestions:
|
Thanks so much - this has solved the issue. |
For this error I have executed this command to solve it |
@Saneesh Thank you! Solved mine |
For those of you on Ubuntu 14.04 who have installed CUDA 7.0 or 7.5 with a .deb package, you can now solve this problem by installing the
You can follow these instructions to get access to the repository that contains these packages. |
For more information, please see the "Environment" section of docs/InstallCuda.md. |
@Saneesh this is one of those life saving tips. Thanks a ton! |
@Saneesh Many Thanks. Solved my problem. |
@Saneesh Thanks a lot. When I run sudo ldconfig /usr/local/cuda/lib (not for lib64) it became work. |
In case someone else runs into this... I got an error (something about See how the
I actually came here in search of fixing a TensorFlow problem - this ended up fixing it. |
@chrisranderson if you installed cuDNN with a deb package instead of with a tarball then you wouldn't run into this issue. |
@lukeyeager how do I do that? (I'm in Ubuntu 16.04 if that matters) |
@chrisranderson have a look at the CUDA install doc. |
@Saneesh Bloody legend |
Same case is with cuDNN 5.1. Follow the solution of @chrisranderson |
thanks @Saneesh your solution saved my life with matconvnet |
I have import error: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory download https://developer.nvidia.com/rdp/cudnn-download 7.0.5 for cuda 9.0 cd sudo cp include/cudnn.h /usr/local/cuda/include/ |
sagar@sagar-HP-Pavilion-Notebook:~/caffe2/caffe2/python/examples$ python char_rnn.py --train_data shakespeare.txt |
when I run the code this message appear anyone can help me please, i'm new in python and I try to learn DL ML and AI application tool. Using TensorFlow backend. During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Error importing tensorflow. Unless you are using bazel, |
the important is " Error importing tensorflow. Unless you are using bazel, |
:~$ sudo apt-get install libcudnn*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcudnn-dev' for glob 'libcudnn*'
Note, selecting 'libcudnn8-dev' for glob 'libcudnn*'
Note, selecting 'libcudnn7' for glob 'libcudnn*'
Note, selecting 'libcudnn8' for glob 'libcudnn*'
libcudnn8 is already the newest version (8.2.0.53-1+cuda11.3).
libcudnn-dev is already the newest version (7.6.5-0lambda1).
libcudnn7 is already the newest version (7.6.5-0lambda1).
The following packages were automatically installed and are no longer required:
ledit libfindlib-ocaml libfindlib-ocaml-dev libldap2-dev ocaml-compiler-libs ocaml-findlib
ocaml-interp ocaml-man ocaml-nox wine-stable wine-stable-amd64 wine-stable-i386:i386
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
libcudnn8-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/582 MB of archives.
After this operation, 2,570 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 448004 files and directories currently installed.)
Preparing to unpack .../libcudnn8-dev_8.2.0.53-1+cuda11.3_amd64.deb ...
Unpacking libcudnn8-dev (8.2.0.53-1+cuda11.3) ...
dpkg: error processing archive /var/cache/apt/archives/libcudnn8-dev_8.2.0.53-1+cuda11.3_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libcudnn_static.a', which is also in package libcudnn-dev:amd64 7.6.5-0lambda1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcudnn8-dev_8.2.0.53-1+cuda11.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) and then x [master]> use_condaenv("tf")
✓ [master]> library(tensorflow)
✓ [master]> hello <- tf$constant('Hello, TensorFlow!')
Error: Python module tensorflow was not found.
Detected Python configuration:
python: /home/englianhu/anaconda3/bin/python3
libpython: /home/englianhu/anaconda3/lib/libpython3.8.so
pythonhome: /home/englianhu/anaconda3:/home/englianhu/anaconda3
version: 3.8.10 (default, May 19 2021, 18:05:58) [GCC 7.3.0]
numpy: /home/englianhu/.local/lib/python3.8/site-packages/numpy
numpy_version: 1.19.5
tensorflow: /home/englianhu/.local/lib/python3.8/site-packages/tensorflow
NOTE: Python version was forced by RETICULATE_PYTHON |
I have followed the steps exactly as in your guide using an Amazon AWS GPU instance. When I get to the running of the
.\digit-server
I get:Cannot guess value for "caffe_root": caffe binary cannot be found
Cannot guess value for "gpu_list": Cannot query GPUs without a valid caffe_root
I also tried to download the .tar but when I run the
./runme
file and I getImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
Do you have any suggestions about what I am doing wrong?
The text was updated successfully, but these errors were encountered: