-
Notifications
You must be signed in to change notification settings - Fork 402
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
playout_controls.sh not found #617
Comments
Hi @empydempy, do other buttons work, which control the behavior of the phoniebox?
|
Hi Miczflor, thanks for the quick answer. Acutally, I installed Rasbian (buster) and ran the Jukebox script on another SD-Card to check if it would work then. Then I copied the GPIO-buttons script from the samples to the script folder using this command: After that I chmod +x the GPIO buttons script (sudo chmod +x /home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py) and then ran it without alternating anything. (python3 /home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py) I attached the button to GPIO 26 ("next") -> Unfortunately I get the same result :-( You are saying that the script seems to be found in another place. Here is a listing of my script folder: Should I copy the script or the playout_conrtols somewhere else? thanks once more :-) |
Hi all, it seems that I solved the problem. As soon as I am sure I will post the result. |
Its working for all buttons tested yet. Next, Vol Up/down....so I guess it will work for the other too. At the moment I commented shutdown out since I am using an oled. I will close this Issue and hope it helps others running into this problem. Here is the modified script which hopefully avoids any trouble with the hifiberry and the oled: #!/usr/bin/python3 This script will block any I2S DAC e.g. from Hifiberry, Justboom, ES9023, PCM5102Adue to the assignment of GPIO 19 and 21 to a buttons2018-10-31Added the function on holding volume + - buttons to change the volume in 0.3s interval2018-10-15this script has the
|
Hi all,
this project is great. I am pretty new to linux and I guess this won't be too tough to handle.
But I haven't found an answer by searching google...or I didn't get it ;-)
Here is what I get when pressing on volU button which I changed to GPIO 5 because I am using hifiberry miniamp. I think the issue I have is just in the beginning where it says playout_controls.sh not found
python3 /home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gpiozero/pins/rpigpio.py", line 244, in _call_when_changed
super(RPiGPIOPin, self)._call_when_changed()
File "/usr/lib/python3/dist-packages/gpiozero/pins/local.py", line 143, in _call_when_changed
self.state if state is None else state)
File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 293, in _call_when_changed
method(ticks, state)
File "/usr/lib/python3/dist-packages/gpiozero/input_devices.py", line 197, in _pin_changed
self._fire_events(ticks, bool(self._state_to_value(state)))
File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 368, in _fire_events
self._fire_activated()
File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 397, in _fire_activated
super(HoldMixin, self)._fire_activated()
File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 344, in _fire_activated
self.when_activated()
File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 26, in def_volU
check_call("./scripts/playout_controls.sh -c=volumeup", shell=True)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=volumeup' returned non-zero exit status 127.
Thanks in advance for your help.
empy
The text was updated successfully, but these errors were encountered: