• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • S
    saccublenda
    last edited by 10 Jun 2021, 11:12

    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
    • M
      mitu Global Moderator
      last edited by 10 Jun 2021, 11:49

      What's the output of:

      ls -1 /dev/input/js* 2>/dev/null | head -n1
      
      S 1 Reply Last reply 10 Jun 2021, 11:54 Reply Quote 0
      • S
        saccublenda @mitu
        last edited by 10 Jun 2021, 11:54

        @mitu

        /dev/input/js0
        
        1 Reply Last reply Reply Quote 0
        • M
          mitu Global Moderator
          last edited by 10 Jun 2021, 17:20

          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.

          S 1 Reply Last reply 10 Jun 2021, 17:45 Reply Quote 0
          • S
            saccublenda @mitu
            last edited by 10 Jun 2021, 17:45

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

            S 1 Reply Last reply 11 Jun 2021, 09:10 Reply Quote 0
            • S
              saccublenda @saccublenda
              last edited by saccublenda 6 Nov 2021, 10:17 11 Jun 2021, 09:10

              @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
              • M
                mitu Global Moderator
                last edited by 11 Jun 2021, 09:29

                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 ?

                S 1 Reply Last reply 11 Jun 2021, 09:34 Reply Quote 0
                • S
                  saccublenda @mitu
                  last edited by 11 Jun 2021, 09:34

                  @mitu No errors:

                  Checking object directories: 100% (256/256), done.
                  Checking objects: 100% (35216/35216), done.
                  1 Reply Last reply Reply Quote 0
                  1 out of 8
                  • First post
                    1/8
                    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.

                    This community forum collects and processes your personal information.
                    consent.not_received