notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

Installation Issue #74

Closed Prossi79 closed 5 years ago

Prossi79 commented 5 years ago

Hi there! I have installed RLTrader (after having the prvious version running). I am not having a GPU and was changing the requirements txt accordingly ... but still this error:

`(base) root@vmanager6003:~/RLTrader# python ./optimize.py Traceback (most recent call last): File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "/root/miniconda3/lib/python3.7/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/root/miniconda3/lib/python3.7/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libcuda.so.1: 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 "./optimize.py", line 3, in from lib.RLTrader import RLTrader File "/root/RLTrader/lib/RLTrader.py", line 6, in from stable_baselines.common.base_class import BaseRLModel File "/root/miniconda3/lib/python3.7/site-packages/stable_baselines/init.py", line 1, in from stable_baselines.a2c import A2C File "/root/miniconda3/lib/python3.7/site-packages/stable_baselines/a2c/init.py", line 1, in from stable_baselines.a2c.a2c import A2C File "/root/miniconda3/lib/python3.7/site-packages/stable_baselines/a2c/a2c.py", line 6, in import tensorflow as tf File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "/root/miniconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "/root/miniconda3/lib/python3.7/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/root/miniconda3/lib/python3.7/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libcuda.so.1: cannot open shared object file: No such file or directory `

GeorgeMurAlkh commented 5 years ago

You definitely installed tensorflow-gpu. Reinstall environment with tensorflow instead of tensorflow-gpu