Closed v8-rt closed 3 years ago
This looks like a problem with your platformio toolchain. Please try running platformio with administrator rights.
Hi, Thank you for your quick reply! Unfortunately it's the same when running VSC as admin. I will try to build with another computer later. Do you think I need to install more extensions?
You don't need any other extension that platformio for VSC. And a working python installation under VSC.
Hi cyberman54, it works with VSC (+platformio extension) for macOS. I've tried it on another windows and still had no success. Maybe I am doing something wrong there or their current version has a bug? Idk. But since your paxcounter compiled and uploaded successfully from Mac, I am already happy. Thanks for your quick response! (if I'll try on windows again some day and it works, I'll try to figure out what went wrong)
Hi, I have exactly the same issue under windows & linux - unfortunately I have no MAC available to test. Any idea what causes this issue? Thank you very much.
Hi guys, Can you please help me? I strictly followed this video: https://www.youtube.com/watch?v=WuRb43B0jmo (with the exception that i used heltecv21 board) yet VS Code wont let me build the Project.
This is what i get:
Can not remove temporary directory
C:\Users\Andi\Documents\PlatformIO\Projects\ESP32-Paxcounter-2.4.0X\.pio\build
. Please remove it manually to avoid build issues Processing usb (platform: espressif32; board: heltec_wifi_lora_32_V2; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose
option Parsing hardware configuration from C:\Users\Andi\Documents\PlatformIO\Projects\ESP32-Paxcounter-2.4.0X\src\hal\heltecv21.h Parsing LMIC configuration from C:\Users\Andi\Documents\PlatformIO\Projects\ESP32-Paxcounter-2.4.0X\src\lmic_config.h Parsing LORAWAN keys from C:\Users\Andi\Documents\PlatformIO\Projects\ESP32-Paxcounter-2.4.0X\src\loraconf.h Parsing OTA keys from C:\Users\Andi\Documents\PlatformIO\Projects\ESP32-Paxcounter-2.4.0X\src\ota.conf Target board: heltec_wifi_lora_32_V2 @ 921600bps Partition table: min_spiffs.csv CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/heltec_wifi_lora_32_V2.html PLATFORM: Espressif 32 (3.2.0) > Heltec WiFi LoRa 32 (V2) HARDWARE: ESP32 240MHz, 320KB RAM, 8MB 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) PACKAGES:env.ProcessProjectDeps() File "C:\Users\Andi.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Util.py", line 658: return self.method(nargs, kwargs) File "C:\Users\Andi.platformio\penv\Lib\site-packages\platformio\builder\tools\platformio.py", line 140:
project_lib_builder = env.ConfigureProjectLibBuilder() File "C:\Users\Andi.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Util.py", line 658: return self.method(*nargs, *kwargs) File "C:\Users\Andi.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
project.install_dependencies() File "C:\Users\Andi.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 898:
lm.install(spec) File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\manager_install.py", line 48: pkg = self._install( File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\manager\library.py", line 81: return super(LibraryPackageManager, self)._install( File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\manager_install.py", line 97: pkg = self.install_from_url(spec.url, spec, silent=silent) File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\manager_install.py", line 141: vcs = VCSClientFactory.new(tmpdir, url) File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 54: obj = getattr(sys.modules[name], "%sClient" % type.title())( File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 137: self.configure() File "c:\users\andi.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 146: result = proc.exec_command([cls.command, "--exec-path"]) File "c:\users\andi.platformio\penv\lib\site-packages\platformio\proc.py", line 117: p = subprocess.Popen(args, **kwargs) File "C:\Program Files\Python39\lib\subprocess.py", line 951: self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python39\lib\subprocess.py", line 1420: hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ================================================================================================================================================ [FAILED] Took 0.96 seconds ================================================================================================================================================ Environment Status Duration
usb FAILED 00:00:00.956 ========================================================================================================================================== 1 failed, 0 succeeded in 00:00:00.956 ========================================================================================================================================== The terminal process "C:\Users\Andi.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
It doesnt work with selecting other boards either.... Any help is appreciated. Thanks!