mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-25 06:15:55 +03:00
[GH-ISSUE #58] [Bug Report] Protobuf Direct Created Descriptor #47
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alitteration on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/58
Originally assigned to: @Googolplexed0 on GitHub.
Bug Description
Protobuf issue, i keep on getting _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
Bug Triggering Command
python3 -m zotify "https://xxx"
Error Traceback / Logs
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/zotify/main.py", line 11, in
from zotify.app import client
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/zotify/app.py", line 5, in
from zotify.album import download_album, download_artist_albums
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/zotify/album.py", line 1, in
from zotify.config import Zotify
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/zotify/config.py", line 9, in
from librespot.core import Session, OAuth
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/librespot/core.py", line 60, in
from librespot.proto.spotify.login5.v3 import Login5_pb2 as Login5
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/librespot/proto/spotify/login5/v3/Login5_pb2.py", line 15, in
from ..v3.identifiers import Identifiers as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/librespot/proto/spotify/login5/v3/identifiers/Identifiers.py", line 32, in
_descriptor.FieldDescriptor(
File "/home/sedative/zotify-main/my_project/my_env/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 556, in new
_message.Message._CheckCalledFromGeneratedFile()
Config File
Doesn't exist yet
Zotify Version
Latest
Additional Context
Add any other context about the problem here. Include additional track urls if reproducible.
@Googolplexed0 commented on GitHub (Aug 21, 2025):
Sorry, but I have absolutely no clue what this issue means or how to fix it. It's obviously caused by the new implementation of Login5 (to fix #48) but I neither created the protobuf (that was already upstream) nor know much about the protocol.
Nothing is actually even running yet, for you it's failing at the import stage. This is extra strange since everything imports fine on my machine and most other users'. Try to do some more research, since this seems like a non-Zotify-specific issue.
Maybe try checking the version of your
protobuflibrary? Should be locked to exactlyprotobuf==3.20.1.@Googolplexed0 commented on GitHub (Aug 22, 2025):
This might fix it. Force reinstall and try again.
@NickDegrasse commented on GitHub (Aug 22, 2025):
Just force reinstalled and it appears to be running now, thanks!
@alitteration commented on GitHub (Aug 22, 2025):
Ty will give it a shot!