farizrahman4u / seq2seq

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

seq2seq can't import #249

Open allenchen8210 opened 6 years ago

allenchen8210 commented 6 years ago

i tried very time

i have already install keras , and update . But it still not work

import seq2seq from seq2seq.models import SimpleSeq2Seq

"error"

ModuleNotFoundError: No module named 'seq2seq.models'; 'seq2seq' is not a package

GuanhuaWANGValerian commented 6 years ago

the same

MKmknd commented 5 years ago

I have the same problem... I can import seq2seq, but I cannot import SimpleSeq2Seq due to the same error.

$ import seq2seq $ from seq2seq.models import SimpleSeq2Seq Traceback (most recent call last): File "", line 1, in ImportError: No module named 'seq2seq.models'; 'seq2seq' is not a package

mengmengcat commented 5 years ago

Have you install recurrentshop ?

iuria21 commented 5 years ago

same error here I've installed recurrentshop

dzhv commented 5 years ago

This might be just my case, but the file in which I tried importing seq2seq.models was named seq2seq.py. This resulted in the same error everyone here is having because seq2seq referred to the python file instead of the package. Renaming the file solved my issue.

karthik-katy commented 4 years ago

how to solve this problem ModuleNotFoundError: No module named 'recurrentshop'

go1nggo commented 3 years ago

我有同样的问题... 我可以导入seq2seq,但是由于相同的错误,我无法导入SimpleSeq2Seq。

$ import seq2seq $ from seq2seq.models import SimpleSeq2Seq Traceback(last last call last): 文件“”,行1,在 ImportError中:没有名为“ seq2seq.models”的模块;'seq2seq'不是一个包

Have you handled it? how?

go1nggo commented 3 years ago

i tried very time

i have already install keras , and update . But it still not work

import seq2seq from seq2seq.models import SimpleSeq2Seq

"error"

ModuleNotFoundError: No module named 'seq2seq.models'; 'seq2seq' is not a package

have you handle it yet?