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

    SOLVED: joy2key_sdl.py throwing error

    Scheduled Pinned Locked Moved Help and Support
    x86ubunturuncommand
    9 Posts 2 Posters 1.0k 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.
    • johnodonJ
      johnodon
      last edited by johnodon

      Pi Model or other hardware: HP Elitedesk 800 G1
      Power Supply used: n/a
      RetroPie Version Used : 4.7.15 (376ea035)
      Built From: Ubuntu Server 20.04.2 x64
      USB Devices connected: Keyboard and mouse
      Controller used: Keyboard (for now)
      Error messages received: /opt/retropie/supplementary/runcommand/joy2key_sdl.py:513: SyntaxWarning: "is not" with a literal. Did you mean "!="? wrapper_version = '.'.join(str(i) for i in version_info if i is not '')
      Verbose log (if relevant): Didn't see any reference in the ES log. The above error is displayed in the gnome terminal window at rom launch.
      Guide used: https://retropie.org.uk/docs/Debian/
      File: n/a
      Emulator: any
      Attachment of config files:
      How to replicate the problem: Install Ubuntu Server 20.04.2 and install RP per the instructions on the instructions.

      Has there been a recent change to the joy2key_sdl.py script? I am now receiving the below error when launch a rom:

      /opt/retropie/supplementary/runcommand/joy2key_sdl.py:513: SyntaxWarning: "is not" with a literal. Did you mean "!="?
        wrapper_version = '.'.join(str(i) for i in version_info if i is not '')
      

      John

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

        @johnodon said in joy2key_sdl.py throwing error:

        Has there been a recent change to the joy2key_sdl.py script? I am now receiving the below error when launch a rom:

        Yes, this is a new script, that implements joy2key using SDL.

        Error messages received: /opt/retropie/supplementary/runcommand/joy2key_sdl.py:513

        that's strange, since this line is reached only when debugging is enabled for the script, which shouldn't be by default. I'll see if this pops up when no gamepad is connected.

        johnodonJ 1 Reply Last reply Reply Quote 0
        • johnodonJ
          johnodon
          last edited by

          UPDATE: My workaround for the time being is to copy /etc/emulationstation/es_systems.cfg to /opt/retropie/configs/all/emulationstation and pipe runcommand.sh stderr to null:

          <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade %ROM% 2> /dev/null</command>
          
          1 Reply Last reply Reply Quote 0
          • johnodonJ
            johnodon @mitu
            last edited by johnodon

            @mitu said in joy2key_sdl.py throwing error:

            @johnodon said in joy2key_sdl.py throwing error:

            Has there been a recent change to the joy2key_sdl.py script? I am now receiving the below error when launch a rom:

            Yes, this is a new script, that implements joy2key using SDL.

            Error messages received: /opt/retropie/supplementary/runcommand/joy2key_sdl.py:513

            that's strange, since this line is reached only when debugging is enabled for the script, which shouldn't be by default. I'll see if this pops up when no gamepad is connected.

            Thanks @mitu. I'm using only a USB KB and mouse right now...no controllers. This is my arcade cab so I will eventually move over to my iPAC4.

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

              I can't seem to reproduce this - I don't see the warning message. Do you have the runcommand launch menu disabled ?
              You can also opt to use the previous joy2key version (udev based) from the runcommand configuration menu.

              EDIT: nevermind, I see it now. Some new warning in Python 3.8, which should be easy to fix.

              johnodonJ 1 Reply Last reply Reply Quote 1
              • johnodonJ
                johnodon @mitu
                last edited by

                @mitu said in joy2key_sdl.py throwing error:

                I can't seem to reproduce this - I don't see the warning message. Do you have the runcommand launch menu disabled ?
                You can also opt to use the previous joy2key version (udev based) from the runcommand configuration menu.

                EDIT: nevermind, I see it now. Some new warning in Python 3.8, which should be easy to fix.

                Gracias. Need me to open a GH issue?

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

                  @johnodon said in joy2key_sdl.py throwing error:

                  Need me to open a GH issue?

                  Why ? A forum post with an error/warning message is just as good - the problem is understood and a fix is easily attainable.

                  johnodonJ 1 Reply Last reply Reply Quote 0
                  • johnodonJ
                    johnodon @mitu
                    last edited by johnodon

                    @mitu said in joy2key_sdl.py throwing error:

                    @johnodon said in joy2key_sdl.py throwing error:

                    Need me to open a GH issue?

                    Why ? A forum post with an error/warning message is just as good - the problem is understood and a fix is easily attainable.

                    OK. I was going to post the issue on GH but it said to post on the forums first. However, I see you already created the PR.

                    johnodonJ 1 Reply Last reply Reply Quote 0
                    • johnodonJ
                      johnodon @johnodon
                      last edited by

                      Commit https://github.com/RetroPie/RetroPie-Setup/commit/ee74dbdf223f8dd99d5457c4563bd7f92e156ed8 has fixed the issue.

                      Thanks you @mitu

                      1 Reply Last reply Reply Quote 1
                      • 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.