Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Visual Studio 2017, 2019 >> Where to set the python path in VS17 & vMicro?
https://www.visualmicro.com/forums/YaBB.pl?num=1562321507

Message started by drs on Jul 5th, 2019 at 11:11am

Title: Where to set the python path in VS17 & vMicro?
Post by drs on Jul 5th, 2019 at 11:11am
Hallo,
since new update I get an error when compiling arduino project:

Code (]Process: "C:\Users\TEST\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.5.2\tools\python\python.exe" "C:\Users\TEST\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/makecorever.py" --build_path "C:\Users\TEST\AppData\Local\Temp\VMBuilds\ESP_WiFi\esp8266_d1_mini\Release" --platform_path "C:\Users\TEST\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.5.2" --version "unix-2.5.2"
System cannot find File ...
[/code):

Where to set the python path? Because its seems wrong:
[code]runtime.tools.python={runtime.platform.path}/tools/python/python.exe
runtime.tools.python.windows={runtime.platform.path}/tools/python/python.exe


Thanx

Title: Re: Where to set the python path in VS17 & vMicro?
Post by Visual Micro on Jul 5th, 2019 at 11:39am
Please follow the guide in yellow at the top of this page

Title: Re: Where to set the python path in VS17 & vMicro?
Post by drs on Jul 5th, 2019 at 11:41am
What you mean?
I need to know how to change the python path since that not correct.

Rgds

Title: Re: Where to set the python path in VS17 & vMicro?
Post by Visual Micro on Jul 5th, 2019 at 12:45pm
Please do as I ask. The python path is set by the tool chain. when you install the tool chain you install whatever it uses.

So we will look at what you have installed and recommend the right solution but only if you provide the requested information.

There is one entry in the release notes that states you need to have the tool chain installed (index.json) otherwise tool chains discovered on disc are ignored. This falls in line with how the arduino ide works. It might just be a simple matter of ensuring you have the tool chain installed correctly.

Please ALWAYS supply the request info with compile and upload reports. It saves a lot of time and keeps costs down.

Title: Re: Where to set the python path in VS17 & vMicro?
Post by drs on Jul 7th, 2019 at 3:33pm
Aha, ok....next time ... thanks.
I copied the python stuff into the directory and now its working. Don't know why I did not recognize earlier that tools/python directory is missing. Seems that only required for new projects.

Rgds

Title: Re: Where to set the python path in VS17 & vMicro?
Post by Visual Micro on Jul 7th, 2019 at 3:43pm
Thanks for the update but I am sorry, none of this makes sense. Users never need to install python and the tool chain path is not stored in a project unless you have overridden it with settings in a local board.txt. Visual Micro does not know that python is being used it just uses what is installed when you install boards using Board Manager or install manually into sketchBook\Hardware.

If you have any other issues I will need to see the full build output as described in yellow at the top of this page. That way we can actually see what type of configuration you are using. Without all that it will always be a mystery.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.