[GH-ISSUE #7] TypeError: unsupported operand type(s) for |: 'type' and 'type' #188

Closed
opened 2026-03-01 16:03:36 +03:00 by kerem · 0 comments
Owner

Originally created by @ChilledSlim on GitHub (Mar 30, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/7

Within the Docker container, config.py throws a typeerror. Tried with both an empty config file and with a config file.

# docker run --rm   -v "/media/pool/incoming/Zotify Music:/root/Music/Zotify Music"   -v "/media/pool/incoming/Zotify Podcasts:/root/Music/Zotify Podcasts"   -v "/srv/zotify/:/root/.config/zotify/"   -it zotify sh
/app # pip install pkce
/app # python3 -m zotify --help
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/app/zotify/__main__.py", line 10, in <module>
    from zotify.app import client
  File "/app/zotify/app.py", line 5, in <module>
    from zotify.album import download_album, download_artist_albums
  File "/app/zotify/album.py", line 2, in <module>
    from zotify.termoutput import Printer
  File "/app/zotify/termoutput.py", line 6, in <module>
    from zotify.config import *
  File "/app/zotify/config.py", line 126, in <module>
    class Config:
  File "/app/zotify/config.py", line 313, in Config
    def get_temp_download_dir(cls) -> str | PurePath:
**TypeError: unsupported operand type(s) for |: 'type' and 'type'**
Originally created by @ChilledSlim on GitHub (Mar 30, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/7 Within the Docker container, config.py throws a typeerror. Tried with both an empty config file and with a config file. ``` # docker run --rm -v "/media/pool/incoming/Zotify Music:/root/Music/Zotify Music" -v "/media/pool/incoming/Zotify Podcasts:/root/Music/Zotify Podcasts" -v "/srv/zotify/:/root/.config/zotify/" -it zotify sh /app # pip install pkce /app # python3 -m zotify --help Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/app/zotify/__main__.py", line 10, in <module> from zotify.app import client File "/app/zotify/app.py", line 5, in <module> from zotify.album import download_album, download_artist_albums File "/app/zotify/album.py", line 2, in <module> from zotify.termoutput import Printer File "/app/zotify/termoutput.py", line 6, in <module> from zotify.config import * File "/app/zotify/config.py", line 126, in <module> class Config: File "/app/zotify/config.py", line 313, in Config def get_temp_download_dir(cls) -> str | PurePath: **TypeError: unsupported operand type(s) for |: 'type' and 'type'** ```
kerem closed this issue 2026-03-01 16:03:36 +03:00
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#188
No description provided.