AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.48k stars 2.31k forks source link

Can't run sample code in colab #941

Open Louis0117 opened 1 year ago

Louis0117 commented 1 year ago

Describe the bug

  1. Running FinRL_Ensemble_StockTrading_ICAIF_2020.ipynb on colab, there is an error ModuleNotFoundError: No module named 'finrl'.

  2. Running !pip install git+https://github.com/AI4Finance-Foundation/FinRL.git, there is an error Collecting gym==0.21 Using cached gym-0.21.0.tar.gz error:subprocess-exited-with-error × python setup.py egg_info 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. Preparing metadata ... error error:metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note:This is an issue with the package mentioned above,not pip. hint:See above for details.

To Reproduce Steps to reproduce the behavior:

  1. Running FinRL_Ensemble_StockTrading_ICAIF_2020.ipynb on colab
  2. there is an error ModuleNotFoundError: No module named 'finrl'.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

zhumingpassional commented 1 year ago

It may be caused by updates of some libs. we have updated it. pls try again

Louis0117 commented 1 year ago

Thanks for your reply! It still can't work, should I need to add any code or install any package in sample code? The sample code still has the same error.

in 7 8 get_ipython().run_line_magic('matplotlib', 'inline') ----> 9 from finrl.config_tickers import DOW_30_TICKER 10 from finrl.meta.preprocessor.yahoodownloader import YahooDownloader 11 from finrl.meta.preprocessor.preprocessors import FeatureEngineer, data_split ModuleNotFoundError: No module named 'finrl' ---------------------------------------------------------------------------------- error: subprocess-exited-with-error × python setup.py egg_info 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. Preparing metadata (setup.py) ... errorerror: metadata-generation-failed × Encountered error while generating package metadata.╰─> See above for output. note: This is an issue with the package mentioned above, not pip.hint: See above for details. Ming Zhu ***@***.***> 於 2023年3月28日 週二 上午10:05寫道: > It may be caused by updates of some libs. > we have updated it. pls try again > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
zhumingpassional commented 1 year ago

thanks for reporting it. it works now. pls try again

Louis0117 commented 1 year ago

Sorry for the two days late reply, it can work now! thanks😁😁

Ming Zhu @.***> 於 2023年3月28日 週二 下午4:03寫道:

sorry. it works now. pls try again

— Reply to this email directly, view it on GitHub https://github.com/AI4Finance-Foundation/FinRL/issues/941#issuecomment-1486396901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGXL4E2M5TLWYPPN7JOMDLW6KLM7ANCNFSM6AAAAAAWIVCIA4 . You are receiving this because you authored the thread.Message ID: @.***>

abdulazeezb commented 1 year ago

@XiaoYangLiu-FinRL @zhumingpassional @Louis0117 @ndronen I ran Running FinRL_Ensemble_StockTrading_ICAIF_2020.ipynb on colab, there is an error ModuleNotFoundError: No module named 'finrl'. the same note was working till yesterday

Can you please look into it