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

Python 3 ERROR #47

Closed
ghost opened this issue Aug 26, 2016 · 3 comments
Closed

Python 3 ERROR #47

ghost opened this issue Aug 26, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 26, 2016

I am using Linux Mint.
After I run " from athena import__main__",
this happens:

Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'athena'

What do I do? I think I have installed everything given on the installation documentation page.

@rcbyron
Copy link
Owner

rcbyron commented Aug 26, 2016

This error means "athena" is not in your sys.path (or PYTHONPATH)
Make sure that the HeyAthena package got installed to the correct python location. You might have a mix-up between Python 2 and 3.
The installation instructions say to run "pip3 install HeyAthena" but pip3 is only for python 3. Use pip2 or just pip if you are running Python 2.

You can also verify where it is installed:
Run "which python" to find your installation directory
Switch to that directory and look for Lib > site-packages > athena
If the folder is not there, then it is not installed correctly

@ghost
Copy link
Author

ghost commented Sep 5, 2016

Hey I followed your instructions and managed to install Athena in python 2.7 however Athena is getting installed in dist-packages instead of site-packages and I'm getting the following error when try to import main :
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/athena/main.py", line 2, in
from athena import brain
File "/usr/local/lib/python2.7/dist-packages/athena/brain.py", line 62
print('\n~ Module Order: ', end='')
^
SyntaxError: invalid syntax
Please help.

@rcbyron
Copy link
Owner

rcbyron commented Dec 22, 2016

This was a python 2 compatibility issue. It should be fixed now. Post another issue if you still have errors. Thanks!

@rcbyron rcbyron closed this as completed Dec 22, 2016
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

1 participant