AI4Finance-Foundation / FinRL

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

ValueError: Parameter `start` received with timezone defined as 'UTC' although a Date must be timezone naive. #1029

Open LunbiWa opened 1 year ago

LunbiWa commented 1 year ago

Run FinRL/examples/FinRL_PaperTrading_Demo.ipynb

Colab report error

image image

Expect to run smoothly. Thanks!

srikantamehta commented 1 year ago

Add this line in 376 ts = ts.tz_localize(None) to /usr/local/lib/python3.10/site-packages/exchange_calendars/calendar_helpers.py then restart runtime.

HenryYYang commented 1 year ago

This is supposed to be fixed by https://github.com/AI4Finance-Foundation/FinRL/pull/695 already, but it was regressed by https://github.com/AI4Finance-Foundation/FinRL/pull/997.

Pritamstudent commented 10 months ago

Still the issue persists in my case

itzcali commented 6 months ago

This is supposed to be fixed by #695 already, but it was regressed by #997.

Same observation for me while trying to get "2-Advance/FinRL_Meta_Integrate_Trends_data_to_DOW_Jones.ipynb" working. I ultimately resolved the issue by forking ElegantRL and FinRL and forcing dependecy exchange_calendars==3.6.3