farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 846 forks source link

Got error when 'from recurrentshop.cells import *' #233

Open r06945003 opened 6 years ago

r06945003 commented 6 years ago

----> 2 from recurrentshop.cells import * ModuleNotFoundError: No module named 'recurrentshop.cells'

There is no error with import recurrentshop. How can I fix it? Thank you.

keras: 2.0.8 python: 3.6.1

matteodelucchi commented 5 years ago

Same error here:

`In [1]: import seq2seq Traceback (most recent call last):

File "", line 1, in import seq2seq

File "/usr/local/lib/python3.6/dist-packages/seq2seq/init.py", line 1, in from .cells import *

File "/usr/local/lib/python3.6/dist-packages/seq2seq/cells.py", line 2, in from recurrentshop.cells import *

ModuleNotFoundError: No module named 'recurrentshop.cells'`

and in the module cells.py of recurrentshop:

`In [2]: import recurrentshop In [3]: from recurrentshop.cells import * Traceback (most recent call last):

File "", line 2, in from recurrentshop.cells import *

ModuleNotFoundError: No module named 'recurrentshop.cells'`

onitaiji commented 5 years ago

Also, same error:

ModuleNotFoundError Traceback (most recent call last)

in () 2 from keras.layers import Input, Embedding, Dense 3 from keras.utils import plot_model ----> 4 from seq2seq import Seq2Seq 5 6 lstm_size = embedding_dimension * 2 /usr/local/lib/python3.6/dist-packages/seq2seq/__init__.py in () ----> 1 from .cells import * 2 from .models import * /usr/local/lib/python3.6/dist-packages/seq2seq/cells.py in () 1 import recurrentshop ----> 2 from recurrentshop.cells import * 3 from keras.models import Model 4 from keras.layers import Input, Dense, Lambda, Activation 5 from keras.layers import add, multiply, concatenate ModuleNotFoundError: No module named 'recurrentshop.cells'