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: No module named twitter #10

Open
andrewt3000 opened this issue May 28, 2018 · 3 comments
Open

Error: No module named twitter #10

andrewt3000 opened this issue May 28, 2018 · 3 comments

Comments

@andrewt3000
Copy link

python main_simple_seq2seq.py
Traceback (most recent call last):
File "main_simple_seq2seq.py", line 18, in
from data.twitter import data
ImportError: No module named twitter

@andrewt3000
Copy link
Author

andrewt3000 commented May 28, 2018

I see this is a closed issue, but I am python noob, and knowing where the files are doesn't help me. You would think it would search from current directory and find it??? Should there be a change to an init file? Can this be resolved with a change to the code or config?

#3

@JDSlimz
Copy link

JDSlimz commented Oct 8, 2018

It appears that you need to make sure you are using python3. By default, Ubuntu runs python v2 when you just call python. To get this app to run correctly, try python3 main.py with your arguments.

To make sure all of your modules are installed you will need to install them using pip3.

@pskrunner14
Copy link
Contributor

For python2, you will need to do this instead:

import imp
data = imp.load_source('data.twitter.data', 'data/twitter/data.py')

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