Open reconbot opened 1 year ago
I just learned about the doctor command
This is my working environment
xs-dev environment info:
CLI Version 0.25.4
OS Darwin
Arch arm64
Shell /bin/zsh
NodeJS Version v18.3.0 (/Users/wizard/.local/share/rtx/installs/nodejs/18.3.0/bin/node)
Python Version 3.9.6 (/Users/wizard/.espressif/python_env/idf4.4_py3.9_env/bin/python)
Moddable SDK Version 3.9.2 (/Users/wizard/src/moddable)
Supported target devices mac, esp32
ESP32 IDF Directory /Users/wizard/.local/share/esp32/esp-idf
Yea, I think I bumped into the same problem. @HipsterBrown is there anything we can do to help others avoid this same problem?
Besides setting a specific version of python to be installed via homebrew through xs-dev, we might be able to detect the python version before the homebrew step and see if it changes. If it does, we could call the unlink command automatically (or after prompting the user). Espressif also likes to include their own Python binary, as demonstrated by @reconbot's xs-dev doctor
output.
The least we can do is provide better error handling in the run
/build
workflow and document this in the troubleshooting section of the xs-dev.js.org site.
I think you can set the path to the right version of python for the sub process of the tools. I wouldn't mess with linking.
While installing with
xs-dev setup --device esp32
I kept getting an error. I switched from python 3.11 to 3.9 and it worked.With 3.11 I got a pretty long error but I think this is the relevant part.
I was able to switch my homebrew python version with
Possibly related https://github.com/espressif/esp-idf/issues/10116