Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Official moOde 6.5.1 support thread
#94
Hi Tim ,

there appears to be an issue with the gpio-buttons script on the new 6.5.1 image.

I tried a fresh install of the image and with no configurations except wifi network set and gpio handler configuration for buttons saved

when I run ./gpio-buttons.py from terminal I get the error 


Code:
2020-05-03 13:59:51 sw_1: pin=26, enabled=1, bounce_time=500, cmd=mpc toggle
2020-05-03 13:59:51 sw_2: pin=27, enabled=1, bounce_time=500, cmd=/var/www/vol.sh up 1
2020-05-03 13:59:51 sw_3: pin=23, enabled=1, bounce_time=500, cmd=/var/www/vol.sh dn 1
Traceback (most recent call last):
 File "./gpio-buttons.py", line 57, in sw_1_event
   subprocess.call(sw_1_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
 File "./gpio-buttons.py", line 73, in sw_2_event
   subprocess.call(sw_2_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
 File "./gpio-buttons.py", line 89, in sw_3_event
   subprocess.call(sw_3_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
^CTraceback (most recent call last):
 File "./gpio-buttons.py", line 181, in <module>
   time.sleep(1)
any ideas?


Messages In This Thread
RE: Official moOde 6.5.1 support thread - by GreyLinux - 05-03-2020, 01:04 PM

Forum Jump: