-
Notifications
You must be signed in to change notification settings - Fork 13.3k
python.exe": file does not exist #5881
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
Comments
After the installation python.exe is hier: |
Ah, thanks for trying this out. So, in summary, python.exe location is busted when installed using a packaged JSON file. That was my worry as well. It should just require adjusting to the "proper" Arduino macros inside the boards.txt. I'll look at it this weekend and see what I can find. |
@earlephilhower Just to let you know, if I move the content of |
the path to a tool installed in Arduino IDE is |
Fixes esp8266#5881 The path to python.exe on Windows needs to change depending on whether it is installed via the boards manager or GIT (similar to the compiler paths). Adjust accordingly.
I need to make a fake Python package for Linux as well. Arduino complains if a tool is missing:
|
@Juppit , thanks for the easy reproduction steps. I've tried on my Windows VM and Linux host and all seems to be working with the above PR. Could you give it a try? |
@earlephilhower I'll try to find the right changes for build_boards_manager_package script if the next few days are not too busy for me. |
Upps, |
@earlephilhower
|
Thanks, @Juppit . Uploading was one thing I did not try on Windows, and it was definitely busted. I've done 4 tests building and uploading (win/git, win/json, lin/git, lin/json) and it seems to be running with the latest version of the PR. Basically the upload stage cannot see some of the variables in the rest of the file, just to be different, so we need to swap paths there like we do in the GCC binary section between GIT and JSON. If you've got another few mins, can you check yourself? It gets confusing swapping between two systems and uninstalling/renaming/etc. to test this... |
@earlephilhower
|
That's always output, not sure what to say. Verbose actually dumps the entire protocol with byte-by-byte hex dumps of the serial port/etc. You may be thinking of the older esptool-ck.exe output, which is pretty much quiet except for the "..."s as it uploads. |
* Fix packaged python paths for Windows Fixes #5881 The path to python.exe on Windows needs to change depending on whether it is installed via the boards manager or GIT (similar to the compiler paths). Adjust accordingly. * Add python-placeholder to make boardsmanager happy An empty "python" directory will be created by the boards-manager installer. Required because all archs need all tools defined. * Make the placeholder include a symlink for "python" * Fix esptool windows python path Fixes a typo in the python path for Windows for upload. * Fix esptool windows python path Fixes a typo in the python path for Windows for upload. * Fix tools path when in GIT mode for upload
I had this problem and do this again and solved, That's all. |
$ python get.py |
Basic Infos
Platform
Settings in IDE
Problem Description
Building any sketch I get the error:
"C:\\Users\\Peter\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.0-dev-nightly+20190315/tools/python/python.exe": file does not exist
The file python.exe is not in the tools directory within 2.6.0-dev..., it is in the directory
C:\Users\Peter\AppData\Local\Arduino15\packages\esp8266\tools\python
My build steps from Cygwin on Windows 10:
http://localhost:8000/versions/package_esp8266com_index.json
One note: to build step 3, there is jq.exe in version 1.6 necessary
The text was updated successfully, but these errors were encountered: