You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks very much for providing this library. It made it much, much easier for me to get going in PiWars.
I updated the packages on my Pi recently and I now get this error when my controller connects:
File "/usr/local/lib/python3.7/dist-packages/approxeng/input/selectbinder.py", line 131, in bind_controllers
sys.scan_cache(force_update=True)
File "/usr/local/lib/python3.7/dist-packages/approxeng/input/sys.py", line 23, in scan_cache
__CACHED_SCAN__ = scan_system()
File "/usr/local/lib/python3.7/dist-packages/approxeng/input/sys.py", line 126, in scan_system
device_id = find_device_hardware_id(sub + '/device/uevent')
File "/usr/local/lib/python3.7/dist-packages/approxeng/input/sys.py", line 107, in find_device_hardware_id
for line in open(uevent_file_path, 'r').read().split('\n'):
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/leds/default-on/device/uevent'
The problem is that /sys/class/leds/default-on/ doesn't contain a device directory.
Catching the file not found exception like this fixes the issue: f0633b3
Is this a problem with my Pi?
cheers,
Richard (Team Gremlin)
The text was updated successfully, but these errors were encountered:
What controller are you using? Sounds like a library bug rather than a Pi issue, I'm curious where that 'default-on' is coming from though. Will have a dig and get back to you.
Hi,
First of all, thanks very much for providing this library. It made it much, much easier for me to get going in PiWars.
I updated the packages on my Pi recently and I now get this error when my controller connects:
The problem is that
/sys/class/leds/default-on/
doesn't contain adevice
directory.Catching the file not found exception like this fixes the issue:
f0633b3
Is this a problem with my Pi?
cheers,
Richard (Team Gremlin)
The text was updated successfully, but these errors were encountered: