Re: Error compiling sample Hello World


IosuGorostiza <balcalde@...>
 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

----------------------  ----------

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

  ----------------------------------------

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

    ----------------------------------------

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 

Join devel@lists.zephyrproject.org to automatically receive all group messages.