Closed juhhov closed 4 years ago
@juhhov Thanks for finding this out. We experience the same issue.
The implications of this problem are much wider than just the installation of this package as it makes mbed import
command to fail if pip
has been upgraded.
We will try to find a remedy ASAP.
This may actually be caused by this issue: https://github.com/pypa/pip/issues/7629
Pip 20.0.2 fixes this.
I still do experience an error with pip 20.3.4
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
downgrading to pip 20.0.2 did not help unfortunately
@marcel-bluestone It looks like you are using Python 2, which is not supported by cmsis-pack-manager any more. (I'm surprised pip even tried to install that version of setuptools_scm, which also does not support Python 2.)
This is still happening for me. :(
C:\Users\zac>pip --version
pip 21.3 from c:\program files\python\lib\site-packages\pip (python 3.10)
C:\Users\zac>pip install cmsis-pack-manager
Collecting cmsis-pack-manager
Using cached cmsis-pack-manager-0.3.0.tar.gz (42 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata (pyproject.toml) ... done
Collecting pyyaml>=5.1
Using cached PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
Collecting milksnake>=0.1.2
Using cached milksnake-0.1.5-py2.py3-none-any.whl (9.6 kB)
Collecting appdirs>=1.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting cffi>=1.6.0
Using cached cffi-1.15.0-cp310-cp310-win_amd64.whl (180 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cmsis-pack-manager
Building wheel for cmsis-pack-manager (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python\python.exe' 'c:\program files\python\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\zac\AppData\Local\Temp\tmp58bzrrzd'
cwd: C:\Users\zac\AppData\Local\Temp\pip-install-3w9duaxa\cmsis-pack-manager_e79c3b68937240a380554d97b3e76eff
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build\lib
creating build\lib\cmsis_pack_manager
copying cmsis_pack_manager\pack_manager.py -> build\lib\cmsis_pack_manager
copying cmsis_pack_manager\_native.py -> build\lib\cmsis_pack_manager
copying cmsis_pack_manager\_native__ffi.py -> build\lib\cmsis_pack_manager
copying cmsis_pack_manager\_version.py -> build\lib\cmsis_pack_manager
copying cmsis_pack_manager\__init__.py -> build\lib\cmsis_pack_manager
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for cmsis-pack-manager
Failed to build cmsis-pack-manager
ERROR: Could not build wheels for cmsis-pack-manager, which is required to install pyproject.toml-based projects
C:\Users\zac>
@zacpod Are you using Python 3.10? I was able to reproduce the issue with 3.10. It looks like this was just fixed by pip 21.3. (Literally as I was testing, one second it was building CPM with pip 21.2.3, then at the end of that install it announced that pip 21.3 was available. 😄 )
If the new pip doesn't work for you, as a workaround you can install Rust (see https://rustup.rs/) and it should build.
@flit Thanks - I am on Pip 21.3, but still wasn't working.
But installing Rust worked a treat.
Appreciate the quick response. :)
Ok, thanks for the update! Not sure what the problem is then, we'll have to investigate. I'll create a new issue to track it, since it seems to be a different cause.
@flit Let me know if I can help. I'm in the process of getting my Nucleo-H743ZI2 up and running with mbed, and so far it's been fairly easy - but pyocd doesn't work yet in Window or Linux. I'm sure it's mostly pebcak as I'm very new to all this, but if I can help test or shoot logs over to you I'll be more than happy to do so.
@zacpod Really sorry, there are known issues with the H743 in pyocd. 😓 I'm working on a general fix for these kinds of issues by supporting CMSIS Pack debug sequences. You can try out this work on my feature/debug_sequences branch. The main pyocd issue is pyocd/pyOCD#1148. We can also talk on Slack if you like (link to join).
Fyi, the issue with Python 3.10 is simple: we didn't release wheels for Python 3.10 since it wasn't final. Working on getting a wheel out. 😄
@flit Great, I'll check out that branch - thanks!
@zacpod Fyi, CPM v0.4.0 includes wheels for Python 3.10. (And pyocd requires CPM 0.4.0.)
Downgrading to < 20 uses wheel.