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

    RetroPie v4.6 - Stuck on "Compiling joy2key.py" on both RPi3B+ and 4B

    Scheduled Pinned Locked Moved Help and Support
    retropie-setupstuckcompilingjoy2key.py
    12 Posts 4 Posters 1.5k 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.
    • T
      therydermeister
      last edited by

      Hi, I just got my new RPi4B (8GB RAM) and have been trying to set RetroPie up on it yesterday. No matter what I do, after running a simple

      sudo apt update && sudo apt upgrade
      

      I'm not able to update RP via the RetroPie Setup Script, and in some cases I'm not even able to get into the script menu! After running retropie_setup.sh, it gets stuck on

      Compiling '/opt/retropie/supplementary/runcommand/joy2key.py'...
      

      And the only way out, even after waiting for 1h or more, is to force quit via CTRL + C.
      Just to be sure, I tried flashing the latest RetroPie v4.6 for my Raspberry Pi 3B+, but alas, it gets stuck while trying to run the script on 3B+, too.

      In both cases I had just flashed the latest RetroPie 4.6 image on a Micro SD via BalenaEtcher on Windows and run it.
      I didn't overclock either the 4B or the 3B+. I just ran it once to expand the filesystem, then updated the OS packages and tried to get to the RetroPie Setup Script menu.

      Can someone give me a hint on what I'm (maybe) doing wrong?

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

        Running the setup script should produce a log file in $HOME/RetroPie-Setup/logs, you can remove the existing logs and re-try to update and reproduce the error, quit with Ctrl+C (the 'Compiling...' shouldn't take more than a few seconds) and the post the resulting log on pastebin.com.

        1 Reply Last reply Reply Quote 1
        • T
          therydermeister
          last edited by

          Ok, so I removed the existing logs and tried running the script (this time while connected to WLAN) and this time it didn't stop on compiling Joy2Key, but while

          copying new default configuration to /opt/retropie/configs/all/retroarch.cfg.rp-dist
          /home/pi/RetroPie-Setup
          

          When performing the update of all installed packages.
          I pasted the latest logs to PasteBin here -> https://pastebin.com/QYJDGrCr

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

            Are you using the same SDcard for both the Pi4 and Pi3B+ ? These kind of intermittent issues may be caused by hardware - bad maybe ?

            1 Reply Last reply Reply Quote 0
            • T
              therydermeister
              last edited by

              Same SD card, yes. I might try with another one and see if the problem goes away, big oof if it's caused by a bad SD card because I bought this 400 GB micro SD for this specific purpose... also I tested it with h2testw and all test files were read successfully

              1 Reply Last reply Reply Quote 0
              • T
                therydermeister
                last edited by

                @mitu these intermittent issues could be also caused by a slow micro SD, that you know of? Because the micro SD doesn't seem bad (according to h2testw, at least), but I read some Amazon reviews that lament that it's a little slower than expected with small files r/w (even though it's a Sandisk Ultra A1)

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

                  @therydermeister said in RetroPie v4.6 - Stuck on "Compiling joy2key.py" on both RPi3B+ and 4B:

                  these intermittent issues could be also caused by a slow micro SD, that you know of ?

                  No, it can't be that slow.

                  1 Reply Last reply Reply Quote 1
                  • BuZzB
                    BuZz administrators @therydermeister
                    last edited by

                    @therydermeister how much did you test of the card? Did you check at least 32gb ?

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      therydermeister @BuZz
                      last edited by therydermeister

                      @BuZz I tested almost all of the card successfully (that is, according to H2testw), and I'm testing it again as I'm writing this message.
                      In the meantime @mitu I tried RetroPie 4.6 on my Pi 4 with another SD Card (32 GB) and I can run the script no problem, so I guess it's a SD card problem. Maybe 400 GB is too big for the Raspberry Pi?
                      Anyway I'll let H2testw run fully on this card and if there's a problem I'll try getting a replacement from Amazon.

                      1 Reply Last reply Reply Quote 0
                      • T
                        therydermeister
                        last edited by

                        @BuZz H2Testw didn't find any problem, but I'm still getting a replacement SD Card from Amazon, as soon as I get it I'll try again with the new card, let's hope this one works alright, or else I'll stick to other, smaller cards.

                        1 Reply Last reply Reply Quote 0
                        • T
                          therydermeister
                          last edited by

                          Update: after getting my replacement, I'm now able to update both RetroPie and the underlying OS packages without getting stuck. So my problem was probably due to a bad SD card, even though H2Testw didn't report any error.

                          1 Reply Last reply Reply Quote 0
                          • G
                            guyon
                            last edited by guyon

                            I just encountered this same error today on a 2GB Pi4 with this card: https://www.amazon.com/gp/product/B0887GP791

                            Mine was when hitting the "Update RetroPie-Setup Script".

                            SAMSUNG: EVO Select 128GB MicroSDXC UHS-I U3 100MB/s Full HD & 4K UHD Memory Card with Adapter (MB-ME128HA)

                            Fresh installation, and only time this card has been used.

                            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.