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

ImportError #175

Closed
smorello87 opened this issue Jan 25, 2021 · 2 comments
Closed

ImportError #175

smorello87 opened this issue Jan 25, 2021 · 2 comments
Labels

Comments

@smorello87
Copy link

smorello87 commented Jan 25, 2021

Describe the bug
When I try to run the script as per the documentation (e.g.

export GENIUS_CLIENT_ACCESS_TOKEN="MYTOKENGOESHERE"
python3 -m lyricsgenius artist "The Beatles" --max-songs 5 --save ) I received the following error:

Traceback (most recent call last):
File "/Users/veritas44/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/veritas44/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/veritas44/opt/anaconda3/lib/python3.8/site-packages/lyricsgenius/main.py", line 8, in
from lyricsgenius.api import Genius
ImportError: cannot import name 'Genius' from 'lyricsgenius.api' (/Users/veritas44/opt/anaconda3/lib/python3.8/site-packages/lyricsgenius/api/init.py)

To Reproduce
Describe the steps required to reproduce the behavior.

  1. Install the LyricsGenius package
  2. Run the script

Include the error message associated with the bug.

Version info

  • Package version 2.0.2
  • OS: [macOS Catalina]
  • Python/Anaconda 3.8
@allerter
Copy link
Collaborator

Use the master branch until version 3.0 is released.

pip uninstall lyricsgenius
pip install git+https://github.com/johnwmillr/LyricsGenius.git

@smorello87
Copy link
Author

smorello87 commented Jan 26, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants