Closed HouzuoGuo closed 4 years ago
Please try the next:
1) Open cmd.exe
and navigate to %USER_HOME%/.platformio/penv
2) Run Scripts\activate
3) Run `pio run -d %path/to/platformio/project/direcotry%
Does it work?
Thanks @ivankravets. Here is the symptom:
C:\Users\Houzuo Guo>cd .platformio C:\Users\Houzuo Guo\.platformio>dir Volume in drive C has no label. Volume Serial Number is 50B3-A68A Directory of C:\Users\Houzuo Guo\.platformio 21/04/2019 16.38. 21/04/2019 16.38 .. 21/04/2019 16.37 .cache 21/04/2019 16.37 215 appstate.json 21/04/2019 16.38 442 homestate.json 20/04/2019 12.08 lib 21/04/2019 16.38 packages 20/04/2019 12.04 penv 21/04/2019 16.36 platforms 20/04/2019 12.04 python27 2 File(s) 657 bytes 8 Dir(s) 249 107 955 712 bytes free C:\Users\Houzuo Guo\.platformio>cd penv C:\Users\Houzuo Guo\.platformio\penv>Scripts\activate (penv) C:\Users\Houzuo Guo\.platformio\penv>pio Usage: pio [OPTIONS] COMMAND [ARGS]... Options: --version Show the version and exit. -f, --force Force to accept any confirmation prompts. -c, --caller TEXT Caller ID (service). -h, --help Show this message and exit. Commands: account Manage PIO Account boards Embedded Board Explorer ci Continuous Integration debug PIO Unified Debugger device Monitor device or list existing home PIO Home init Initialize PlatformIO project or update existing lib Library Manager platform Platform Manager remote PIO Remote run Process project environments settings Manage PlatformIO settings test Local Unit Testing update Update installed platforms, packages and libraries upgrade Upgrade PlatformIO to the latest version (penv) C:\Users\Houzuo Guo\.platformio\penv>pio run -d ..\..\Documents\PlatformIO\Projects\tbeam-pio Processing ttgo-t-beam (platform: espressif32; board: ttgo-t-beam; framework: arduino) ----------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/ttgo-t-beam.html PLATFORM: Espressif 32 > TTGO T-Beam HARDWARE: ESP32 240MHz 1.25MB RAM (4MB Flash) DEBUG: CURRENT(esp-prog) EXTERNAL(esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 26 compatible libraries Scanning dependencies... No dependencies Compiling .pioenvs\ttgo-t-beam\src\main.cpp.o unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes Generating partitions .pioenvs\ttgo-t-beam\partitions.bin unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe /C ""c:\users\houzuo guo\.platformio\penv\scripts\python.exe" "C:\Users\Houzuo Guo\.platformio\packages\framework-arduinoespressif32\tools\gen_esp32part.py" -q "C:\Users\Houzuo Guo\.platformio\packages\framework-arduinoespressif32\tools\partitions\default.csv" ".pioenvs\ttgo-t-beam\partitions.bin""': No child processes Archiving .pioenvs\ttgo-t-beam\libFrameworkArduinoVariant.a unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe /C "xtensa-esp32-elf-ar rc ".pioenvs\ttgo-t-beam\libFrameworkArduinoVariant.a""': No child processes Compiling .pioenvs\ttgo-t-beam\FrameworkArduino\Esp.cpp.o unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes Compiling .pioenvs\ttgo-t-beam\FrameworkArduino\FunctionalInterrupt.cpp.o unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes Compiling .pioenvs\ttgo-t-beam\FrameworkArduino\HardwareSerial.cpp.o unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes Compiling .pioenvs\ttgo-t-beam\FrameworkArduino\IPAddress.cpp.o unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes *** [.pioenvs\ttgo-t-beam\src\main.cpp.o] Error 127 C*ompiling .pioenvs\ttgo-t-beam\FrameworkArduino\IPv6Address.cpp.o** [.pioenvs\ttgo-t-beam\partitions.bin] Error 127 *** [.pioenvs\ttgo-t-beam\libFrameworkArduinoVariant.a] Error 127 *** [.pioenvs\ttgo-t-beam\FrameworkArduino\Esp.cpp.o] Error 127 *** [.pioenvs\ttgo-t-beam\FrameworkArduino\FunctionalInterrupt.cpp.o] Error 127 *** [.pioenvs\ttgo-t-beam\FrameworkArduino\HardwareSerial.cpp.o] Error 127 *** [.pioenvs\ttgo-t-beam\FrameworkArduino\IPAddress.cpp.o] Error 127 unknown OSError exception code 10 - 'C:\Windows\System32\cmd.exe': No child processes *** [.pioenvs\ttgo-t-beam\FrameworkArduino\IPv6Address.cpp.o] Error 127 ============================================== [ERROR] Took 2.04 seconds ============================================== (penv) C:\Users\Houzuo Guo\.platformio\penv>
Did you resolve this issue?
Unfortunately there's not been any progress at all, I am using VSCode Arduino plugin as a fall back atm.
I had a very similar issue, probably a python version problem
remove any version of python installed (that can be accessed from PATH) remove .plateformio and .vscode restart vscode
Did it help you?
Not really, there isn't another copy of python installed on this system.
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
What kind of issue is this?
Configuration
Operating system: Windows 10 1803
PlatformIO Version (
platformio --version
): 3.6.6Description of problem
PlatformIO won't compile a bare minimal project created for TTGO T-Beam board.
Steps to Reproduce
platformio.exe run
.Actual Results
Expected Results
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue: