-
Notifications
You must be signed in to change notification settings - Fork 15
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
windows setup for ESP32 fails - python not found #145
Comments
When launching the Moddable command prompt, the following message is displayed. Just FYI.
|
I see that the Python version is not found when running It's my understanding that the ESP-IDF should be providing its vendored version of Python as well. The message when running the hello world example appears to come from the esp-idf script to determine which Python version to use:
The code for calling the esp-idf installer on Windows can be found here: https://github.com/HipsterBrown/xs-dev/blob/main/src/toolbox/setup/esp32/windows.ts#L11 cc @andycarle |
Curious. I'll be able to take a solid look at this early next week. |
So far I'm not able to reproduce this. But I have a decent idea of how it could happen. When I start fresh with
My bet is that the Espressif Tools installer did not successfully run on @phoddie's system. That would cause the Espressif Python virtual environment to be missing when the ESP-IDF environment batch file runs. I'm going to try to get my system to a cleaner state (without those tools pre-existing) to chase this further. |
@phoddie Do you happen to recall if this part of the process completed successfully on your machine: I'm seeing some issues on my machine with the Espressif installer. Basically, it is having trouble overwriting my old version that I "removed" (apparently incompletely) with the Espressif uninstaller. |
@andycarle – I don't recall for sure. It is possible the IDF setup failed at some point. But, it definitely completely successfully at some point. If there's something I can dig out of the install to help diagnose, or something I should try or retry, just let me know. |
I ran xs-dev setup for ESP32 and it reported success. With a fresh Moddable command prompt, the doctor command shows that the ESP-IDF is there.
However, it fails to build helloworld because it cannot find Python.
Running python without any arguments launches the Windows Store to install it. I didn't try that as I'm pretty sure that the ESP-IDF already includes its preferred Python version.
The text was updated successfully, but these errors were encountered: