ValueError: Invalid simple block '9d5f56fba1':

My code compiles on one machine but not on the other
Here is the compile error

Processing adafruit_feather_m0 (platform: atmelsam@3.9.0; board: adafruit_feather_m0; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/adafruit_feather_m0.html
PLATFORM: Atmel SAM (3.9.0) > Adafruit Feather M0
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES: 
 - framework-arduinosam 4.4.191002 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Converting code.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
ValueError: Invalid simple block '9d5f56fba1':
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/builder/main.py", line 169:
    env.SConscript("$BUILD_SCRIPT")
  File "/Users/****/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/Users/****/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/Users/****/.platformio/platforms/atmelsam/builder/main.py", line 120:
    target_elf = env.BuildProgram()
  File "/Users/****/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/builder/tools/platformio.py", line 62:
    env.ProcessProjectDeps()
  File "/Users/****/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/builder/tools/platformio.py", line 135:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "/Users/****/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/builder/tools/piolib.py", line 1047:
    project.install_dependencies()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/builder/tools/piolib.py", line 871:
    if lm.get_package(spec):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/manager/base.py", line 227:
    spec = self.ensure_spec(spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/manager/base.py", line 100:
    return spec if isinstance(spec, PackageSpec) else PackageSpec(spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/meta.py", line 118:
    self._parse(raw)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/meta.py", line 220:
    raw = parser(raw)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/meta.py", line 237:
    self.requirements = tokens[1].strip()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/platformio/package/meta.py", line 161:
    else semantic_version.SimpleSpec(str(value))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/semantic_version/base.py", line 618:
    self.clause = self._parse_to_clause(expression)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/semantic_version/base.py", line 1014:
    return cls.Parser.parse(expression)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/semantic_version/base.py", line 1034:
    raise ValueError("Invalid simple block %r" % block)
============================================================= [FAILED] Took 0.67 seconds =============================================================
The terminal process "platformio 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

At a guess, something is wrong with either the Python install, or the framework files. It looks like you’re on a Mac? If so, maybe a Mac user can help you with that…

Ok I found the problem
I am using a Morse library with

lib_deps =
868@1.2.3 ; SD
1192@0.7.1 ; flash storage
5169@1.2.4 ;SSD1306Ascii
281@9d5f56fba1 ; Morse

but the version reference is causing a problem
I changed it to

lib_deps =
868@1.2.3 ; SD
1192@0.7.1 ; flash storage
5169@1.2.4 ;SSD1306Ascii
281; Morse

and it works

1 Like

I see you use PlatformIO 4.4 with a new package management system. We fully switched to semantic versioning. See updated library version PlatformIO Registry

1 Like

Can someone help me, as a new PlatformIO user, explain this in more detail? The linked page shows the exact same version.
I’m trying to build esp8266_milight_hub, using
platformio run -e nodemcuv2 --target upload -v

The platformio.ini has this:

lib_deps = 
	${common.lib_deps_builtin}
	${common.lib_deps_external}
	markfickett/Morse@0.0.0-alpha+sha.b4fb9b5739

This appears to be the same / newest version, but I still get this output:

PS C:\Temp\esp8266_milight_hub-master> platformio run -e nodemcuv2 --target upload -v
Processing nodemcuv2 (platform: espressif8266@~1.8; framework: arduino; upload_speed: 460800; board: nodemcuv2; build_flags: !python3 .get_version.py, -D USING_AXTLS, -D MQTT_MAX_PACKET_SIZE=360, -D HTTP_UPLOAD_BUFLEN=128, -D FIRMWARE_NAME=milight-hub, -D RICH_HTTP_REQUEST_BUFFER_SIZE=2048, -D RICH_HTTP_RESPONSE_BUFFER_SIZE=2048, -Idist -Ilib/DataStructures -Wl,-Tesp8266.flash.4m1m.ld -D FIRMWARE_VARIANT=nodemcuv2; extra_scripts: pre:.build_web.py; lib_deps: SPI, sidoh/WiFiManager#cmidgley, RF24@~1.3.2, ArduinoJson@~6.10.1, PubSubClient@~2.7, ratkins/RGBConverter@07010f2, WebSockets@~2.2.0, CircularBuffer@~1.2.0, PathVariableHandlers@~2.0.0, RichHttpServer@~2.0.2; test_ignore: remote)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO: Could not find files for the given pattern(s).
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-espotapy 1.1.3
 - tool-esptool 1.413.0 (4.13)
 - tool-mkspiffs 1.200.0 (2.0) 
 - toolchain-xtensa 1.40802.0 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
ValueError: Invalid simple block '07010f2':
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 169:
    env.SConscript("$BUILD_SCRIPT")
  File "C:\Users\myname\.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\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\users\myname\.platformio\platforms\espressif8266@1.8.0\builder\main.py", line 316:
    target_elf = env.BuildProgram()
  File "C:\Users\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
    env.ProcessProjectDeps()
  File "C:\Users\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder()
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
    project.install_dependencies()
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 886:
    if lm.get_package(spec):
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 232:
    spec = self.ensure_spec(spec)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 103:
    return spec if isinstance(spec, PackageSpec) else PackageSpec(spec)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 119:
    self._parse(raw)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 222:
    raw = parser(raw)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 245:
    self.requirements = tokens[1].strip()
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 162:
    else semantic_version.SimpleSpec(str(value))
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 618:
    self.clause = self._parse_to_clause(expression)
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 1014:
    return cls.Parser.parse(expression)
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 1034:
    raise ValueError("Invalid simple block %r" % block)

Any help would be greatly appreciated.

Not reproducable.

My platformio.ini

[env:esp8266_milight_hub]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps = 
    markfickett/Morse @ 0.0.0-alpha+sha.b4fb9b5739

src\main.cpp

#include <Arduino.h>
#include <morse.h>

#define PIN_STATUS	13

void setup()
{
	LEDMorseSender cqSender(PIN_STATUS);
	cqSender.setup();
	cqSender.setMessage(String("cq "));
	cqSender.sendBlocking();
}

void loop()
{
}

Results in a clean

Processing esp8266_milight_hub (platform: espressif8266; board: nodemcuv2; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (2.6.2) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 3.20704.0 (2.7.4)
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.20800.0 (2.8.0)
 - toolchain-xtensa 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing markfickett/Morse @ 0.0.0-alpha+sha.b4fb9b5739
Library Manager: Morse @ 0.0.0-alpha+sha.b4fb9b5739 has been installed!
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Morse> 0.0.0-alpha+sha.b4fb9b5739
Building in release mode
[..]
RAM:   [===       ]  32.8% (used 26852 bytes from 81920 bytes)
Flash: [==        ]  24.8% (used 259436 bytes from 1044464 bytes)
Creating BIN file ".pio\build\esp8266_milight_hub\firmware.bin" using "C:\Users\Maxi\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\esp8266_milight_hub\firmware.elf"
===================== [SUCCESS] Took 14.25 seconds =====================

Are you using the latest version of the PlatformIO core and VSCode extension? I’m on core 5.0.1 here, extension version 2.1.0.

This version you’re using by specifying platform = espressif8266@~1.8 is ancient. August 2018 ancient. But even that doesn’t seem to be problem because if I change my platformio.ini to platform = espressif8266@~1.8, it still builds. Still, consider updating. By now my best guess is probably not using the latest PIO core version.

Thanks for the quick response!

I literally just downloaded VSCode, installed the newest (and fresh) PlatformIO extension, and downloaded everything from GitHub - sidoh/esp8266_milight_hub: Replacement for a Milight/LimitlessLED hub hosted on an ESP8266

That said, I removed the fixed and antique version, yielding this:

PS C:\Temp\esp8266_milight_hub-master> platformio run -e nodemcuv2 --target upload -v
Processing nodemcuv2 (platform: espressif8266; framework: arduino; upload_speed: 460800; board: nodemcuv2; build_flags: !python3 .get_version.py, -D USING_AXTLS, -D MQTT_MAX_PACKET_SIZE=360, -D HTTP_UPLOAD_BUFLEN=128, -D FIRMWARE_NAME=milight-hub, -D RICH_HTTP_REQUEST_BUFFER_SIZE=2048, -D RICH_HTTP_RESPONSE_BUFFER_SIZE=2048, -Idist -Ilib/DataStructures -Wl,-Tesp8266.flash.4m1m.ld -D FIRMWARE_VARIANT=nodemcuv2; extra_scripts: pre:.build_web.py; lib_deps: SPI, sidoh/WiFiManager#cmidgley, RF24@~1.3.2, ArduinoJson@~6.10.1, PubSubClient@~2.7, ratkins/RGBConverter@07010f2, WebSockets@~2.2.0, CircularBuffer@~1.2.0, PathVariableHandlers@~2.0.0, RichHttpServer@~2.0.2, markfsadaickett/Morse@0.0.0-alpha+sha.b4fb9b5739; test_ignore: remote)      
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing tool-mklittlefs @ ~1.203.0
Tool Manager: tool-mklittlefs @ 1.203.200522 has been installed!
INFO: Could not find files for the given pattern(s).
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (2.6.2) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 3.20704.0 (2.7.4)
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.20800.0 (2.8.0)
 - tool-mklittlefs 1.203.200522 (2.3)
 - tool-mkspiffs 1.200.0 (2.0) 
 - toolchain-xtensa 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
ValueError: Invalid simple block '07010f2':
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 169:
    env.SConscript("$BUILD_SCRIPT")
  File "C:\Users\myname\.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\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\users\myname\.platformio\platforms\espressif8266\builder\main.py", line 238:
    target_elf = env.BuildProgram()
  File "C:\Users\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
    env.ProcessProjectDeps()
  File "C:\Users\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "C:\Users\myname\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
    project.install_dependencies()
  File "C:\users\myname\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 886:
    if lm.get_package(spec):
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 232:
    spec = self.ensure_spec(spec)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 103:
    return spec if isinstance(spec, PackageSpec) else PackageSpec(spec)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 119:
    self._parse(raw)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 222:
    raw = parser(raw)
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 245:
    self.requirements = tokens[1].strip()
  File "c:\users\myname\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 162:
    else semantic_version.SimpleSpec(str(value))
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 618:
    self.clause = self._parse_to_clause(expression)
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 1014:
    return cls.Parser.parse(expression)
  File "c:\users\myname\.platformio\penv\lib\site-packages\semantic_version\base.py", line 1034:
    raise ValueError("Invalid simple block %r" % block)
=============================================================================== [FAILED] Took 1.96 seconds ===============================================================================

Again, a total beginner. Any chance something is being left behind from previous attempts? Even changing the libs_deps to

lib_deps = 
	${common.lib_deps_builtin}
	${common.lib_deps_external}
	markfsadaickett/MorseX

Doesn’t change anything…

Please create a new project for your ESP8266 board and copy the exact platformio.ini and source code as I have shown above (without using the older platform version). Does that minimal example compile?

Yep, that builds! (post needs to be 20 chars)

Then, can you upload your entire non-working project folder to github or zip file and something like google drive for reproduction? If a minimal example works but not your project, there must be something in that specific project that’s causing issues.

Done: https://drive.google.com/file/d/1Nk-idBQY7-81sqRM-Z8BrkqIOgchDoH9/view?usp=sharing
I started to mess around with the platformio.ini, copying your minimal file. The original, platformio - Copy.ini is where it all started (and didn’t compile as well).

Outch, should have read the error message more closely. As it says here

This is not about the markfickett/Morse @ 0.0.0-alpha+sha.b4fb9b5739 line but about another line which is included in your full platformio.ini (which wasn’t fully shown by you):

lib_deps_external = 
	sidoh/WiFiManager#cmidgley
	RF24@~1.3.2
	ArduinoJson@~6.10.1
	PubSubClient@~2.7
	ratkins/RGBConverter@07010f2

the last one with the RGBConverter (refering to this library) is invalid syntax. The Morse one is absolutely fine.

However this library isn’t even registered with the PlatformIO library so a owner-library name syntax won’t work. The platformio.ini is riddled with these errors.

Library Manager: Installing sidoh/WiFiManager#cmidgley
Warning! Could not find the package with 'sidoh/WiFiManager#cmidgley' requirements for your system 'windows_amd64'
Library Manager: Installing RF24 @ ~1.3.2
Library Manager: Warning! More than one package has been found by RF24 @ ~1.3.2 requirements:
 - tmrh20/RF24 @ 1.3.9
 - mbed-olympux/RF24 @ 0.0.0+sha.aaff7f374e2b
 - mbed-hudakz/RF24 @ 0.0.0+sha.d96c2056bf37
 - mbed-akashvibhute/RF24 @ 0.0.0+sha.ef74df512fed
 - mbed-fmanzano-dtk/RF24 @ 0.0.0+sha.992552951877
 - mbed-ldsc-robotics-tas/RF24 @ 0.0.0+sha.6827b6f0283b
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: RF24 @ 1.3.9 has been installed!
Library Manager: Installing ArduinoJson @ ~6.10.1
Library Manager: ArduinoJson @ 6.10.1 has been installed!
Library Manager: Installing PubSubClient @ ~2.7
Library Manager: PubSubClient @ 2.7.0 has been installed!
Library Manager: Installing ratkins/RGBConverter @ 0.0.0-alpha+sha.07010f2
Warning! Could not find the package with 'ratkins/RGBConverter @ 0.0.0-alpha+sha.07010f2' requirements for your system 'windows_amd64'
Library Manager: Installing WebSockets @ ~2.2.0
Library Manager: WebSockets @ 2.2.1 has been installed!
Library Manager: Installing CircularBuffer @ ~1.2.0
Library Manager: Warning! More than one package has been found by CircularBuffer @ ~1.2.0 requirements:
 - rlogiacco/CircularBuffer @ 1.3.3
 - majenkolibraries/CircularBuffer @ 1.0.15
 - mbed-feb11/CircularBuffer @ 0.0.0+sha.8204677dc3c4
 - mbed-johnb/CircularBuffer @ 0.0.0+sha.d318a6948091
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: CircularBuffer @ 1.2.0 has been installed!
Library Manager: Installing PathVariableHandlers @ ~2.0.0
Library Manager: PathVariableHandlers @ 2.0.0 has been installed!
Library Manager: Installing RichHttpServer @ ~2.0.2
Library Manager: RichHttpServer @ 2.0.3 has been installed!

Note how it cannot install the WiFiManager or the RGBConverter because they’ren ot registered.

So I’ll just use the syntax for repository and optional branch name. That gives me

lib_deps_external = 
	WiFiManager=https://github.com/sidoh/WiFiManager.git#cmidgley
	RF24@~1.3.2
	ArduinoJson@~6.10.1
	PubSubClient@~2.7
	https://github.com/ratkins/RGBConverter.git
	WebSockets@~2.2.0
	CircularBuffer@~1.2.0
	PathVariableHandlers@~2.0.0
	RichHttpServer@~2.0.2

which leads to

Library Manager: Installing git+https://github.com/sidoh/WiFiManager.git#cmidgley
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\.platformio\.cache\tmp\pkg-installing-ffytbx5p'...
Library Manager: WiFiManager @ 0.14.0+sha.a78c3b6 has been installed!
Library Manager: Installing git+https://github.com/ratkins/RGBConverter.git
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\.platformio\.cache\tmp\pkg-installing-3q8un9qd'...
Library Manager: RGBConverter @ 0.0.0+20201003174636.sha.07010f2 has been installed!
Found 53 compatible libraries

[...]
RAM:   [=====     ]  50.2% (used 41136 bytes from 81920 bytes)
Flash: [=====     ]  47.6% (used 497568 bytes from 1044464 bytes)
==================== [SUCCESS] Took 36.19 seconds =======================

So the firmware builds fine.

But the website builder included in that is however broken

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.

b'audited 426 packages in 2.109s\n\r\n4 packages are looking for funding\r\n  run `npm fund` for details\n\nfound 9 vulnerabilities (3 low, 6 high)\n  run `npm audit fix` to fix them, or `npm audit` for details\n'
fs.js:35
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:35:5
    at req_ (C:\Users\Maxi\Desktop\esp8266_milight_hub-master\web\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\Maxi\Desktop\esp8266_milight_hub-master\web\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (C:\Users\Maxi\Desktop\esp8266_milight_hub-master\web\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
b''

At least with my NPM version, it can’t build the webpage due to a JavaScript error. But that’s another story that hsould be looked at by the authors (if they are working on this project at all, because this whole thing seems like a PIO core version 3 or early 4 project to me…)

I’ve opened issue Uncompilable with PIO 5 (both firmware and website) · Issue #656 · sidoh/esp8266_milight_hub · GitHub for reference.

Fantastic. Thank you very much for your time and efforts.

It’s obviously not a “plug and play” module with these issues. Time to think about getting more involved and digging deeper, for me! :smiley:

No problem. Also, since the project does provide a “pre-compiled” index.html.gz.h, having an error in building website yourself isn’t crucial. As I’ve updated in the issue, it should work with an outdated NodeJS version 11 (not 12 or above). So the project should actually be runable even without NodeJS.