My system: MacBook Air with macOS 10.14.6, Xcode 10.3, with sdk at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
When I ran the pip3 command to install the additional python dependencies
pip3 install -r zephyr/scripts/requirements.txt
I ran into the following warning:
building 'hid' extension creating build creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/hidapi creating build/temp.macosx-10.14-x86_64-3.7/hidapi/mac Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk Please check your Xcode installation
I have no idea how and why MacOSX10.15.sdk is used for this 'hid' extension building given that my macOS is 10.14.6.
Any ideas?
Hi,
Have you had any progress on this? Pip uses wheel when I'm trying to replicate it on my Mac, which is also running macOS 10.14.6, and Xcode does not seem to get invoked.
... Requirement already satisfied: pycparser in /Users/vidar/Library/Python/3.7/lib/python/site-packages (from cffi>=1.6.0->milksnake>=0.1.2->cmsis-pack-manager>=0.2.7->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (2.19) Building wheels for collected packages: git-spindle, sphinx-tabs, prettytable, hidapi Building wheel for git-spindle (setup.py) ... done Stored in directory: /Users/vidar/Library/Caches/pip/wheels/06/4c/82/d3434a10cb52c49d946b2fbb73a3bb4ce1e52ad18099fa9162 Building wheel for sphinx-tabs (setup.py) ... done Stored in directory: /Users/vidar/Library/Caches/pip/wheels/0a/3c/61/a23419ae1d53abb35e9d1c5bf1b1b3478d30a743174ab00e16 Building wheel for prettytable (setup.py) ... done Stored in directory: /Users/vidar/Library/Caches/pip/wheels/80/34/1c/3967380d9676d162cb59513bd9dc862d0584e045a162095606 Building wheel for hidapi (setup.py) ... done Stored in directory: /Users/vidar/Library/Caches/pip/wheels/51/0e/c8/c539e26fe889b92fd4f31333a951aeff601bd63c11c3c6c98a Successfully built git-spindle sphinx-tabs prettytable hidapi .. Python 3.7.4 (default, Sep 7 2019, 18:27:02) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin
No progress. Here's the complete output from running that "pip3 install -r zephyr/scripts/requirements.txt". Looks like it crashed in building hidapi ?
Last login: Wed Nov 27 08:20:03 on ttys000
FBP-1:~ matthewlai$ cd Documents/git/ncs
FBP-1:ncs matthewlai$ pip3 install -r zephyr/scripts/requirements.txt
Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 1)) (6.2.1)
Requirement already satisfied: PyYAML>=3.13 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 2)) (4.2b4)
Requirement already satisfied: breathe==4.9.1 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 3)) (4.9.1)
Requirement already satisfied: colorama in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 4)) (0.4.1)
Requirement already satisfied: docutils==0.14 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 5)) (0.14)
Requirement already satisfied: gcovr in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 6)) (4.2)
Requirement already satisfied: git-spindle==2.0 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 7)) (2.0)
Requirement already satisfied: gitlint in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 8)) (0.12.0)
Requirement already satisfied: intelhex in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 9)) (2.2.1)
Requirement already satisfied: junit2html in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 10)) (22)
Requirement already satisfied: packaging in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 11)) (19.2)
Requirement already satisfied: ply==3.10 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 12)) (3.10)
Requirement already satisfied: pyelftools==0.24 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 13)) (0.24)
Requirement already satisfied: pykwalify in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 14)) (1.7.0)
Collecting pyocd==0.21.0
Using cached files.pythonhosted.org/.../pyocd-0.21.0-py2.py3-none-any.whl
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 16)) (3.4)
Collecting pytest
Using cached files.pythonhosted.org/.../pytest-5.3.1-py3-none-any.whl
Requirement already satisfied: sphinx==1.7.5 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 18)) (1.7.5)
Collecting sphinx_rtd_theme
Using cached files.pythonhosted.org/.../sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl
Processing /Users/matthewlai/Library/Caches/pip/wheels/0a/3c/61/a23419ae1d53abb35e9d1c5bf1b1b3478d30a743174ab00e16/sphinx_tabs-1.1.13-cp37-none-any.whl
Collecting sphinxcontrib-svg2pdfconverter
Using cached files.pythonhosted.org/.../sphinxcontrib_svg2pdfconverter-1.0.1-py3-none-any.whl
Requirement already satisfied: west>=0.6.2 in /usr/local/lib/python3.7/site-packages (from -r zephyr/scripts/requirements.txt (line 22)) (0.6.3)
Collecting wheel==0.30.0
Using cached files.pythonhosted.org/.../wheel-0.30.0-py2.py3-none-any.whl
Requirement already satisfied: six>=1.4 in /usr/local/lib/python3.7/site-packages (from breathe==4.9.1->-r zephyr/scripts/requirements.txt (line 3)) (1.13.0)
Requirement already satisfied: lxml in /usr/local/lib/python3.7/site-packages (from gcovr->-r zephyr/scripts/requirements.txt (line 6)) (4.4.1)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.7/site-packages (from gcovr->-r zephyr/scripts/requirements.txt (line 6)) (2.10.3)
Requirement already satisfied: whelk>=1.11 in /usr/local/lib/python3.7/site-packages (from git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (2.8.2)
Requirement already satisfied: docopt>=0.5.0 in /usr/local/lib/python3.7/site-packages (from git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (0.6.2)
Requirement already satisfied: github3.py>=0.8.2 in /usr/local/lib/python3.7/site-packages (from git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (1.3.0)
Requirement already satisfied: sh==1.12.14; sys_platform != "win32" in /usr/local/lib/python3.7/site-packages (from gitlint->-r zephyr/scripts/requirements.txt (line 8)) (1.12.14)
Requirement already satisfied: Click==7.0 in /usr/local/lib/python3.7/site-packages (from gitlint->-r zephyr/scripts/requirements.txt (line 8)) (7.0)
Requirement already satisfied: arrow==0.14.2; python_version != "3.4" in /usr/local/lib/python3.7/site-packages (from gitlint->-r zephyr/scripts/requirements.txt (line 8)) (0.14.2)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.7/site-packages (from packaging->-r zephyr/scripts/requirements.txt (line 11)) (2.4.5)
Requirement already satisfied: python-dateutil>=2.4.2 in /usr/local/lib/python3.7/site-packages (from pykwalify->-r zephyr/scripts/requirements.txt (line 14)) (2.8.1)
Requirement already satisfied: intervaltree<4.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (3.0.2)
Requirement already satisfied: cmsis-pack-manager>=0.2.7 in /usr/local/lib/python3.7/site-packages (from pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (0.2.9)
Collecting hidapi; platform_system == "Darwin"
Using cached files.pythonhosted.org/.../hidapi-0.7.99.post21.tar.gz
Requirement already satisfied: pyusb<2.0,>=1.0.0b2 in /usr/local/lib/python3.7/site-packages (from pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (1.0.2)
Requirement already satisfied: prettytable in /usr/local/lib/python3.7/site-packages (from pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (0.7.2)
Collecting pluggy<1.0,>=0.12
Using cached files.pythonhosted.org/.../pluggy-0.13.1-py2.py3-none-any.whl
Collecting py>=1.5.0
Using cached files.pythonhosted.org/.../py-1.8.0-py2.py3-none-any.whl
Collecting more-itertools>=4.0.0
Using cached files.pythonhosted.org/.../more_itertools-7.2.0-py3-none-any.whl
Collecting attrs>=17.4.0
Using cached files.pythonhosted.org/.../attrs-19.3.0-py2.py3-none-any.whl
Collecting wcwidth
Using cached files.pythonhosted.org/.../wcwidth-0.1.7-py2.py3-none-any.whl
Collecting importlib-metadata>=0.12; python_version < "3.8"
Using cached files.pythonhosted.org/.../importlib_metadata-0.23-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.0.0 in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2.22.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (0.7.12)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (41.6.0)
Requirement already satisfied: imagesize in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (1.1.0)
Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2.7.0)
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2.0.0)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2.4.2)
Requirement already satisfied: sphinxcontrib-websupport in /usr/local/lib/python3.7/site-packages (from sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (1.1.2)
Requirement already satisfied: configobj in /usr/local/lib/python3.7/site-packages (from west>=0.6.2->-r zephyr/scripts/requirements.txt (line 22)) (5.0.6)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from jinja2->gcovr->-r zephyr/scripts/requirements.txt (line 6)) (1.1.1)
Requirement already satisfied: jwcrypto>=0.5.0 in /usr/local/lib/python3.7/site-packages (from github3.py>=0.8.2->git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (0.6.0)
Requirement already satisfied: uritemplate>=3.0.0 in /usr/local/lib/python3.7/site-packages (from github3.py>=0.8.2->git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (3.0.0)
Requirement already satisfied: sortedcontainers<3.0,>=2.0 in /usr/local/lib/python3.7/site-packages (from intervaltree<4.0,>=3.0.2->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (2.1.0)
Requirement already satisfied: appdirs>=1.4 in /usr/local/lib/python3.7/site-packages (from cmsis-pack-manager>=0.2.7->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (1.4.3)
Requirement already satisfied: milksnake>=0.1.2 in /usr/local/lib/python3.7/site-packages (from cmsis-pack-manager>=0.2.7->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (0.1.5)
Collecting zipp>=0.5
Using cached files.pythonhosted.org/.../zipp-0.6.0-py2.py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2019.9.11)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (1.25.7)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2.8)
Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.7/site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r zephyr/scripts/requirements.txt (line 18)) (2019.3)
Requirement already satisfied: cryptography>=1.5 in /usr/local/lib/python3.7/site-packages (from jwcrypto>=0.5.0->github3.py>=0.8.2->git-spindle==2.0->-r zephyr/scripts/requirements.txt (line 7)) (2.8)
Requirement already satisfied: cffi>=1.6.0 in /usr/local/lib/python3.7/site-packages (from milksnake>=0.1.2->cmsis-pack-manager>=0.2.7->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (1.13.2)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/site-packages (from cffi>=1.6.0->milksnake>=0.1.2->cmsis-pack-manager>=0.2.7->pyocd==0.21.0->-r zephyr/scripts/requirements.txt (line 15)) (2.19)
Building wheels for collected packages: hidapi
Building wheel for hidapi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/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 /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-wheel-ji57jclm --python-tag cp37
cwd: /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/
Complete output (23 lines):
running bdist_wheel
running build
running build_ext
cythoning hid.pyx to hid.c
/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/.eggs/Cython-0.29.14-py3.7-macosx-10.14-x86_64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/hid.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'hid' extension
creating build
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/hidapi
creating build/temp.macosx-10.14-x86_64-3.7/hidapi/mac
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
Please check your Xcode installation
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -framework IOKit -framework CoreFoundation -Ihidapi/hidapi -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c hid.c -o build/temp.macosx-10.14-x86_64-3.7/hid.o
clang: warning: -framework IOKit: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework CoreFoundation: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk' [-Wmissing-sysroot]
In file included from hid.c:4:
/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for hidapi
Running setup.py clean for hidapi
Failed to build hidapi
ERROR: pyocd 0.21.0 has requirement pyyaml<6.0,>=5.1, but you'll have pyyaml 4.2b4 which is incompatible.
Installing collected packages: hidapi, pyocd, more-itertools, zipp, importlib-metadata, pluggy, py, attrs, wcwidth, pytest, sphinx-rtd-theme, sphinx-tabs, sphinxcontrib-svg2pdfconverter, wheel
Running setup.py install for hidapi ... error
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-record-59ytbxn7/install-record.txt --single-version-externally-managed --compile
Complete output (21 lines):
running install
skipping 'hid.c' Cython extension (up-to-date)
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-record-59ytbxn7/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
How do I downgrade to 3.7.4?
Sorry, I thought it would be easy to downgrade, but it seems like that is not the case. At least not for this package. However, I was able to fix the build issue on my setup by updating to Xcode v11.2.1, which does include MacOSX10.15.sdk. Is it an option to update xcode?
Good news: With the Xcode v11.2.1 installed the "pip3 install --user -r zephyr/scripts/requirements.txt" works now!Bad news: the next pip3 install -r nrf/scripts/requirements.txt fails, something about cannot find "git2.h"?
FBP-1:ncs matthewlai$ pip3 install -r nrf/scripts/requirements.txt
Requirement already satisfied: recommonmark==0.4.0 in /usr/local/lib/python3.7/site-packages (from -r nrf/scripts/requirements.txt (line 1)) (0.4.0)
Requirement already satisfied: sphinxcontrib-mscgen>=0.5 in /usr/local/lib/python3.7/site-packages (from -r nrf/scripts/requirements.txt (line 2)) (0.5)
Requirement already satisfied: ecdsa in /usr/local/lib/python3.7/site-packages (from -r nrf/scripts/requirements.txt (line 3)) (0.14.1)
Requirement already satisfied: intelhex in /usr/local/lib/python3.7/site-packages (from -r nrf/scripts/requirements.txt (line 4)) (2.2.1)
Requirement already satisfied: nrfutil in /usr/local/lib/python3.7/site-packages (from -r nrf/scripts/requirements.txt (line 5)) (5.2.0)
Collecting pygit2>=0.26.0
Using cached files.pythonhosted.org/.../pygit2-0.28.2.tar.gz
Collecting editdistance>=0.5.0
Using cached files.pythonhosted.org/.../editdistance-0.5.3-cp37-cp37m-macosx_10_6_intel.whl
Requirement already satisfied: commonmark<=0.5.4 in /usr/local/lib/python3.7/site-packages (from recommonmark==0.4.0->-r nrf/scripts/requirements.txt (line 1)) (0.5.4)
Requirement already satisfied: docutils>=0.11 in /usr/local/lib/python3.7/site-packages (from recommonmark==0.4.0->-r nrf/scripts/requirements.txt (line 1)) (0.14)
Requirement already satisfied: Sphinx>=0.6 in /usr/local/lib/python3.7/site-packages (from sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (1.7.5)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from ecdsa->-r nrf/scripts/requirements.txt (line 3)) (1.13.0)
Requirement already satisfied: libusb1~=1.7 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.7.1)
Requirement already satisfied: click~=7.0 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (7.0)
Requirement already satisfied: behave~=1.0 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.2.6)
Requirement already satisfied: pyspinel==1.0.0a3 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.0.0a3)
Requirement already satisfied: pyserial~=3.0 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (3.4)
Requirement already satisfied: piccata~=1.0 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.0.1)
Requirement already satisfied: pyyaml~=4.2b1 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (4.2b4)
Requirement already satisfied: crcmod~=1.7 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.7)
Requirement already satisfied: protobuf~=3.6 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (3.10.0)
Requirement already satisfied: enum34~=1.0 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.1.6)
Requirement already satisfied: pc-ble-driver-py~=0.11.4 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (0.11.4)
Requirement already satisfied: tqdm~=4.25 in /usr/local/lib/python3.7/site-packages (from nrfutil->-r nrf/scripts/requirements.txt (line 5)) (4.39.0)
Requirement already satisfied: cffi in /usr/local/lib/python3.7/site-packages (from pygit2>=0.26.0->-r nrf/scripts/requirements.txt (line 8)) (1.13.2)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.4.2)
Requirement already satisfied: requests>=2.0.0 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.22.0)
Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.7.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (41.6.0)
Requirement already satisfied: sphinxcontrib-websupport in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (1.1.2)
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (0.7.12)
Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.10.3)
Requirement already satisfied: packaging in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (19.2)
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.0.0)
Requirement already satisfied: imagesize in /usr/local/lib/python3.7/site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (1.1.0)
Requirement already satisfied: parse>=1.8.2 in /usr/local/lib/python3.7/site-packages (from behave~=1.0->nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.12.1)
Requirement already satisfied: parse-type>=0.4.2 in /usr/local/lib/python3.7/site-packages (from behave~=1.0->nrfutil->-r nrf/scripts/requirements.txt (line 5)) (0.5.2)
Requirement already satisfied: ipaddress in /usr/local/lib/python3.7/site-packages (from pyspinel==1.0.0a3->nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.0.23)
Requirement already satisfied: wrapt in /usr/local/lib/python3.7/site-packages (from pc-ble-driver-py~=0.11.4->nrfutil->-r nrf/scripts/requirements.txt (line 5)) (1.11.2)
Requirement already satisfied: future in /usr/local/lib/python3.7/site-packages (from pc-ble-driver-py~=0.11.4->nrfutil->-r nrf/scripts/requirements.txt (line 5)) (0.18.2)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/site-packages (from cffi->pygit2>=0.26.0->-r nrf/scripts/requirements.txt (line 8)) (2.19)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (1.25.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2019.9.11)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.8)
Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.7/site-packages (from babel!=2.0,>=1.3->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2019.3)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from Jinja2>=2.3->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (1.1.1)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.7/site-packages (from packaging->Sphinx>=0.6->sphinxcontrib-mscgen>=0.5->-r nrf/scripts/requirements.txt (line 2)) (2.4.5)
Building wheels for collected packages: pygit2
Building wheel for pygit2 (setup.py) ... error
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/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 /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-wheel-7dul27pz --python-tag cp37
cwd: /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/
Complete output (62 lines):
running build_py
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/config.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/index.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/credentials.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/remote.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/py2.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/py3.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/_build.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/refspec.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/submodule.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/utils.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/blame.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/settings.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/errors.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/_run.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/repository.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
copying pygit2/ffi.py -> build/lib.macosx-10.14-x86_64-3.7/pygit2
creating build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/oid.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/index.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/attr.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/blame.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/pack.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/revert.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/net.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/config.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/types.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/repository.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/clone.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/submodule.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/errors.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/merge.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/graph.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/describe.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/stash.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/remote.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/strarray.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/buffer.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/diff.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/common.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/proxy.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/refspec.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/transport.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
copying pygit2/decl/checkout.h -> build/lib.macosx-10.14-x86_64-3.7/pygit2/decl
generating cffi module 'build/temp.macosx-10.14-x86_64-3.7/pygit2._libgit2.c'
building '_pygit2' extension
creating build/temp.macosx-10.14-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/blob.c -o build/temp.macosx-10.14-x86_64-3.7/src/blob.o
In file included from src/blob.c:30:
src/blob.h:33:10: fatal error: 'git2.h' file not found
#include <git2.h>
^~~~~~~~
ERROR: Failed building wheel for pygit2
Running setup.py clean for pygit2
Failed to build pygit2
Installing collected packages: pygit2, editdistance
Running setup.py install for pygit2 ... error
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-record-w1l8lzms/install-record.txt --single-version-externally-managed --compile
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/setup.py'"'"'; __file__='"'"'/private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-p4aiuy3s/pygit2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-record-w1l8lzms/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
That's unfortunate. Can you try to run 'brew install libgit2' as suggested in this thread: https://devzone.nordicsemi.com/f/nordic-q-a/54486/pip3-install--r-nrf-scripts-requirements-txt?
Works! Thanks :)