FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

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

Open LunbiWa opened this issue 1 year ago • 4 comments

Run FinRL/examples/FinRL_PaperTrading_Demo.ipynb

Colab report error

image image

Expect to run smoothly. Thanks!

LunbiWa avatar Jun 05 '23 07:06 LunbiWa

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.

srikantamehta avatar Jun 09 '23 18:06 srikantamehta

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.

HenryYYang avatar Jun 26 '23 04:06 HenryYYang

Still the issue persists in my case

Pritamstudent avatar Aug 18 '23 04:08 Pritamstudent

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

itzcali avatar Jan 09 '24 19:01 itzcali