Open kcp-chewie opened 2 years ago
I got the same error when running this on a RPi,
I have the same issue running on an RPI unfortunately. Did either of you get it working?
If I remember correct cmsis-pack-manager can be installed on the latest version (bullseye) of Raspberry Pi OS. For now I use "pyocd==0.25.0" which can be installed without cmsis-pack-manager.
Calling as a module (python3 -mpyocd -h
) still seems to verify dependencies.
For just getting it to work one can remove the cmsis-pack-manager dependency in pyocd.egg-info/requires.txt
in the site-packages
(and add the from __future__ import annotations
in pyocd/target/pack_target.py
).
The docs suggest that pyOCD can be used without cmsis-pack-manager (https://pyocd.io/docs/installing_on_non_x86.html), but I've observed several failures when it isn't installed.
The first error is due to an issue with type annotations
This issue can be fixed by adding
from __future__ import annotations
to pyocd/target/pack/pack_target.py as suggested here: https://mypy.readthedocs.io/en/stable/runtime_troubles.html#future-annotations-import-pep-563After fixing that error, the following issue is observed
The docs suggest it should be runnable through Python