Error installing pyocd 0.13.0 from pip
See original GitHub issueCollecting 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:
- Created 5 years ago
- Reactions:4
- Comments:9 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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 topyocd
. 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.