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

mopidy.commands Got un-handled exception from RaspberryGPIOFrontend (v1.0.4) #16

Open
kokosowy opened this issue Dec 16, 2021 · 1 comment

Comments

@kokosowy
Copy link

kokosowy commented Dec 16, 2021

Hi all!

I get this error, most probably after the update to v1.0.4:

gru 16 11:25:46 pirateaudio mopidy[474]: ERROR    [MainThread] mopidy.commands Got un-handled exception from RaspberryGPIOFrontend
gru 16 11:25:46 pirateaudio mopidy[474]: Traceback (most recent call last):
gru 16 11:25:46 pirateaudio mopidy[474]:   File "/usr/local/lib/python3.7/dist-packages/mopidy/commands.py", line 248, in _actor_error_handling
gru 16 11:25:46 pirateaudio mopidy[474]:     yield
gru 16 11:25:46 pirateaudio mopidy[474]:   File "/usr/local/lib/python3.7/dist-packages/mopidy/commands.py", line 445, in start_frontends
gru 16 11:25:46 pirateaudio mopidy[474]:     frontend_class.start(config=config, core=core)
gru 16 11:25:46 pirateaudio mopidy[474]:   File "/usr/local/lib/python3.7/dist-packages/pykka/_actor.py", line 86, in start
gru 16 11:25:46 pirateaudio mopidy[474]:     obj = cls(*args, **kwargs)
gru 16 11:25:46 pirateaudio mopidy[474]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_raspberry_gpio/frontend.py", line 56, in __init__

Can anybody help troubleshooting this, please?

@beeka
Copy link

beeka commented May 10, 2023

From "sudo journalctl -u mopidy" I get:

 ERROR    [MainThread] mopidy.commands Got un-handled exception from RaspberryGPIOFrontend
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/mopidy/commands.py", line 248, in _actor_error_handling
      yield
    File "/usr/lib/python3/dist-packages/mopidy/commands.py", line 445, in start_frontends
      frontend_class.start(config=config, core=core)
    File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 91, in start
      obj = cls(*args, **kwargs)
    File "/usr/local/lib/python3.7/dist-packages/mopidy_raspberry_gpio/frontend.py", line 56, in __init__
      bouncetime=settings.bouncetime,
  RuntimeError: Failed to add edge detection

This was fixed by running sudo usermod -a -G gpio mopidy. I'm still not getting the buttons doing anything, but at least the error is gone (broken during an OS update?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants