Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]OntheSpot doesn't open #154

Open
fionabristol opened this issue Sep 13, 2024 · 2 comments
Open

[BUG]OntheSpot doesn't open #154

fionabristol opened this issue Sep 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@fionabristol
Copy link

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
@fionabristol fionabristol added the bug Something isn't working label Sep 13, 2024
@justin025
Copy link

justin025 commented 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

@ElryGH
Copy link

ElryGH commented Nov 20, 2024

Can confirm, using Arch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants