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

seq2seq can't import #249

Open
allenchen8210 opened this issue May 22, 2018 · 8 comments
Open

seq2seq can't import #249

allenchen8210 opened this issue May 22, 2018 · 8 comments

Comments

@allenchen8210
Copy link

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
Copy link

the same

@MKmknd
Copy link

MKmknd commented Aug 22, 2018

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
Copy link

Have you install recurrentshop ?

@iuria21
Copy link

iuria21 commented Feb 1, 2019

same error here
I've installed recurrentshop

@dzhv
Copy link

dzhv commented May 21, 2019

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
Copy link

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

@go1nggo
Copy link

go1nggo commented Aug 12, 2020

我有同样的问题...
我可以导入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
Copy link

go1nggo commented Aug 12, 2020

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?

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

8 participants