dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.83k stars 1.22k forks source link

OSError: libcudart.so.9.0: cannot open shared object file: No such file or directory #698

Closed hakS07 closed 3 years ago

hakS07 commented 5 years ago

when i was trying to prepare voc dataset for training pre trained model https://gluon-cv.mxnet.io/build/examples_datasets/detection_custom.html#derive-from-pascal-voc-format i got this error OSError: libcudart.so.9.0: cannot open shared object file: No such file or directory from gluoncv.data import VOCDetection class VOCLike(VOCDetection): CLASSES = ['iris'] def __init__(self, root, splits, transform=None, index_map=None, preload_label=True): super(VOCLike, self).__init__(root, splits, transform, index_map, preload_label) dataset = VOCLike(root='/home/dell/Bureau/myDataset', splits=((2019, 'train'),)) print(dataset[0][1]) Knowing that I can't use cuda or gpu because i haven't a graphic card nvidia python 3.6 os ubuntu 18 Pillow-5.4.1 gluoncv-0.4.0 scipy-1.2.1 tqdm-4.31.1

Jerryzcn commented 5 years ago

Are you trying to train on CPU?

hakS07 commented 5 years ago

yes

PistonY commented 5 years ago

make sure you cuda version is 9.0. And add below to ~/.bashrc.

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

run

source  ~/.bashrc

Add below to /etc/ld.so.conf.d/cuda.conf

/usr/local/cuda/lib64

run

sudo ldconfig
hakS07 commented 5 years ago

@PistonY can i use cuda and i don't have nvidia graphic card????

Jerryzcn commented 5 years ago

what is the command you are using?

hakS07 commented 5 years ago

@Jerryzcn i'm not using a cmd command i just try to run a python code Capture du 2019-03-22 `14-18-38 https://gluon-cv.mxnet.io/build/examples_datasets/detection_custom.html#derive-from-pascal-voc-format

Jerryzcn commented 5 years ago

which version of mxnet did you install? You might have installed the version that's built with CUDA. Try install the cpu version, or build from source and set CUDA to 0

hakS07 commented 5 years ago

@Jerryzcn mxnet '1.4.0' no i have already installed the version compatible with Inux and cpu https://mxnet.apache.org/versions/master/install/index.html?platform=Linux&language=Python&processor=CPU

xinyu-intel commented 5 years ago

@essalahsouad try "import mxnet as mx", does this work well?

hakS07 commented 5 years ago

@xinyu-intel yes, it does work

Jerryzcn commented 5 years ago

did you install gluoncv using pip or build from source

hakS07 commented 5 years ago

@Jerryzcn I have installed with pip

Jerryzcn commented 5 years ago

Could you try install from source?

SaidaSaad commented 5 years ago

Hello i have the same problem and i am using nvidia rtx 2080

Jerryzcn commented 5 years ago

our default pip install package assume GPU support. So you will probably need to install from source to use non-gpu version. If you encounter this issue while using GPU, it is likely that your CUDA path is not added correctly, or your mxnet version is incompatible with the CUDA version.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.