harvitronix / reinforcement-learning-car

Using reinforcement learning to teach a car to avoid obstacles.
MIT License
488 stars 202 forks source link

Issue with cuda library #11

Closed ersakshamjain94 closed 7 years ago

ersakshamjain94 commented 7 years ago

After following all steps, installing everything when i run the following command python3 learning.py i get the following... I have a question.. is cudalibrary necessary to run this project? since my laptop doesnt have a NVIDIA card, it has a AMD Radeon card Loading chipmunk for Linux (64bit) [/usr/local/lib/python3.5/dist-packages/pymunk/libchipmunk64.so] Using TensorFlow backend. Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 61, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) File "/usr/lib/python3.5/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "learning.py", line 5, in from nn import neural_net, LossHistory File "/home/saksham/8th/project_mam/reinforce/reinforcement-learning-car/nn.py", line 6, in from keras.models import Sequential File "/home/saksham/.local/lib/python3.5/site-packages/keras/init.py", line 3, in from . import activations File "/home/saksham/.local/lib/python3.5/site-packages/keras/activations.py", line 3, in from . import backend as K File "/home/saksham/.local/lib/python3.5/site-packages/keras/backend/init.py", line 73, in from .tensorflow_backend import File "/home/saksham/.local/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 1, in import tensorflow as tf File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 24, in from tensorflow.python import File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 72, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 61, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) File "/usr/lib/python3.5/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory

Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

harvitronix commented 7 years ago

CUDA should not be required to run this project. Are you able to run other Keras/TF projects?