PlatformIO Community

Zephyr Blink example build fails after new install

OS: Windows 10 1903
VS Code: 1.41.1

Installed PlatformIO using VS Code extensions manager. Restarted VS Code.
Opened Zephyr Blink example project
Ran the PlatformIO “Build” project task

3 of 4 builds failed:

Zephyr version: 2.1.0
CMake Error at C:/Users/Ben/.platformio/packages/framework-zephyr/cmake/zephyr_module.cmake:45 (message):
  Traceback (most recent call last):

    File "C:/Users/Ben/.platformio/packages/framework-zephyr/scripts/zephyr_module.py", line 19, in <module>
      import pykwalify.core
    File "c:\users\ben\.platformio\penv\lib\site-packages\pykwalify\core.py", line 25, in <module>
      from dateutil.parser import parse
    File "c:\users\ben\.platformio\penv\lib\site-packages\dateutil\parser\__init__.py", line 2, in <module>
      from ._parser import parse, parser, parserinfo, ParserError
    File "c:\users\ben\.platformio\penv\lib\site-packages\dateutil\parser\_parser.py", line 42, in <module>
      import six

  ModuleNotFoundError: No module named 'six'

Call Stack (most recent call first):
  C:/Users/Ben/.platformio/packages/framework-zephyr/cmake/app/boilerplate.cmake:458 (include)
  CMakeLists.txt:4 (include)


== [FAILED] Took 1.55 seconds == 

Environment                Status    Duration
-------------------------  --------  ------------
adafruit_feather_nrf52832  SUCCESS   00:00:02.376
nrf52_dk                   FAILED    00:00:01.573
nrf52840_dk                FAILED    00:00:01.529
particle_xenon             FAILED    00:00:01.549

I know this is not a proper fix but does doing the following solve the problem:

  • Open a new shell
  • cd C:\Users\ben\.platformio\penv\Scripts
  • pip.exe install six
  • Retry compilation
1 Like

Thank you. That did indeed work. I assume this is not included in the default installation?