Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error:name 'K' is not defined #276

Open
fsdfsd123 opened this issue Dec 1, 2019 · 3 comments
Open

error:name 'K' is not defined #276

fsdfsd123 opened this issue Dec 1, 2019 · 3 comments

Comments

@fsdfsd123
Copy link

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

@torjusn
Copy link

torjusn commented Dec 2, 2019

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

@zhunipingan
Copy link

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

@absognety
Copy link

absognety commented Feb 10, 2020

#165 (comment)

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 #165 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants