GithubHelp home page GithubHelp logo

Python 3 ERROR about hey-athena-client HOT 3 CLOSED

rcbyron avatar rcbyron commented on May 12, 2024
Python 3 ERROR

from hey-athena-client.

Comments (3)

rcbyron avatar rcbyron commented on May 12, 2024

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

from hey-athena-client.

 avatar commented on May 12, 2024

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.

from hey-athena-client.

rcbyron avatar rcbyron commented on May 12, 2024

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

from hey-athena-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.