Skip to content

MacOS Monterey 12.3 - no more python 2 - Arduino cannot compile any sketch #11771

@homonto

Description

@homonto

Since the newest MacOS upgrade to 12.3 there in no python in MacOS
Installing python3 by any ways does not solve the problem and Arduino cannot find the python script to compile the sketch:

after installing python3 using brew, my .zprofile looks like this:

    PATH="/opt/homebrew/bin:${PATH}"
    export PATH

and command "echo $PATH" shows:

% echo $PATH
/opt/homebrew/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:

and after linking python3 to python by command:
ln -s which python3 /opt/homebrew/bin/python

~ % which python
/opt/homebrew/bin/python

but Arduino still cannot execute command:

python /Users/me/Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/tools/gen_esp32part.py

saying:

`exec: "python": executable file not found in $PATH`

Metadata

Metadata

Assignees

Labels

Component: CompilationRelated to compilation of Arduino sketchesType: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions