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

nRFConnect 1.1.0 / Installing on macOS / Installing additional Python dependencies problem


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/[email protected]/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

        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'"'"'))' install --record /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-record-59ytbxn7/install-record.txt --single-version-externally-managed --compile

             cwd: /private/var/folders/_p/wcsx2wys5zb208bpxxqlt66r0000gn/T/pip-install-fvbj5ar1/hidapi/

        Complete output (21 lines):

        running install

        running build

        running build_ext

        skipping 'hid.c' Cython extension (up-to-date)

        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/[email protected]/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: 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.

  • Hi,

    So it seems like the root cause may be that it's pointing to a non-existent SDK. I also would have expected the language level to be '3'. Ref. this message  "Cython directive 'language_level' not set, using 2 for now (Py2)".

    Are you using the original Python distribution that comes with OSX. I.e., do you get this when your open python3?

    Python 3.7.4 (default, Sep 7 2019, 18:27:02)
    [Clang 10.0.1 (clang-1001.0.46.4)] on darwin

    Does it make a difference if you install the requirements list with the --user option (pip3 install --user -r requirements)? 

  • I follow the instructions in the section "Install Requirements and Dependencies" and ran the brew command to install python3:

    brew install cmake ninja gperf ccache dfu-util qemu dtc python3

    Here's the output when I run python3:

    Python 3.7.5 (default, Nov 1 2019, 02:16:32)
    [Clang 11.0.0 (clang-1100.0.33.8)] on darwin

Related