I’m trying to understand the error when I attempt to build my project. The build works if I do not include the platform_packages to pull the framework from git.
pylint: disable=no-value-for-parameter
platformio.ini
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
lib_deps = itead/Nextion @ ^0.9.0
platformio.exe run --environment esp32dev -v
Output
platform_packages = platformio/framework-arduinoespressif32 @ GitHub - espressif/arduino-esp32: Arduino core for the ESP32
Python Paths:
C:\Users\Schmi\AppData\Local\Programs\Python\Python39
C:\Users\Schmi\AppData\Local\Programs\Python\Python39\Scripts
C:\Users\Schmi\AppData\Local\Programs\Microsoft VS Code\bin
Error Message
platform_packages: platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Tool Manager: Installing git+https://github.com/espressif/arduino-esp32.git
Error: Traceback (most recent call last):
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\__main__.py", line 115, in main
cli() # pylint: disable=no-value-for-parameter
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\commands\__init__.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "c:\users\schmi\.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 134, in cli
process_env(
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 176, in process_env
result = {"env": name, "duration": time(), "succeeded": ep.process()}
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 67, in process
result = init_platform(self.options["platform"]).run(
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\platform\_run.py", line 60, in run
self.autoinstall_runtime_packages()
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\platform\_packages.py", line 74, in autoinstall_runtime_packages
self.pm.install(self.get_package_spec(name))
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 48, in install
pkg = self._install(
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 97, in _install
pkg = self.install_from_url(spec.url, spec, silent=silent)
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 141, in install_from_url
vcs = VCSClientFactory.new(tmp_dir, url)
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 54, in new
obj = getattr(sys.modules[__name__], "%sClient" % type_.title())(
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 137, in __init__
self.configure()
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 146, in configure
result = proc.exec_command([cls.command, "--exec-path"])
File "c:\users\schmi\.platformio\penv\lib\site-packages\platformio\proc.py", line 112, in exec_command
with subprocess.Popen(*args, **kwargs) as p:
File "C:\Users\Schmi\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Schmi\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
============================================================
An unexpected error occurred. Further steps: (Rest of Message truncated)
============================================================