platformio-vscode-ide: The system cannot find the path specified when build task is run
Since I have updated platformio extension, when build/upload I’m getting this error. Here’s link to my repo - Pubnub-Led
Terminal Output
> Executing task: platformio.exe run <
[01/12/18 09:46:09] Processing nodemcuv2 (platform: espressif8266; lib_deps: Pubnub, ArduinoJson, ESP8266WiFi; board: nodemcuv2; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting pubnub-led.ino
The system cannot find the path specified.
*** Error 1
Collected 33 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <Pubnub> v2.1.1
|-- <ArduinoJson> v5.11.1
|-- <ESP8266WiFi> v1.0
|-- <RGBColors>
Compiling .pioenvs\nodemcuv2\src\pubnub-led.ino.o
Archiving .pioenvs\nodemcuv2\libFrameworkArduinoVariant.a
The system cannot find the path specified.
The system cannot find the path specified.
Compiling .pioenvs\nodemcuv2\FrameworkArduino\Esp.o
Compiling .pioenvs\nodemcuv2\FrameworkArduino\FS.o
The system cannot find the path specified.
The system cannot find the path specified.
*** [.pioenvs\nodemcuv2\libFrameworkArduinoVariant.a] Error 1
*** [.pioenvs\nodemcuv2\FrameworkArduino\Esp.o] Error 1
*** [.pioenvs\nodemcuv2\src\pubnub-led.ino.o] Error 1
*** [.pioenvs\nodemcuv2\FrameworkArduino\FS.o] Error 1
==================================================================================== [ERROR] Took 5.46 seconds ====================================================================================
The terminal process terminated with exit code: 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 29 (9 by maintainers)
Fixed it by deleting AutoRun key from registry and also remove invalid paths from environment variables. https://www.tenforums.com/general-support/122582-cmd-terminal-starts-system-cannot-find-path-specified.html
This solves the problem, it seems that it is generated by anancoda, I saw that anancoda and platformio do not get along, thanks!
I had a previous installation of anaconda that prevented installing platformio, I uninstalled it but nevertheless I could not compile since it has a hook in the console of commands that are executed when compiling platformio
They override the system environment PATH and remove other PATHs that were installed in the session. You can remove this conda startup script and just add it to your system path manually.
Wow! I’m really shocked. What is inside of this
conda_hook.bat? 🐛 ? 🐞 ? 👎Please uninstall conda from a system and use the latest official Python 3. See instructions here https://docs.platformio.org/en/latest/faq.html#install-python-interpreter