question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing pyocd 0.13.0 from pip

See original GitHub issue
Collecting pyocd (from -r zephyr/scripts/requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/12/66/686bb88d1137cce5c7f374f97bdde0361804221fbeca4758fdc8c2a4c2ad/pyocd-0.13.0.tar.gz (942kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 952kB 5.4MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-qifmoy4p/pyocd/setup.py", line 76, in <module>
        include_package_data=True,  # include files from MANIFEST.in
      File "/home/maureen/zephyr-test/lib/python3.5/site-packages/setuptools/__init__.py", line 140, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/maureen/zephyr-test/lib/python3.5/site-packages/setuptools/dist.py", line 370, in __init__
        k: v for k, v in attrs.items()
      File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
        self.finalize_options()
      File "/home/maureen/zephyr-test/lib/python3.5/site-packages/setuptools/dist.py", line 529, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-install-qifmoy4p/pyocd/.eggs/setuptools_scm-3.1.0-py3.5.egg/setuptools_scm/integration.py", line 23, in version_keyword
        dist.metadata.version = get_version(**value)
      File "/tmp/pip-install-qifmoy4p/pyocd/.eggs/setuptools_scm-3.1.0-py3.5.egg/setuptools_scm/__init__.py", line 152, in get_version
        template=write_to_template,
      File "/tmp/pip-install-qifmoy4p/pyocd/.eggs/setuptools_scm-3.1.0-py3.5.egg/setuptools_scm/__init__.py", line 72, in dump_version
        with open(target, "w") as fp:
    FileNotFoundError: [Errno 2] No such file or directory: 'pyocd/_version.py'

cc: @nashif

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
flitcommented, Nov 15, 2018

Just released v0.13.1 that fixes the issues on macOS, Linux, and Windows.

Closing this issue. If you continue to have problems please reopen.

1reaction
flitcommented, Nov 14, 2018

I think I found the problem: I use a separate, clean working copy of the pyOCD repo to perform releases to PyPI. Because I use macOS with a case-insensitive APFS filesystem, when I pulled the 0.13.0 changes into this working copy, git did not rename the pyOCD directory to pyocd. Nor did setuptools have any issues building the sdist. So the tarball released to PyPI has the incorrect mixed case name for the pyOCD package. This causes different failures depending on whether the end user’s filesystem is case-sensitive. Will fix and release 0.13.1 very shortly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error installing pyocd 0.13.0 from pip Β· Issue #442 - GitHub
I think I found the problem: I use a separate, clean working copy of the pyOCD repo to perform releases to PyPI. Because...
Read more >
pyocd - PyPI
The latest stable version of pyOCD may be installed via pip as follows: ... Under Linux, run with sudo -H to install pyOCD...
Read more >
Installing - pyOCD
PyOCD requires Python 3.6 or later. It runs on macOS, Linux, FreeBSD, and Windows platforms. The latest pyOCD package is available on PyPI....
Read more >
pyocd Changelog - pyup.io
- Address an issue with the built-in target STM32L031x6 by disabling double buffered flash programming. - New board IDs: DISCO-H747I (stm32h747xihx), NUCLEO-Β ...
Read more >
nRF9160 SDK difficulties - Nordic Q&A
Running setup.py install for pygit2 ... error ... cwd: C:\Users\fabien\AppData\Local\Temp\pip-install-_2v8t4rg\pygit2\
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found