This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pip3 nrf/scripts/requirements.txt fails at pygit2 on Mac OS

Struggling with a similar problem that has been popping up for many users.
I am already stuck on setting up ncs where installation of pygit2 is failing.
I managed to alleviate missing git2.h header by running brew install libgit2.

After that a duplicate symbol problem pops up:
duplicate symbol '_OdbBackendType' in:
build/temp.macosx-10.15-x86_64-3.7/src/odb.o
build/temp.macosx-10.15-x86_64-3.7/src/odb_backend.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pygit2


Tool versions:
➜ ncs pip3 --version
pip 19.3.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
➜ ncs python3 --version
Python 3.7.5
➜ ncs which python3
/usr/local/bin/python3

Mac OS Catalina.

fw-nrfconnect-nrf.git repo is the latest master branch, because of the nRF53 experimental support being available there.

And thats it. Not 100% sure if I can continue my setup and evaluation of nRF Connect SDK to develop something on a new nRF53 DK despite pygit2 failing?

Related