[GH-ISSUE #154] [BUG]OntheSpot doesn't open #118

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

Originally created by @fionabristol on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/154

Fails to launch, terminal output is:

OTS Version :  0.5
Config version:  0.5
Attempting to use system ffmpeg binary !
Using ffmpeg binary at:  /usr/bin/ffmpeg
[2024-09-13 14:31:03,695 :: 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:

  • OS: Linux6.647-1-Manjaro Rolling, GNOME 46, X11, Python 3.12.5
  • OnTheSpot Version: 0.5-1
Originally created by @fionabristol on GitHub (Sep 13, 2024). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/154 Fails to launch, terminal output is: ``` OTS Version : 0.5 Config version: 0.5 Attempting to use system ffmpeg binary ! Using ffmpeg binary at: /usr/bin/ffmpeg [2024-09-13 14:31:03,695 :: 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:** - OS: Linux6.647-1-Manjaro Rolling, GNOME 46, X11, Python 3.12.5 - OnTheSpot Version: 0.5-1
Author
Owner

@justin025 commented on GitHub (Sep 16, 2024):

run PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python onthespot

to set this permanently add the following line to your bashrc
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

<!-- gh-comment-id:2351980118 --> @justin025 commented on GitHub (Sep 16, 2024): run `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python onthespot` to set this permanently add the following line to your bashrc `export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python`
Author
Owner

@impishlucy commented on GitHub (Nov 20, 2024):

Can confirm, using Arch.

<!-- gh-comment-id:2489572216 --> @impishlucy commented on GitHub (Nov 20, 2024): Can confirm, using Arch.
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#118
No description provided.