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

ImportError running bin/train.py #18

Open
angelo337 opened this issue Dec 9, 2016 · 2 comments
Open

ImportError running bin/train.py #18

angelo337 opened this issue Dec 9, 2016 · 2 comments

Comments

@angelo337
Copy link

hi there
I am trying to start learning this code, however after i download and install everything I try to run your example code but I am getting this error, could you please point me out my mistake?
thanks a lot

$ sudo python bin/train.py
INFO:gensim.utils:'pattern' package found; utils.lemmatize() is available for English
INFO:summa.preprocessing.cleaner:'pattern' package found; tag filters are available for English
Using Theano backend.
/usr/local/lib/python2.7/dist-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Traceback (most recent call last):
File "bin/train.py", line 10, in
from lib.nn_model.model import get_nn_model
File "/home/creangel/Downloads/keras/seq2seq/debug_seq2seq/lib/nn_model/model.py", line 4, in
from seq2seq.models import SimpleSeq2seq
File "build/bdist.linux-x86_64/egg/seq2seq/init.py", line 1, in
File "build/bdist.linux-x86_64/egg/seq2seq/cells.py", line 1, in
File "build/bdist.linux-x86_64/egg/recurrentshop/init.py", line 1, in
File "build/bdist.linux-x86_64/egg/recurrentshop/engine.py", line 1, in
ImportError: cannot import name Layer

@lijuncheng16
Copy link

SimpleSeq2seq has changed to SimpleSeq2Seq. Typo due to updates...

@jianboyang
Copy link

I have the same error, even after changing SImpleSeq2seq to SimpleSeq2Seq

INFO:summa.preprocessing.cleaner:'pattern' package not found; tag filters are not available for English
Using Theano backend.
Traceback (most recent call last):
File "bin/train.py", line 10, in
from lib.nn_model.model import get_nn_model
File "/Users/212461546/Box Sync/gProject/SmartSignal/_TagMapping/code/DL/debug_seq2seq/lib/nn_model/model.py", line 4, in
from seq2seq.models import SimpleSeq2Seq
File "build/bdist.macosx-10.7-x86_64/egg/seq2seq/init.py", line 1, in
File "build/bdist.macosx-10.7-x86_64/egg/seq2seq/cells.py", line 1, in
ImportError: cannot import name weight

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

3 participants