AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

Error in 3-Practical/Demo_MultiCrypto_Trading.ipynb

未关闭
#35 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Jupyter Notebook
星标
1.2k
派生
435
PR 合并指标
30 天内没有已合并 PR

描述

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);">[](https://localhost:8080/#) in
----> 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
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)
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。