Проблема: не компилируется код C++ в VS code/Platformio для NodeMCU v3 (esp8266)
Platformio: Core 6.1.11·Home 3.4.4 / VS code: 1.85.1 / Windows: 22H2 19045
Код не мой, он расположен
тут
А вот сама ошибка:
Processing nodemcuv2 (framework: arduino; platform: espressif8266; board: nodemcuv2)
--------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:
https://docs.platformio.org/page/boards/espressif8...
PLATFORM: Espressif 8266 (4.2.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 160MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
Traceback (most recent call last):
File "C:\Users\User\Documents\mobile-rr-master\mobile-rr-master\fw_version.py", line 4, in
subprocess.check_output(["date", "+%Y%m%d.%H%M%S"])
File "C:\Users\User\.platformio\python3\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\python3\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\python3\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\User\.platformio\python3\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Не удается найти указанный файл
OSError: 'python fw_version.py' exited 1:
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\User\.platformio\platforms\espressif8266\builder\main.py", line 237:
target_elf = env.BuildProgram()
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 61:
env.ProcessProgramDeps()
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 118:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 228:
env.Append(**env.ParseFlagsExtended(flags))
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 190:
for key, value in env.ParseFlags(str(raw)).items():
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Environment.py", line 1035:
do_parse(arg)
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Environment.py", line 887:
arg = self.backtick(arg[1:])
File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Environment.py", line 798:
raise OSError("'%s' exited %d" % (command, status))
================================================== [FAILED] Took 2.00 seconds ==================================================
* The terminal process "C:\Users\User\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.