[GH-ISSUE #141] [BUG] Package from AUR doesn't open | Librespot problem? #108

Closed
opened 2026-03-04 12:29:03 +03:00 by kerem · 2 comments
Owner

Originally created by @Luther-Gray on GitHub (Jul 18, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/141

Launching via the command onthespot_gui or launching via the binary fails.

Error log from using onthespot_gui

OTS Version :  0.5
Config version:  0.5
Attempting to use system ffmpeg binary !
Using ffmpeg binary at:  /usr/bin/ffmpeg
[2024-07-18 16:18:07,113 :: runtimedata :: /usr/lib/python3.12/site-packages/onthespot/runtimedata.py -> 49:    handle_exception() :: CRITICAL] -> Uncaught exception
Traceback (most recent call last):
  File "/usr/bin/onthespot_gui", line 5, in <module>
    from onthespot import main
  File "/usr/lib/python3.12/site-packages/onthespot/__init__.py", line 4, in <module>
    from .gui.mainui import MainWindow
  File "/usr/lib/python3.12/site-packages/onthespot/gui/mainui.py", line 9, in <module>
    from ..utils.spotify import search_by_term, get_thumbnail
  File "/usr/lib/python3.12/site-packages/onthespot/utils/spotify.py", line 16, in <module>
    from librespot.audio.decoders import AudioQuality
  File "/usr/lib/python3.12/site-packages/librespot/__init__.py", line 3, in <module>
    from librespot.proto.Keyexchange_pb2 import BuildInfo, Platform, Product, ProductFlags
  File "/usr/lib/python3.12/site-packages/librespot/proto/Keyexchange_pb2.py", line 31, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/lib/python3.12/site-packages/google/protobuf/descriptor.py", line 920, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

System Information (please complete the following information):

  • OS: Arch Linux x86_64
  • Kernel: 6.9.9-zen1-1-zen
  • DE: Hyprland
  • FFMPEG Version: 2:7.0.1
  • Librespot Version: 0.4.2
  • Python-Librespot Version: 0.0.9
  • Python Version: 3.12.4
  • OnTheSpot Version: 0.5
Originally created by @Luther-Gray on GitHub (Jul 18, 2024). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/141 Launching via the command onthespot_gui or launching via the binary fails. Error log from using onthespot_gui ``` OTS Version : 0.5 Config version: 0.5 Attempting to use system ffmpeg binary ! Using ffmpeg binary at: /usr/bin/ffmpeg [2024-07-18 16:18:07,113 :: runtimedata :: /usr/lib/python3.12/site-packages/onthespot/runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "/usr/bin/onthespot_gui", line 5, in <module> from onthespot import main File "/usr/lib/python3.12/site-packages/onthespot/__init__.py", line 4, in <module> from .gui.mainui import MainWindow File "/usr/lib/python3.12/site-packages/onthespot/gui/mainui.py", line 9, in <module> from ..utils.spotify import search_by_term, get_thumbnail File "/usr/lib/python3.12/site-packages/onthespot/utils/spotify.py", line 16, in <module> from librespot.audio.decoders import AudioQuality File "/usr/lib/python3.12/site-packages/librespot/__init__.py", line 3, in <module> from librespot.proto.Keyexchange_pb2 import BuildInfo, Platform, Product, ProductFlags File "/usr/lib/python3.12/site-packages/librespot/proto/Keyexchange_pb2.py", line 31, in <module> _descriptor.EnumValueDescriptor( File "/usr/lib/python3.12/site-packages/google/protobuf/descriptor.py", line 920, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates ``` **System Information (please complete the following information):** - OS: Arch Linux x86_64 - Kernel: 6.9.9-zen1-1-zen - DE: Hyprland - FFMPEG Version: 2:7.0.1 - Librespot Version: 0.4.2 - Python-Librespot Version: 0.0.9 - Python Version: 3.12.4 - OnTheSpot Version: 0.5
kerem 2026-03-04 12:29:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@justin025 commented on GitHub (Aug 7, 2024):

You should probably take that up with the aur package maintainer, could you post the output while installing through pacman or yay.

<!-- gh-comment-id:2272372039 --> @justin025 commented on GitHub (Aug 7, 2024): You should probably take that up with the aur package maintainer, could you post the output while installing through pacman or yay.
Author
Owner

@Luther-Gray commented on GitHub (Aug 7, 2024):

I'll move the issue to the AUR comments. Also running the windows exe through Wine works barely well enough to suit my needs.

<!-- gh-comment-id:2272387326 --> @Luther-Gray commented on GitHub (Aug 7, 2024): I'll move the issue to the AUR comments. Also running the windows exe through Wine works barely well enough to suit my needs.
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/onthespot#108
No description provided.