recurrentshop
recurrentshop copied to clipboard
ImportError: cannot import name 'tensorflow_backend'
I keep getting this error below when I try to import the package:
from recurrentshop import *
File "/usr/local/lib/python3.6/dist-packages/recurrentshop-1.0.0-py3.6.egg/recurrentshop/init.py", line 1, in
What might be the problem?
Same problem!
Same problem...
File "/home/s4523139/codes/Seq2Seq/TestCode/test.py", line 8, in
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/seq2seq/init.py", line 1, in
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/seq2seq/cells.py", line 1, in
File "
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/recurrentshop-1.0.0-py3.8.egg/recurrentshop/init.py", line 1, in
File "
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/recurrentshop-1.0.0-py3.8.egg/recurrentshop/engine.py", line 4, in
File "
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/recurrentshop-1.0.0-py3.8.egg/recurrentshop/backend/init.py", line 5, in
File "
File "/home/s4523139/anaconda3/lib/python3.8/site-packages/recurrentshop-1.0.0-py3.8.egg/recurrentshop/backend/tensorflow_backend.py", line 1, in
ImportError: cannot import name 'tensorflow_backend' from 'keras.backend' (/home/s4523139/anaconda3/lib/python3.8/site-packages/keras/backend.py)
same problem
ImportError Traceback (most recent call last)
3 frames
/content/recurrentshop/backend/tensorflow_backend.py in
ImportError: cannot import name 'tensorflow_backend' from 'keras.backend' (/usr/local/lib/python3.7/dist-packages/keras/backend.py)
Same problem...
Hey all, not sure this is still relevant to you but I found in another issue that using Keras==2.2.4 solves some issues, and it also solved this particular issue for me.
same error Traceback (most recent call last):
File "D:\SpyderProjects\TensorflowProjects\POL_seq2seq\POLwithseq2seq.py", line 8, in
File "
File "D:\Application\Python3.8.10\lib\site-packages\recurrentshop-1.0.0-py3.8.egg\recurrentshop_init_.py", line 1, in
File "
File "D:\Application\Python3.8.10\lib\site-packages\recurrentshop-1.0.0-py3.8.egg\recurrentshop\engine.py", line 4, in
File "
File "D:\Application\Python3.8.10\lib\site-packages\recurrentshop-1.0.0-py3.8.egg\recurrentshop\backend_init_.py", line 5, in
File "
File "D:\Application\Python3.8.10\lib\site-packages\recurrentshop-1.0.0-py3.8.egg\recurrentshop\backend\tensorflow_backend.py", line 1, in
ImportError: cannot import name 'tensorflow_backend' from 'keras.backend' (D:\Application\Python3.8.10\lib\site-packages\keras\backend.py)
recurrent的最近一次更新是2019年。 tensorflow-2.2.0版本为2019年10月。 可以试试更换tensrflow和keras版本为2.2.0 我已经用此方法解决该问题
I have the same issue, but I am working inside the CMSSW environment:
Traceback (most recent call last):
File "
Does someone know how can I change the Keras and Tensorflow version inside the cmsenv? Thanks in advance!
recurrent的最近一次更新是2019年。 tensorflow-2.2.0版本为2019年10月。 可以试试更换tensrflow和keras版本为2.2.0 我已经用此方法解决该问题
I think that U are correct. The project hasn't been updated for a long time, so we should use the old version keras and tensorflow too.
Hey all, not sure this is still relevant to you but I found in another issue that using Keras==2.2.4 solves some issues, and it also solved this particular issue for me.
I think that U are correct. The project hasn't been updated for a long time, so we should use the old version keras and tensorflow too.