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
2 Likes

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

Unfortunately, this doesn’t work. Running on Windows 10, no previous Zephyr installation. Installed Python 3.8.2 and pip install six. Also #include <zephyr.h> statement us squiggled and complains about the includepath.
Error:

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

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

ModuleNotFoundError: No module named ‘six’

And that returned no error? You made sure to execute C:\Users\da1018904\.platformio\penv\Scripts\pip.exe install six?

What platform (ST STM32, Nordic NRFx) are you working on?

Yes, pip install six reports that six is already installed. Using Particle Boron which is Nordic nRF52.

da1018904@DESKTOP-QFUJKU3 MINGW64 ~/.platformio/penv/Scripts
$ pip install six
Requirement already satisfied: six in c:\users\da1018904\appdata\local\programs\python\python38-32\lib\site-packages (1.14.0)

It might be that that calls your system pip and not the pip.exe inside that folder. Can you try the exact command I posted above within a windows cmd.exe?

./pip.exe install six That worked! Thank you!