[GH-ISSUE #68] [Bug Report] ImportError: cannot import name 'OAuth' from 'librespot.core' #57

Closed
opened 2026-02-27 04:57:18 +03:00 by kerem · 2 comments
Owner

Originally created by @jozzo402 on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/68

Originally assigned to: @Googolplexed0 on GitHub.

Bug Description
I installed the latest version and tried to run it with zotify. It fails with the error ImportError: cannot import name 'OAuth' from 'librespot.core'.
I tried reinstalling with both the pipx and python modules and both gave the same error.

Bug Triggering Command
Any zotify command, including --help

Error Traceback / Logs

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Scripts\zotify.exe\__main__.py", line 4, in <module>
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\__main__.py", line 11, in <module>
    from zotify.app import client
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\app.py", line 5, in <module>
    from zotify.album import download_album, download_artist_albums
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\album.py", line 1, in <module>
    from zotify.config import Zotify
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\config.py", line 9, in <module>
    from librespot.core import Session, OAuth
ImportError: cannot import name 'OAuth' from 'librespot.core' (C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\librespot\core.py)

Config File
NA

Zotify Version
Version: 0.9.26

Originally created by @jozzo402 on GitHub (Sep 5, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/68 Originally assigned to: @Googolplexed0 on GitHub. **Bug Description** I installed the latest version and tried to run it with `zotify`. It fails with the error `ImportError: cannot import name 'OAuth' from 'librespot.core'`. I tried reinstalling with both the pipx and python modules and both gave the same error. **Bug Triggering Command** Any `zotify` command, including `--help` **Error Traceback / Logs** ``` Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\User\AppData\Local\Programs\Python\Python311\Scripts\zotify.exe\__main__.py", line 4, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\__main__.py", line 11, in <module> from zotify.app import client File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\app.py", line 5, in <module> from zotify.album import download_album, download_artist_albums File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\album.py", line 1, in <module> from zotify.config import Zotify File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\config.py", line 9, in <module> from librespot.core import Session, OAuth ImportError: cannot import name 'OAuth' from 'librespot.core' (C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\librespot\core.py) ``` **Config File** NA **Zotify Version** Version: 0.9.26
kerem 2026-02-27 04:57:18 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Sep 7, 2025):

This usually means that your librespot library is out of date. This can happen to the Python module version if you don't upgrade the requirements.txt when updating Zotify. Theoretically, it shouldn't be possible to have this issue with the pipx version. Are you including --force when updating the pipx version?

<!-- gh-comment-id:3263334928 --> @Googolplexed0 commented on GitHub (Sep 7, 2025): This usually means that your librespot library is out of date. This can happen to the Python module version if you don't upgrade the `requirements.txt` when updating Zotify. Theoretically, it shouldn't be possible to have this issue with the pipx version. Are you including `--force` when updating the pipx version?
Author
Owner

@jozzo402 commented on GitHub (Sep 18, 2025):

Yep looks like that was the issue! I cleared out my old libraries and after reinstalling, the zotify command works as normal.

<!-- gh-comment-id:3305400888 --> @jozzo402 commented on GitHub (Sep 18, 2025): Yep looks like that was the issue! I cleared out my old libraries and after reinstalling, the `zotify` command works as normal.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#57
No description provided.