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

Getting started on mac

Im getting this error, but i thing this has to do with some python dependencies, Im getting errors with 

pip3 install --user -r zephyr/scripts/requirements.txt and installing the toolchain, I can't verify the cmake install "brew install cmake" and  python3 " brew install python3".

any workaround with this issue?

 

MacBook-Pro-de-Dan:ncs Daniel$ pip3 install --user -r zephyr/scripts/requirements.txt
Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment
Collecting wheel==0.30.0 (from -r zephyr/scripts/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl
Collecting breathe==4.9.1 (from -r zephyr/scripts/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/2c/a5/040234179dc9140be4a1cb4350af362327d001d0ca7e5bba4d580916ceb4/breathe-4.9.1-py2.py3-none-any.whl
Collecting sphinx==1.7.5 (from -r zephyr/scripts/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/1b/9f/98d67201c5a6e1aececed03a44a819d0e32adba81414081e303cfaf8c54c/Sphinx-1.7.5-py2.py3-none-any.whl
Requirement already satisfied: docutils==0.14 in /Users/Daniel/Library/Python/3.4/lib/python/site-packages (from -r zephyr/scripts/requirements.txt (line 4)) (0.14)
Collecting sphinx_rtd_theme (from -r zephyr/scripts/requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/ef/0c/e4a462190506bc4bff6ca8cf93da07b2d13e540466d2e8a760352d0c69b0/sphinx_rtd_theme-0.4.2-py2.py3-none-any.whl
Collecting sphinxcontrib-svg2pdfconverter (from -r zephyr/scripts/requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/c4/eb/4fbbff639cb699bcc39f9e22ba4526e936d8dd2d8191794f54d7e1601c1a/sphinxcontrib_svg2pdfconverter-0.1.0-py3-none-any.whl
Collecting junit2html (from -r zephyr/scripts/requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/69/93/f2ccef1136dba078dada0513c324bad9ffd2be9236229d09bce71e1338a8/junit2html-022.tar.gz
Collecting PyYAML>=3.12 (from -r zephyr/scripts/requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz
Collecting ply==3.10 (from -r zephyr/scripts/requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/ce/3d/1f9ca69192025046f02a02ffc61bfbac2731aab06325a218370fd93e18df/ply-3.10.tar.gz
Collecting hub==2.0 (from -r zephyr/scripts/requirements.txt (line 10))
  Using cached https://files.pythonhosted.org/packages/e0/04/8eefd3f7da255fd9f84c21d88f3f0937237e1b20f26a4cf1d9a594c434d5/hub-2.0.tar.gz
Collecting gitlint (from -r zephyr/scripts/requirements.txt (line 11))
  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 zephyr/scripts/requirements.txt (line 12))
  Using cached https://files.pythonhosted.org/packages/ba/78/d4a186a2e38731286c99dc3e3ca8123b6f55cf2e28608e8daf2d84b65494/pyelftools-0.24.tar.gz
Collecting pyocd==0.12.0 (from -r zephyr/scripts/requirements.txt (line 13))
  Using cached https://files.pythonhosted.org/packages/89/03/ba2b7c7573b384a92981a6a199abd88a688df7f2dbbee1eea872366b84c0/pyOCD-0.12.0.tar.gz
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/setuptools_scm_git_archive/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) -- Some packages may not be found!
    Download error on https://pypi.python.org/simple/setuptools-scm-git-archive/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm_git_archive' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) -- Some packages may not be found!
    No local packages or download links found for setuptools-scm-git-archive
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ww/vjsbrjcn5xd22_9p_mjl_6ym0000gp/T/pip-install-kr68_652/pyocd/setup.py", line 78, in <module>
        include_package_data=True,  # include files from MANIFEST.in
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/dist.py", line 268, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 836, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1081, in best_match
        return self.obtain(req, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1093, in obtain
        return installer(requirement)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 623, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm-git-archive')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ww/vjsbrjcn5xd22_9p_mjl_6ym0000gp/T/pip-install-kr68_652/pyocd/

Parents
  • I had the same issues as you when I tried to verify the "brew install cmake" command in the Getting Started Assistant. The same occurred for the "brew install python3" command.

    To verify the python3 command by yourself, I did this simple test. Open a terminal window & enter "python3 --version". You should receive the Python 3 version, e.g. Python 3.7.2.

    I was able to get Nordic Connect SDK setup without having verified cmake & python.

    However, I did not get the same error that you did when you ran the requirements.txt file in the ncs/zephyr/scripts folder. It seems that you are using python version 3.4. Could you try with python v3.7.2 & see if that fixes the issue?

    In the Output window in SES, could you please switch from the Tasks to the Output tab & print the log in a comment below (the easiest is to use the Insert -> Code option in DevZone)?

Reply
  • I had the same issues as you when I tried to verify the "brew install cmake" command in the Getting Started Assistant. The same occurred for the "brew install python3" command.

    To verify the python3 command by yourself, I did this simple test. Open a terminal window & enter "python3 --version". You should receive the Python 3 version, e.g. Python 3.7.2.

    I was able to get Nordic Connect SDK setup without having verified cmake & python.

    However, I did not get the same error that you did when you ran the requirements.txt file in the ncs/zephyr/scripts folder. It seems that you are using python version 3.4. Could you try with python v3.7.2 & see if that fixes the issue?

    In the Output window in SES, could you please switch from the Tasks to the Output tab & print the log in a comment below (the easiest is to use the Insert -> Code option in DevZone)?

Children
Related