Package: python3-pyocd
Version: 0.12.0+dfsg-2
Severity: important
Dear Maintainer,
I tried to use the included binaries (like pyocd-flashtool) to flash a binary
to a board. However, running the program just gives me the following error:
Traceback (most recent call last):
File "/usr/bin/pyocd-flashtool", line 11, in <module>
load_entry_point('pyocd==0.12.0', 'console_scripts', 'pyocd-flashtool')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 484,
in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2714,
in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2332,
in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2338,
in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/pyocd/__init__.py", line 18, in
<module>
from . import board
File "/usr/lib/python3/dist-packages/pyocd/board/__init__.py", line 18, in
<module>
from . import mbed_board
File "/usr/lib/python3/dist-packages/pyocd/board/mbed_board.py", line 24,
in <module>
from .board import Board
File "/usr/lib/python3/dist-packages/pyocd/board/board.py", line 18, in
<module>
from pyOCD.target import (TARGET, FLASH)
ModuleNotFoundError: No module named 'pyOCD'
Adding a symlink from pyocd to pyOCD in /usr/lib/python3/dist-packages seems
to work around this issue (I still could not flash though, but that's probably
a different problem, it seems to work with the current master from upstream
though). Upstream seems to have renamed to pyOCD directory in ef63b407 [1] as
well btw., similar to what dfsg.sh does, but they likely made some other
changes in the source code as well.
Kind regards
Manfred
[1]
https://github.com/mbedmicro/pyOCD/commit/ef63b40755b8d1e75f6a248a745ea31981269c0d
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_CH.utf8, LC_CTYPE=de_CH.utf8 (charmap=UTF-8), LANGUAGE=de_CH:de
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages python3-pyocd depends on:
ii python3 3.6.7-1
ii python3-colorama 0.3.7-1
ii python3-future 0.15.2-5
ii python3-intelhex 2.1-2
ii python3-intervaltree 2.1.0-2
ii python3-pkg-resources 40.4.3-1
ii python3-pyelftools 0.25-1
ii python3-six 1.11.0-2
ii python3-usb 1.0.2-1
ii python3-websocket 0.53.0-1
python3-pyocd recommends no packages.
python3-pyocd suggests no packages.
-- no debconf information