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

doing the vagrant.... #148

Open DrBlackross opened 2 years ago

DrBlackross commented 2 years ago

i don't have nvidia :| soooo, i used vagrant install and test.... BUT...

Testing with vagrant

Start the vagrant box using:

vagrant up (required vagrant up --provider virtualbox)

Code will be located at /vagrant. Play and/or test with whatever package you wish. Note: With vagrant you cannot take full advantage of your GPU, so is mainly for testing purposes

also.. the vagrant file needed -y after the apt lines starting at 53

vm_config.vm.provision "default setup", type: "shell", inline: <<SCRIPT apt update apt install mpich libpq-dev python3-pip -y <--- added this DEBIAN_FRONTEND=noninteractive apt install python3-pip -y <--- would probably remove this line after moving pip3 up a line pip3 install -r /vagrant/requirements.no-gpu.txt

i don't know if it fully installed pip3 after making the virtual machine...

vagrant@trader-rl:~$ pip3 install -r /vagrant/requirements.no-gpu.txt

Command 'pip3' not found, but can be installed with:

apt install python3-pip Please ask your administrator.

sooo ill move pip3 up to line 55 inthe vagrant file

DrBlackross commented 2 years ago

hmmm opencv borked... had to run sudo pip3 install --upgrade pip

DrBlackross commented 2 years ago

i give for now, on vagrant, will try docker next. (just close this thread)

DrBlackross commented 2 years ago

gave up on docker, edited the vagrant files to work

Vagrantfile.txt requirements.base.txt

DrBlackross commented 2 years ago

kept getting a ton of errors.....

trader-rl-vagrant:     ERROR: Command errored out with exit status 1:
trader-rl-vagrant:      command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d_dzg2cq/statsmodels/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d_dzg2cq/statsmodels/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_6wofhjo/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/statsmodels
trader-rl-vagrant:          cwd: /tmp/pip-install-d_dzg2cq/statsmodels/
trader-rl-vagrant:     Complete output (7 lines):
trader-rl-vagrant:     running install
trader-rl-vagrant:     running build
trader-rl-vagrant:     running build_py
trader-rl-vagrant:     UPDATING build/lib.linux-x86_64-3.8/statsmodels/_version.py
trader-rl-vagrant:     set build/lib.linux-x86_64-3.8/statsmodels/_version.py to '0.10.0rc2'
trader-rl-vagrant:     running build_ext
trader-rl-vagrant:     error: Command "x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_TRACE_NOGIL=0 -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c statsmodels/tsa/_exponential_smoothers.c -o build/temp.linux-x86_64-3.8/statsmodels/tsa/_exponential_smoothers.o" failed with exit status 1
trader-rl-vagrant:     ----------------------------------------
trader-rl-vagrant: ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d_dzg2cq/statsmodels/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d_dzg2cq/statsmodels/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_6wofhjo/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/statsmodels Check the logs for full command output.

The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.