johnwmillr / LyricsGenius

Download song lyrics and metadata from Genius.com 🎶🎤
http://www.johnwmillr.com/scraping-genius-lyrics/
MIT License
892 stars 158 forks source link

ImportError #175

Closed smorello87 closed 3 years ago

smorello87 commented 3 years ago

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

allerter commented 3 years ago

Use the master branch until version 3.0 is released.

pip uninstall lyricsgenius
pip install git+https://github.com/johnwmillr/LyricsGenius.git
smorello87 commented 3 years ago

Thank you, that fixed it.

On Mon, Jan 25, 2021 at 1:12 PM Allerter notifications@github.com wrote:

Use the master branch until version 3.0 is released.

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/johnwmillr/LyricsGenius/issues/175#issuecomment-767010641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOLBFHAII5NLDD4TAGJ5HTS3WX7XANCNFSM4WR2NDRA .