Issues with Python on MacOS 13.4 (Ventura)

Arduino IDE was working fine for me on MacOS Monterey. Then I got a new machine with Ventura pre-installed and migrated over using a TimeMachine backup. Now I cannot compile a working sketch in Arduino IDE.

Per numerous other threads, I edited the 'platform.txt' file to replace the two references to 'python' with 'python3'. Also began starting Arduino IDE from Terminal (using "open /Applications/Arduino.app") to circumvent issue of PATH not being loaded. Now the compile fail I get is:

xcode-select: Failed to locate 'python', requesting installation of command line developer tools.```

I have re-installed the comand line developer tools.

At wits' end.

Have you try deleting the IDE and the various boards you copied over and reinstall from scratch ?

No, but I just did try doing a soft link from python3 to python. But not in /usr/bin where python3 is located. I tried that and it did not work. What DID work was to do that softlink in /Library/Developer/CommandLineTools/usr/bin (where python3 also exists).

I have no idea why this works (to do the softlink there instead of in /usr/bin) :wink:

I still have to start Arduino IDE using the Open command in Terminal.

You migrated over using a TimeMachine backup but you likely did not get all system files and so your IDE environment in the Arduino15 folder probably has a configuration that refers to the old OS way

I would do a clean install of the IDE and tools

OK, I'll try that, thanks.

Hmm, so I installed the new Arduino 2 instead, and now both it and Arduino v1 work properly (even without starting them from Terminal). Keeps getting weirder - but it basically works, so I'm happy enough.

2 Likes

Both IDEs use the same compiler so I’m not surprised it’s working

As I said, the migration from time machine migrated some configuration options which were made based on the OS at the time and you changed the OS so you needed to update those preferences. The easiest way to do this is probably running the clean install and getting the IDE 2 probably did this

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.