RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Problem with joystick-selection tool

    Scheduled Pinned Locked Moved Help and Support
    joystick-select
    8 Posts 2 Posters 606 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • saccublendaS
      saccublenda
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        What's the output of:

        ls -1 /dev/input/js* 2>/dev/null | head -n1
        
        saccublendaS 1 Reply Last reply Reply Quote 0
        • saccublendaS
          saccublenda @mitu
          last edited by

          @mitu

          /dev/input/js0
          
          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            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 - the joy2key.py script neither.

            saccublendaS 1 Reply Last reply Reply Quote 0
            • saccublendaS
              saccublenda @mitu
              last edited by

              @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.

              saccublendaS 1 Reply Last reply Reply Quote 0
              • saccublendaS
                saccublenda @saccublenda
                last edited by saccublenda

                @mitu
                I don't know if it is related, but I've run into some errors also when trying to access the configuration editor configedit from RetroPie Setup: if I select option 1 Configure 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.")
                
                1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator
                  last edited by

                  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 ?

                  saccublendaS 1 Reply Last reply Reply Quote 0
                  • saccublendaS
                    saccublenda @mitu
                    last edited by

                    @mitu No errors:

                    Checking object directories: 100% (256/256), done.
                    Checking objects: 100% (35216/35216), done.
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    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.