Re: BLE services not cleared during disconnection
#ble
Luiz Augusto von Dentz
Hi Dhananjay,
toggle quoted messageShow quoted text
When you refer to subscribe I suppose you are talking about writes to CCC? Those are persistent if you have paired the device which I believe is mandatory in case of HID, clearing the subscription on disconnect is only done if not paired: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/host/gatt.c#L1007 This cannot be conditional per service as the Bluetooth spec mandates this behaviour.
On Tue, Sep 4, 2018 at 5:38 PM, dhguja@gmail.com <dhguja@gmail.com> wrote:
[Edited Message Follows] --
Luiz Augusto von Dentz
|
|||||
|
|||||
BLE services not cleared during disconnection
#ble
Hello,
I am using Zephyr's Bluetooth stack for my BLE peripheral device which uses either HID services and custom service to send data to BLE Host. The problem i face is as follows: 1) If i connect my device as HID device all the services except my custom service is subscribed (as expected) 2) Now i disconnect and connect my device as custom device (without device reset) through custom application in Android i am able to use my custom service to send data. 3) Now i disconnect my device from my custom application and again try to connect my device as HID (from android Bluetooth settings). 4) But now all the services (both HID and custom services) are subscribed. (unexpected) Behavior:
Should applications handle the clearing of subscribed services during disconnection? Is this expected behavior of the BLE stack with in a power cycle? Thank you, Dhananjay G J
|
|||||
|
|||||
Re: Adding a custom board
Chettimada, Vinayak Kariappa
Hi Christoph,
Yes, you can start with a copy of the board closest to your custom board and update the files to match close to your product, preferably the board name is easily relatable to the board going on sale.
As you have already started with Zephyr, I will assume you have referred to http://docs.zephyrproject.org/porting/board_porting.html#board
Regards, Vinayak
From: devel@... <devel@...> on behalf of Christoph Schramm <schramm@...>
Sent: Monday, September 3, 2018 6:34:33 PM To: devel@... Subject: [Zephyr-devel] Adding a custom board Dear All,
we’ve just started with Zephyr but already love it.
I want to add our custom board (which is not, but will be on sale in future). What’s the recommended practice? As it is based on Nordic’s PCA10056 I could just copy the directory and refactor everything to “MakaioHub”, if you agree. Or we could .gitignore it.
Please let me know
Thanks, Chris
Vertretungsberechtigter Geschäftsführer:
|
|||||
|
|||||
Adding a custom board
Christoph Schramm <schramm@...>
Dear All,
we’ve just started with Zephyr but already love it.
I want to add our custom board (which is not, but will be on sale in future). What’s the recommended practice? As it is based on Nordic’s PCA10056 I could just copy the directory and refactor everything to “MakaioHub”, if you agree. Or we could .gitignore it.
Please let me know
Thanks, Chris
Vertretungsberechtigter Geschäftsführer:
|
|||||
|
|||||
Newsletter subscription confirmation
chunwu zhu
|
|||||
|
|||||
Can´t debug using Eclipse with nrf51_pca10028
IosuGorostiza <balcalde@...>
Hi everybody:
I´m trying to debug the sample hello_world with Eclipse Photon Release 4.8.0. in Windows 8.1 Enterprise 64bit. I followed every step showed in the Eclipse Debbuging part of the Application Development Primer guide. Every step is ok but when I try to run de application I get the next error: "Launching New_configuration has encountered a problem
Error in services launch sequence
Starting pyOCD GDB Server timed out." I installed the pyOCD using "pip install --pre -U pyocd" I apreciate every help, because I´m not able to find the origin of the problem. Thanks in advance. Best regards.
|
|||||
|
|||||
Frequency of packets into mesh network
ashish shukla <ashish.shukla@...>
Hi Johan, I'm working on smart light project. We are using zephyr mesh stack on NRF boards. What's your suggestion, with which frequency packets can be sent into mesh network so that packets reach their destination reliably. Also, do I need to send same packet multiple times to proxy node using a Mobile phone app for reliable delivery? -- Warm regards, Ashish Shukla Jr. Embedded Engineer Research & Development Please consider the environment before printing this e-mail or its attachments. Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi
|
|||||
|
|||||
Re: Enable SPI driver on nrf52840
Ulf Magnusson
On Fri, Aug 31, 2018 at 3:06 AM <cpmcparland@rtisys.org> wrote:
Another random tip is that you can save a minimal configuration file by pressing [D] in the menuconfig interface. The minimal configuration file only lists symbols whose values differ from their default values, and might give a better overview of the configuration. The minimal configuration file might even work as a stand-in for zephyr/.config, due to how the configuration system is set up at the moment: When there are no changes to *_defconfig or *.conf files, zephyr/.config gets read back in, and a new zephyr/.config is written out. That new zephyr/.config will be "full". Don't count on that though. :) Cheers, Ulf
|
|||||
|
|||||
Zephyr 1.13.0-rc2 tagged
Nashif, Anas
Hi, We have tagged rc2 and making good progress toward reducing the high and medium bug count. There are still a few issues that need attention but being delayed because of the holiday season. We are hoping to close many of the remaining issues next week then declare a code freeze with rc3.
Changes since rc1 are documented here https://github.com/zephyrproject-rtos/zephyr/releases/tag/v1.13.0-rc2 as usual.
Thanks, Anas
|
|||||
|
|||||
Re: Zephyr 1.13rc1 tagged
Nashif, Anas
On 23/08/2018, 01:47, "Paul Sokolovsky" <paul.sokolovsky@linaro.org> wrote:
Hello Anas, On Thu, 23 Aug 2018 04:19:51 +0000 "Nashif, Anas" <anas.nashif@intel.com> wrote: > Hi, > We have tagged Zephyr 1.13 rc1 and with that closed the merge window > for 1.13. Focus now will go into bug fixing, testing and > documentation. All new features will be merged after 1.13 is released. Thanks for the prompt pre-release process notifications to the mailing list this cycle. Hope it'll become a good tradition ;-). We have been announcing almost every pre-release since the project has started __ > The change log since 1.12 and release notes can be found here: > > https://github.com/zephyrproject-rtos/zephyr/releases/tag/v1.13.0-rc1 Any reminder/suggestion where/how to contribute notes for the master changelog of this release (e.g. of breaking changes)? I grepped thru tickets/PRs at the beginning of this week and don't think I found something. Actually, I have no idea who's release manager this cycle, as https://github.com/zephyrproject-rtos/zephyr/issues/8320 is unassigned. The draft release notes for 1.13 is in the tree now. (I can make wild guesses of course ;-). And yeah, I'm sure everyone, including me, takes it easy - it's vacation times, so everyone misses something. Again, I'm only pleasantly surprised about mailing list notices). Anas > > Thank you all for the contributions and support, > Anas Nashif > Thanks! -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
|
|||||
|
|||||
Re: Enable SPI driver on nrf52840
cpmcparland@...
Vinayak,
Great utube file. Sorry for taking so long to get back on this, but wanted to check this out on the SPI driver as well. I might just be getting the hang of how this scheme works.....at least, I hope so! I2C driver build worked exactly as your demo...not too surprising, but never hurts to verify. I also managed to get the SPI driver to work but, I had to change the setting of CONFIG_SPI_1 to CONFIG_SPI_0 in the driver Kconfig file. I tried to do that in the prj.conf file, but it still failed. Making the change in Kconfig, however, worked. I'm guessing there are some things that need to be done early in the Kconfig file before prj.conf gets dealt with (?). Will play around with compatible GPIO pins on the 52840 so that I can get both I2C_0 and SPI_0 working at the same time. Thanks again for the video- things were really clear after that. Cheers, Chuck
|
|||||
|
|||||
Re: 回复:[Zephyr-devel] hciconfig tools error with nrf52832 running zephyr
icephyr
thanks,guys,I wil have a try later.
At 2018-08-28 20:40:21, "Serafin" <serafin@...> wrote:
|
|||||
|
|||||
Re: bt_le_scan_start Fails with Error -5 after 128 scan start/stop cycles
Declan Traill <declan.traill@...>
Hi Johan/Vinayak and others,
Have you had a chance to look at/reproduce this bug yet? Is there a potential solution?
Thanks for your attention…
Regards, Declan Traill
From: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
Sent: Thursday, 23 August 2018 3:21 AM To: Johan Hedberg <johan.hedberg@...> Cc: Declan Traill <declan.traill@...>; devel@... Subject: Re: [Zephyr-devel] bt_le_scan_start Fails with Error -5 after 128 scan start/stop cycles
Hi Johan,
It is nothing to do with controller privacy, its just that advertiser is active and by BT Spec.
“If the Host issues this command when scanning or legacy advertising is enabled, the Controller shall return the error code Command Disallowed (0x0C).”
Can we do something about this in the host, when address is regenerated?
- Vinayak
Email from setec.com.au does not necessarily represent
the official policy of SETEC Pty Ltd.
|
|||||
|
|||||
Re: Error compiling sample Hello World
Carles Cufi
Hi there,
I’ve now submitted an updated chocolatey package that works on both 32-bit and 64-bit Windows installations: https://chocolatey.org/packages/dtc-msys2/1.4.4.20180829
Note that the update is not approved yet, so if you want to try it on your 32-bit Windows installation you will need to specify the version when installing with chocolatey:
choco install dtc-msys2 --version 1.4.4.20180829
Regards,
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: 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)
|
|||||
|
|||||
Re: Error compiling sample Hello World
IosuGorostiza <balcalde@...>
Hi everyone again: I installed the module pyelftool and then everything worked. I compiled and flashed the demo board with ninja. Now I have to check if demo board sends Hello_World message. Thanks. Regards.
De: Cufi, Carles [mailto:Carles.Cufi@...]
Hi there,
OK, as long as Option 2 worked, then you should be fine. I’m surprised that Option 1 didn’t work, but there might be something I’m overlooking.
Regarding the elftools error, I can see in the output of “pip3 list” you sent before that the pyelftools modules is not installed, which is strange because it’s listed in the requirements.txt file.
Can you try: pip3 install pyelftools==0.24
For any other modules missing, take a look at the requirements.txt: https://github.com/zephyrproject-rtos/zephyr/blob/master/scripts/requirements.txt
Carles
From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 13:37 To: Cufi, Carles <Carles.Cufi@...>; devel@... Cc: 'Marti Bolivar' <marti@...>; 'Ulf Magnusson' <ulfalizer@...> Subject: RE: [Zephyr-devel] Error compiling sample Hello World
Hi: I didn´t tell that I am using Zephyr 1.12.0. The versión of Phyton 3.7 is the versión installed when I executed the command choco install git python ninja dtc-msys2 gperf I tried the option 1 and I get the same errors. I tried the option 2 and the YAML module installed OK. Then I executed the command cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console: -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4") -- Selected BOARD nrf52_pca10040 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 -- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr -- The C compiler identification is GNU 7.3.1 -- The CXX compiler identification is GNU 7.3.1 -- The ASM compiler identification is GNU -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe -- Performing Test toolchain_is_ok -- Performing Test toolchain_is_ok - Success -- ******************************* *** NOTE TO KCONFIG AUTHORS *** ******************************* The behavior of Kconfig 'default' properties in Zephyr has changed. The earliest default with a satisfied condition is now used, instead of the last one. This is standard Kconfig behavior. See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults. To get rid of this note, create a file called 'hide-defaults-note' in the Zephyr root directory. An empty file is fine. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build Then I excute the next command show in the Start Guide: ninja, and I get another error: [1/133] Generating include/generated/syscall_macros.h [2/133] Generating include/generated/driver-validation.h FAILED: zephyr/include/generated/driver-validation.h cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h " Traceback (most recent call last): File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module> from elf_helper import ElfHelper, kobject_to_enum File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module> import elftools ModuleNotFoundError: No module named 'elftools' [3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h " Traceback (most recent call last): File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module> from elf_helper import ElfHelper, kobject_to_enum File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module> import elftools ModuleNotFoundError: No module named 'elftools' [4/133] Generating misc/generated/syscalls.json ninja: build stopped: subcommand failed. Thanks. Best regards
De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Sorry, a couple of corrections:
There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
Option 1: Install like this: pip3 install PyYAML==4.2b4
From: devel@... <devel@...> On Behalf Of Cufi, Carles
I think this is what is going on:
There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
In order to get around this, there are 2 options:
Option 1: Install like this: pip install PyYAML==4.2b4
Option 2: · 1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml 2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl
I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)
Carles
From: (ELT) Benjamín Alcalde <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)) 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)) 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)) Collecting pykwalify (from -r scripts/requirements.txt (line 14)) Collecting windows-curses (from -r scripts/requirements.txt (line 16)) 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)) 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)) Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12)) Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12)) 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)) 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)) 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)) 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)) 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)) 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
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@...>
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
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
Hi everybody: 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)
|
|||||
|
|||||
Re: Error compiling sample Hello World
Carles Cufi
Hi there,
OK, as long as Option 2 worked, then you should be fine. I’m surprised that Option 1 didn’t work, but there might be something I’m overlooking.
Regarding the elftools error, I can see in the output of “pip3 list” you sent before that the pyelftools modules is not installed, which is strange because it’s listed in the requirements.txt file.
Can you try: pip3 install pyelftools==0.24
For any other modules missing, take a look at the requirements.txt: https://github.com/zephyrproject-rtos/zephyr/blob/master/scripts/requirements.txt
Carles
From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 13:37 To: Cufi, Carles <Carles.Cufi@...>; devel@... Cc: 'Marti Bolivar' <marti@...>; 'Ulf Magnusson' <ulfalizer@...> Subject: RE: [Zephyr-devel] Error compiling sample Hello World
Hi: I didn´t tell that I am using Zephyr 1.12.0. The versión of Phyton 3.7 is the versión installed when I executed the command choco install git python ninja dtc-msys2 gperf I tried the option 1 and I get the same errors. I tried the option 2 and the YAML module installed OK. Then I executed the command cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console:
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")
-- Selected BOARD nrf52_pca10040
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
-- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
--
*******************************
*** NOTE TO KCONFIG AUTHORS ***
*******************************
The behavior of Kconfig 'default' properties in Zephyr has changed. The
earliest default with a satisfied condition is now used, instead of the
last one. This is standard Kconfig behavior.
See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults.
To get rid of this note, create a file called 'hide-defaults-note' in the
Zephyr root directory. An empty file is fine.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build
Then I excute the next command show in the Start Guide: ninja, and I get another error:
[1/133] Generating include/generated/syscall_macros.h
[2/133] Generating include/generated/driver-validation.h
FAILED: zephyr/include/generated/driver-validation.h
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h "
Traceback (most recent call last):
File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module>
from elf_helper import ElfHelper, kobject_to_enum
File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
import elftools
ModuleNotFoundError: No module named 'elftools'
[3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h "
Traceback (most recent call last):
File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module>
from elf_helper import ElfHelper, kobject_to_enum
File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
import elftools
ModuleNotFoundError: No module named 'elftools'
[4/133] Generating misc/generated/syscalls.json
ninja: build stopped: subcommand failed.
Thanks.
Best regards
De:
devel@... [mailto:devel@...]
En nombre de Cufi, Carles
Sorry, a couple of corrections:
There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
Option 1: Install like this: pip3 install PyYAML==4.2b4
From:
devel@... <devel@...>
On Behalf Of Cufi, Carles
I think this is what is going on:
There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
In order to get around this, there are 2 options:
Option 1: Install like this: pip install PyYAML==4.2b4
Option 2: · 1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml 2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl
I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)
Carles
From: (ELT) Benjamín Alcalde <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)) 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)) 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)) Collecting pykwalify (from -r scripts/requirements.txt (line 14)) Collecting windows-curses (from -r scripts/requirements.txt (line 16)) 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)) 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)) Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12)) Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12)) 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)) 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)) 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)) 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)) 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)) 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
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@...>
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
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
Hi everybody: 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)
|
|||||
|
|||||
Re: Error compiling sample Hello World
IosuGorostiza <balcalde@...>
Hi: I didn´t tell that I am using Zephyr 1.12.0. The versión of Phyton 3.7 is the versión installed when I executed the command choco install git python ninja dtc-msys2 gperf I tried the option 1 and I get the same errors. I tried the option 2 and the YAML module installed OK. Then I executed the command cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console: -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4") -- Selected BOARD nrf52_pca10040 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 -- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr -- The C compiler identification is GNU 7.3.1 -- The CXX compiler identification is GNU 7.3.1 -- The ASM compiler identification is GNU -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe -- Performing Test toolchain_is_ok -- Performing Test toolchain_is_ok - Success -- ******************************* *** NOTE TO KCONFIG AUTHORS *** ******************************* The behavior of Kconfig 'default' properties in Zephyr has changed. The earliest default with a satisfied condition is now used, instead of the last one. This is standard Kconfig behavior. See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults. To get rid of this note, create a file called 'hide-defaults-note' in the Zephyr root directory. An empty file is fine. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build Then I excute the next command show in the Start Guide: ninja, and I get another error: [1/133] Generating include/generated/syscall_macros.h [2/133] Generating include/generated/driver-validation.h FAILED: zephyr/include/generated/driver-validation.h cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h " Traceback (most recent call last): File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module> from elf_helper import ElfHelper, kobject_to_enum File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module> import elftools ModuleNotFoundError: No module named 'elftools' [3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h " Traceback (most recent call last): File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module> from elf_helper import ElfHelper, kobject_to_enum File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module> import elftools ModuleNotFoundError: No module named 'elftools' [4/133] Generating misc/generated/syscalls.json ninja: build stopped: subcommand failed. Thanks. Best regards
De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Sorry, a couple of corrections:
There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
Option 1: Install like this: pip3 install PyYAML==4.2b4
From: devel@... <devel@...> On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39 To: (ELT) Benjamín Alcalde <balcalde@...>; devel@... Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...> Subject: Re: [Zephyr-devel] Error compiling sample Hello World
I think this is what is going on:
There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
In order to get around this, there are 2 options:
Option 1: Install like this: pip install PyYAML==4.2b4
Option 2: · 1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml 2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl
I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)
Carles
From: (ELT) Benjamín Alcalde <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)) 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)) 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)) Collecting pykwalify (from -r scripts/requirements.txt (line 14)) Collecting windows-curses (from -r scripts/requirements.txt (line 16)) 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)) 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)) Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12)) Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12)) 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)) 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)) 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)) 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)) 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)) 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
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@...>
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
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
Hi everybody: 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)
|
|||||
|
|||||
Re: Error compiling sample Hello World
Carles Cufi
Sorry, a couple of corrections:
There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
Option 1: Install like this: pip3 install PyYAML==4.2b4
From: devel@... <devel@...>
On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39 To: (ELT) Benjamín Alcalde <balcalde@...>; devel@... Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...> Subject: Re: [Zephyr-devel] Error compiling sample Hello World
I think this is what is going on:
There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
In order to get around this, there are 2 options:
Option 1: Install like this: pip install PyYAML==4.2b4
Option 2: · 1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml 2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl
I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)
Carles
From: (ELT) Benjamín Alcalde <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)) 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)) 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)) Collecting pykwalify (from -r scripts/requirements.txt (line 14)) Collecting windows-curses (from -r scripts/requirements.txt (line 16)) 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)) 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)) Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12)) Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12)) 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)) 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)) 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)) 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)) 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)) 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
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@...>
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
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
Hi everybody: 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)
|
|||||
|
|||||
Re: Error compiling sample Hello World
Carles Cufi
I think this is what is going on:
There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.
In order to get around this, there are 2 options:
Option 1: Install like this: pip install PyYAML==4.2b4
Option 2: · 1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml 2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl
I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)
Carles
From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25 To: Cufi, Carles <Carles.Cufi@...>; devel@... Subject: RE: [Zephyr-devel] Error compiling sample Hello World
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)) 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)) 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)) Collecting pykwalify (from -r scripts/requirements.txt (line 14)) Collecting windows-curses (from -r scripts/requirements.txt (line 16)) 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)) 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)) Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12)) Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12)) 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)) 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)) 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)) 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)) 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)) 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
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@...>
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
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
Hi everybody: 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)
|
|||||
|
|||||
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
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
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
Hi everybody: 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)
|
|||||
|