seq2seq icon indicating copy to clipboard operation
seq2seq copied to clipboard

error:name 'K' is not defined

Open fsdfsd123 opened this issue 6 years ago • 3 comments

afte i use sudo pip install git+https://github.com/farizrahman4u/seq2seq.git,I write import seq2seq in python command line , but i meet this bug:

Using TensorFlow backend. Traceback (most recent call last): File "", line 1, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "/Users/shawn/anaconda3/lib/python3.7/site-packages/seq2seq-1.0.0-py3.7.egg/seq2seq/init.py", line 1, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "/Users/shawn/anaconda3/lib/python3.7/site-packages/seq2seq-1.0.0-py3.7.egg/seq2seq/cells.py", line 1, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "/Users/shawn/anaconda3/lib/python3.7/site-packages/recurrentshop-1.0.0-py3.7.egg/recurrentshop/init.py", line 1, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "/Users/shawn/anaconda3/lib/python3.7/site-packages/recurrentshop-1.0.0-py3.7.egg/recurrentshop/engine.py", line 10, in NameError: name 'K' is not defined

How can i solve this? thank u

fsdfsd123 avatar Dec 01 '19 17:12 fsdfsd123

Have the same issue, think its because of changes to keras backend.

torjusn avatar Dec 02 '19 13:12 torjusn

I meet the same error, do you know the solution now, If have, please share me the answer, thanks!

zhunipingan avatar Dec 04 '19 08:12 zhunipingan

https://github.com/farizrahman4u/seq2seq/issues/165#issuecomment-365166504

Install seq2seq by doing installations as mentioned in above issue:

  1. recurrentshop
  2. seq2seq

If you face a bug as name K is not defined: Fix this using https://github.com/farizrahman4u/seq2seq/issues/165#issuecomment-583959642

absognety avatar Feb 10 '20 05:02 absognety