-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It will show that python is not installed. #95
Comments
This is the offending line. You need to remove $IDF_PATH from your environment, unless you are using a properly activated environment (running export.sh inside esp-idf). |
Does running |
The .cargo/config.toml looks like this
I added the [env] part with reference to the README.md of esp-idf-sys. Before I added this, I was getting errors like this.
Because of the "Could not install esp-idf" message, I had to specify the path to the esp-idf installed in VSCode's "Espressif IDF". python --version
|
.cargo/config.tomlThe config.toml is used as the project is newly created.
Backtrace of cargo build
|
I was able to build successfullyWhat we didInstalled Python 3.10.4 with the official Python installer. C:\train-rust-esp32\test>python --version
Python 3.10.4
C:\train-rust-esp32\test>where python
C:\Users\<user name>\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\<user name>\.pyenv\pyenv-win\shims\python
C:\Users\<user name>\.pyenv\pyenv-win\shims\python.bat Build logC:\train-rust-esp32\test>cargo build
Compiling bindgen v0.59.2
Compiling embuild v0.29.1
Compiling esp-idf-sys v0.31.5
Compiling test v0.1.0 (C:\train-rust-esp32\test)
Finished dev [optimized + debuginfo] target(s) in 1m 00s I was using pytnon with pyenv-win, but found that this does not work. I don't know why I shouldn't have to install a new one, since the path should be through pyenv alone. Was the problem with embuild in the first place, rather than esp-idf-sys...? |
I just looked at the pyenv docs, it seems like it adds a |
I can only speculate as I don't know how pyenv-win does its python shims. This issue relates to how we run Currently, we use the So even though there is
That shouldn't be an issue, at least this SuperUser answer says that the system $PATH is prepended to the user $PATH. |
https://github.com/esp-rs/esp-idf-template
I generated a project based on this site and ran
cargo build
and got the following.Python is already installed.
The text was updated successfully, but these errors were encountered: