Cannot import CallbackList
See original GitHub issueGetting the following error while trying to run the sample DQN code after installation of keras-rl.
File “keras_rl_test.py”, line 8, in <module> from rl.agents.dqn import DQNAgent File "C:\Users\eljed\anaconda3\lib\site-packages\rl\agents_init.py", line 2, in <module> from .dqn import DQNAgent, NAFAgent, ContinuousDQNAgent File “C:\Users\eljed\anaconda3\lib\site-packages\rl\agents\dqn.py”, line 8, in <module> from rl.core import Agent File “C:\Users\eljed\anaconda3\lib\site-packages\rl\core.py”, line 8, in <module> from rl.callbacks import ( File “C:\Users\eljed\anaconda3\lib\site-packages\rl\callbacks.py”, line 12, in <module> from keras.callbacks import Callback as KerasCallback, CallbackList as KerasCallbackList ImportError: cannot import name ‘CallbackList’ from ‘keras.callbacks’ (C:\Users\eljed\anaconda3\lib\site-packages\keras\callbacks.py)_
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question in the Keras-RL Google group or join the Keras-RL Gitter channel and ask there instead of filing a GitHub issue.
Thank you!
-
Check that you are up-to-date with the master branch of Keras-RL. You can update with:
pip install git+git://github.com/keras-rl/keras-rl.git --upgrade --no-deps
-
Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
-
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short). If you report an error, please include the error message and the backtrace.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top GitHub Comments
Using tf-nightly fixed this particular problem for me:
pip install tf-nightly
Of course it can break something else, but it is a temporary fix until the next version of tensorflow.
Thanks @jyounglee . Unfortunately downgrading is not an option here as TF is setup to work with CUDA and CUDNN specific version needed for my project.
Any support for TF 2.2 coming soon?