AI4Finance-Foundation/FinRL-Tutorials

Error in 3-Practical/Demo_MultiCrypto_Trading.ipynb

Opened this issue · 2 comments

chopin commented

Two errors were thrown while running the first installation code paragraph in Colap.
[1] the first error:

Building wheels for collected packages: elegantrl, box2d-py 
Building wheel for elegantrl (setup.py) ... done 
Created wheel for elegantrl: filename=elegantrl-0.3.6-py3-none-any.whl size=195057 sha256=3ae3abaacb514d4ddfcd61705ed71e0563a61e993b566db6aaedfc234d0d8ad4 
Stored in directory: /tmp/pip-ephem-wheel-cache-ic4gkgzy/wheels/d6/fb/88/7d5e5490b35f78191267fee312ce81baac55c6b9d89151e72a 
error: subprocess-exited-with-error 

× python setup.py bdist_wheel did not run successfully. 
│ exit code: 1 
╰─> See above for output. 

note: This error originates from a subprocess, and is likely not a problem with pip. 
Building wheel for box2d-py (setup.py) ... error 
ERROR: Failed building wheel for box2d-py 
Running setup.py clean for box2d-py 
Successfully built elegantrl 
Failed to build box2d-py 

[2] the second error:

Installing collected packages: pyglet, py-spy, ply, opencensus-context, nvidia-ml-py, msgpack, gputil, distlib, colorful, websockets, websocket-client, virtualenv, thriftpy2, tensorboardX, soupsieve, setuptools, pymysql, pyluach, psutil, prometheus-client, lz4, jedi, importlib-metadata, html5lib, gym, frozendict, deprecation, charset-normalizer, blessed, requests, pycares, gpustat, cryptography, beautifulsoup4, aiohttp, yfinance, stockstats, stable-baselines3, ray, jqdatasdk, exchange_calendars, alpaca_trade_api, aiohttp-cors, aiodns, opencensus, empyrical, ccxt, pyfolio, finrl Attempting uninstall: msgpack 
...
 Attempting uninstall: aiohttp 
Found existing installation: aiohttp 3.8.4 
Uninstalling aiohttp-3.8.4: 
Successfully uninstalled aiohttp-3.8.4 

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts. cvxpy 1.2.3 requires setuptools<=64.0.2, but you have setuptools 67.4.0 which is incompatible. 
...

It continues until printing the last line:
Successfully installed inflection-0.5.1 quandl-3.7.0

The following error in the next next code paragraph is raised. I dont't know whether the errors during insrallation cause it.

ImportError Traceback (most recent call last) " style="color: var(--colab-anchor-color);">[<ipython-input-3-c2f4f1f1ce9a>](https://localhost:8080/#) in <module>
 ----> 1 from agents.elegantrl_models import DRLAgent as DRLAgent_erl
 2 from agents.rllib_models import DRLAgent as DRLAgent_rllib 
 3 from agents.stablebaselines3_models import DRLAgent as DRLAgent_sb3
 4 from meta.data_processor import DataProcessor 5 [/FinRL-Meta/agents/elegantrl_models.py](https://localhost:8080/#) in <module>
 5 from elegantrl.agents import AgentSAC
 6 from elegantrl.agents import AgentTD3
 ----> 7 from elegantrl.train.config import Arguments
 8 from elegantrl.train.run import init_agent
 9 from elegantrl.train.run import train_and_evaluate
 ImportError: cannot import name
 'Arguments' from 'elegantrl.train.config' (/usr/local/lib/python3.8/dist-packages/elegantrl/train/config.py)
chopin commented

The ipynb link in the Github source code is brokwn. I somehow found the right link: address. When you open it and run it, you will see the errors above:

https://colab.research.google.com/github/AI4Finance-Foundation/FinRL-Tutorials/blob/master/2-Advance/MultiCrypto_Trading.ipynb

chopin commented

I tried the other *.ipynb files in the same directory, and they had the same problem during installation. Please check them too.