rcbyron / hey-athena-client

Your personal voice assistant
https://heyathena.com
MIT License
421 stars 98 forks source link

Python 3 ERROR #47

Closed ghost closed 7 years ago

ghost commented 7 years ago

I am using Linux Mint. After I run " from athena importmain", 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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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