hugocen / freqtrade-gym

A customized gym environment for developing and comparing reinforcement learning algorithms in crypto trading.
GNU General Public License v3.0
223 stars 45 forks source link

Problem while executing python deep_rl.py command #26

Open AhmedSakrr opened 3 years ago

AhmedSakrr commented 3 years ago

(.env) root@freqtrade2:/home/screw/freqtrade# python deep_rl.py Traceback (most recent call last): File "deep_rl.py", line 7, in from freqtradegym import TradingEnv File "/home/screw/freqtrade/freqtradegym.py", line 16, in from freqtrade.configuration import (TimeRange, remove_credentials, ImportError: cannot import name 'remove_credentials' from 'freqtrade.configuration' (/home/screw/freqtrade/freqtrade/configuration/init.py)

jbk95 commented 2 years ago

It can work without importing remove_credentials.

jcnance1 commented 2 years ago

Did anyone get this to work with this error ImportError: cannot import name 'remove_credentials' . I'm getting the same thing

mojito228 commented 2 years ago

you can just delete 'remove_credentials' from freqtradegym, but this project is a little bit useless, due to python updates

jcnance1 commented 2 years ago

ah that's sad, is it worth trying to revert to python 3.6? any idea if this project will be updated.

mojito228 commented 2 years ago

ah that's sad, is it worth trying to revert to python 3.6? any idea if this project will be updated.

No, cause you need numpy=1.22, which is supported only buy python3.8, otherwise you will have some errors. You can try to update rewrite some libraries or install newer versions of them, but you will be ought to edit code