sorry, I’m a complete noob to platform IO and don’t really use visual studio code much.
I’m using a NodeMcu v3 and trying to load it with
when I try to build the source code I get a bunch of errors :
INFO: Could not find files for the given pattern(s).
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_pro.html
PLATFORM: Espressif 8266 (1.8.0) > WeMos D1 mini Pro
HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
PACKAGES:
- framework-arduinoespressif8266 2.20402.4 (2.4.2)
- tool-esptool 1.413.0 (4.13)
- toolchain-xtensa 1.40802.0 (4.8.2)
INFO: Could not find files for the given pattern(s).
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing git+https://github.com/sidoh/WiFiManager.git#cmidgley
FileNotFoundError: [WinError 2] The system cannot find the file specified:
File "C:\users\dj_ba\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 170:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\dj_ba\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\dj_ba\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
I figured this is to do with the packages so I tried to add them manually.
pio platform install framework-arduinoespressif8266 2.20402.4
pio platform install tool-espotapy 1.1.3
etc.
but I get the error
Could not find the package with requirements for your system ‘windows_amd64’
As I mentioned this is VsCode, Running on windows 10 home. I’ve installed python, Arduino IDE, and platform IO extension.
What am I missing?
I’m on Windows 10 x64 and this compiles when I clone it and change this line
to just !python .get_version.py
since on my system, python
is Python3 and python3
does not exist as a command.
After that I get
>pio run -e nodemcuv2
Processing nodemcuv2 (platform: espressif8266@~1.8; framework: arduino; board: nodemcuv2)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Attempting to build webpage...
npm WARN esp8266-milight-hub-web@1.0.0 No description
npm WARN esp8266-milight-hub-web@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
b'audited 517 packages in 3.854s\n\r\n8 packages are looking for funding\r\n run `npm fund` for details\n\nfound 1 low severity vulnerability\n run `npm audit fix` to fix them, or `npm audit` for details\n'
b"[\x1b[90m01:55:27\x1b[39m] Using gulpfile ~\\esp8266_milight_hub\\web\\gulpfile.js\n[\x1b[90m01:55:27\x1b[39m] Starting 'default'...\n[\x1b[90m01:55:27\x1b[39m] Starting 'clean'...\n[\x1b[90m01:55:27\x1b[39m] Finished 'clean' after 20 ms\n[\x1b[90m01:55:27\x1b[39m] Starting 'buildfs_inline'...\n[\x1b[90m01:55:28\x1b[39m] Finished 'buildfs_inline' after 520 ms\n[\x1b[90m01:55:28\x1b[39m] Starting 'buildfs_embeded'...\n[\x1b[90m01:55:28\x1b[39m] Finished 'buildfs_embeded' after 33 ms\n[\x1b[90m01:55:28\x1b[39m] Finished 'default' after 575 ms\n"
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (1.8.0) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 2.20402.4 (2.4.2)
- tool-esptool 1.413.0 (4.13)
- toolchain-xtensa 1.40802.0 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing git+https://github.com/sidoh/WiFiManager.git#cmidgley
git version 2.29.2.windows.2
..
RAM: [===== ] 50.3% (used 41172 bytes from 81920 bytes)
Flash: [===== ] 47.8% (used 498900 bytes from 1044464 bytes)
=========================================================================================
So I’d suggest you do
- Open a PlatformIO CLI and do a
pio upgrade --dev
to do a core upgrade. Restart VSCode after.
- Check in PIO CLI that
python3 --version
return a Python3 version – if command fails, change python3
invocation as indicated above
- Check that sub-dependencies like git (Git - Downloads) and npm (Download | Node.js) are installed (I have 2.29.2 and 6.14.8 respectively). Restart VSCode after installing, if those were missing.
- Check if disabling Antivirus makes a difference, if in doubt.
Thanks.
I’d tried most of that, the thing I hadn’t tried or known was an issue was node.
It just finished compiling.
Thanks your your quick response!
1 Like