Problem with joystick-selection tool
-
Hello,
I'm having some problems with the @meleu joystick-selection tool. When I run it I get these error messages:Traceback (most recent call last): File "/opt/retropie/supplementary/runcommand/joy2key.py", line 241, in <module> chars = get_hex_chars(arg) File "/opt/retropie/supplementary/runcommand/joy2key.py", line 147, in get_hex_chars return out.decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode'
Then, when I select
System specific joystick selection
from the Joystick Selection Main Menu nothing happens and it just sends me back to the main menu.Pi Model or other hardware: pi4 4gb
Power Supply used: USB3.0
RetroPie Version Used: 4.7.14
Built From: https://github.com/RetroPie/RetroPie-Setup/releases/download/4.7.1/retropie-buster-4.7.1-rpi4_400.img.gz
USB Devices connected: none
Controller used: 8bitdo sfc30 (bluetooth) -
What's the output of:
ls -1 /dev/input/js* 2>/dev/null | head -n1
-
/dev/input/js0
-
That seems fine. The error comes from the
joy2key
script and it usually happens when one of the arguments is incorrect. I see the joystick selection tool starts it here and the only variable param is the joystick device. Strange, as @meleu's tool hasn't been changed in quite some time and - similarly - thejoy2key.py
script neither. -
@mitu Yes, I remember it was working fine before. I didn't use it for some time, and today I found out it was not working anymore. I don't know what changed.
-
@mitu
I don't know if it is related, but I've run into some errors also when trying to access the configuration editorconfigedit
fromRetroPie Setup
: if I select option 1Configure basic libretro emulator options
i get this error message:/home/pi/RetroPie-Setup/scriptmodules/supplementary/configedit.sh: line 371: Error: Expected at least 5 tokens for --menu, have 4. Use --help to list options.: syntax error in expression (error token is ": Expected at least 5 tokens for --menu, have 4. Use --help to list options.")
-
I wonder if any files from RetroPie-Setup are corrupted. Can you run:
cd $HOME/RetroPie-Setup git fsck
and see if you get any errors ?
-
@mitu No errors:
Checking object directories: 100% (256/256), done. Checking objects: 100% (35216/35216), done.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.