Open CO0Oper opened 1 year ago
I checked commit history ElegantRL/elegantrl/train/run.py
After the commit
03db5bdda409d0b4ce2705340dd5e9be3fd090ee
def init_agent(args: Arguments, gpu_id: int, env=None) -> AgentBase:
were changed to:
def train_agent(args: Config):
I didn't have this issue until today, I assume one of the recent changes for calling the
AlpacaPaperTrading (FinRl/finrl/meta/env_stock_trading/env_stock_papertrading.py)
were deleted?
issue still there, may i know anyone can help?
File "xxx/FinRL/finrl/meta/env_stock_trading/env_stock_papertrading.py", line 40, in init from elegantrl.train.run import init_agent ImportError: cannot import name 'init_agent' from 'elegantrl.train.run' (/opt/anaconda3/envs/Python3_10_14/lib/python3.10/site-packages/elegantrl/train/run.py)
Error calling the AlpacaPaperTrading (FinRl/finrl/meta/env_stock_trading/env_stock_papertrading.py) from FinRL/examples/FinRL_PaperTrading_Demo.ipynb
To Reproduce
Run FinRL/examples/FinRL_PaperTrading_Demo.ipynb on Colab
Expected behavior This paper trading demo works pretty smooth without bugs a couple of days ago (Before #915 )
Screenshots![image](https://user-images.githubusercontent.com/44068115/224366589-a017b308-a28d-4525-9300-b953e5a4acd3.png)