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

Problems getting a working SES environment (pip3 install fails)

Hi,

I'm new to Nordic tools and am stuck on getting all the pieces in place.  I have:

Mac OS 10.14.6

nRF Connect v3.6.1 Getting Started Assistant

Python 3.6.3

All is well until I get to this command: 

pip3 install -r nrf/scripts/requirements.txt

This fails with the following error:

...
...

Using cached sphinxcontrib-mscgen-0.5.tar.gz (10 kB)

    ERROR: Command errored out with exit status 1:

     command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vs/34z554r95jq8dds6zfrx08km0000gn/T/pip-install-gocyieot/sphinxcontrib-mscgen_54acd3ed526b41f0b47a8926cfd6be5f/setup.py'"'"'; __file__='"'"'/private/var/folders/vs/34z554r95jq8dds6zfrx08km0000gn/T/pip-install-gocyieot/sphinxcontrib-mscgen_54acd3ed526b41f0b47a8926cfd6be5f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/vs/34z554r95jq8dds6zfrx08km0000gn/T/pip-pip-egg-info-zu0b17j5

         cwd: /private/var/folders/vs/34z554r95jq8dds6zfrx08km0000gn/T/pip-install-gocyieot/sphinxcontrib-mscgen_54acd3ed526b41f0b47a8926cfd6be5f/

    Complete output (21 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 10, in <module>

        from setuptools.extern.six.moves import filter, filterfalse, map

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/extern/__init__.py", line 1, in <module>

        from pkg_resources.extern import VendorImporter

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3017, in <module>

        @_call_aside

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside

        f(*args, **kwargs)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3045, in _initialize_master_working_set

        dist.activate(replace=False)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2577, in activate

        declare_namespace(pkg)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2151, in declare_namespace

        _handle_ns(packageName, path_item)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2091, in _handle_ns

        _rebuild_mod_path(path, packageName, module)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2120, in _rebuild_mod_path

        orig_path.sort(key=position_in_sys_path)

    AttributeError: '_NamespacePath' object has no attribute 'sort'

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

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


I don't see anything in the forum or internet that helps so I'm stuck. Would appreciate any assistance.

Regards,
ac
Related