tensortrade-org / tensortrade

An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.
https://discord.gg/ZZ7BGWh
Apache License 2.0
4.52k stars 1.02k forks source link

Bug Report - TypeError: register() missing 1 required positional argument: 'entry_point' #459

Open alexchim opened 1 year ago

alexchim commented 1 year ago

Dear TensorTrade Team,

I am using the latest version of TensorTrade and I have run into an issue with the register() function. When I tried to run the training using Ray.tune, I received the following error message: TypeError: register() missing 1 required positional argument: 'entry_point' with latest version gym.

I did some research and found that the register() function in gym was modified on September 1, 2022 in the following commit: https://github.com/openai/gym/commit/0bcd49ec10e7ec3833bf16a8a2d6fd9ad60e030a This modification seems to be the root cause of the issue, it require a new required input entry_point, but the source code of TensorTrade did not update yet.

As a temporary solution, I installed gym version 0.24.1 and the issue was resolved. However, I would appreciate it if the TensorTrade team could investigate this issue and provide a permanent solution.

Thank you for your time and for maintaining such a fantastic library.

newzapster commented 1 year ago

gym version 0.25.2 also works.