Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1062953: python3-pyocd: Module is unusable (missing runtime dependencies)

12 views
Skip to first unread message

Nick Morrott (nickm)

unread,
Feb 4, 2024, 2:10:05 AM2/4/24
to
Package: python3-pyocd
Version: 0.36.0-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The upload of python3-pyocd 0.36.0-1 appears to be completely unusable:

$ python3
Python 3.11.7 (main, Dec 8 2023, 14:22:46) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyOCD
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pyOCD/__init__.py", line 21, in <module>
from . import gdbserver
File "/usr/lib/python3/dist-packages/pyOCD/gdbserver/__init__.py", line 17,
in <module>
from .gdbserver import GDBServer
File "/usr/lib/python3/dist-packages/pyOCD/gdbserver/gdbserver.py", line 42,
in <module>
from ..rtos import RTOS
File "/usr/lib/python3/dist-packages/pyOCD/rtos/__init__.py", line 29, in
<module>
load_plugin_classes_of_type('pyocd.rtos', RTOS, ThreadProvider)
File "/usr/lib/python3/dist-packages/pyOCD/core/plugin.py", line 97, in
load_plugin_classes_of_type
plugin = entry_point.load()()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/importlib_metadata/__init__.py", line
203, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pyocd/__init__.py", line 21, in <module>
from . import gdbserver
File "/usr/lib/python3/dist-packages/pyocd/gdbserver/__init__.py", line 17,
in <module>
from .gdbserver import GDBServer
File "/usr/lib/python3/dist-packages/pyocd/gdbserver/gdbserver.py", line 50,
in <module>
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pyocd/probe/jlink_probe.py", line 22, in
<module>
import pylink
ModuleNotFoundError: No module named 'pylink'


The build log reports several missing dependencies:

I: dh_python3 pydist:302: Cannot find package that provides cmsis_pack_manager.
I: dh_python3 pydist:302: Cannot find package that provides libusb_package.
I: dh_python3 pydist:302: Cannot find package that provides pylink_square.


Although present in the distribution, no tests are configured to run at build time.



-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (700, 'testing'), (600, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pyocd depends on:
ii python3 3.11.6-1
ii python3-capstone 4.0.2-5+b1
ii python3-colorama 0.4.6-4
ii python3-importlib-metadata 4.12.0-1
ii python3-importlib-resources 6.0.1-1
ii python3-intelhex 2.3.0-2
ii python3-intervaltree 3.0.2-1.1
ii python3-lark 1.1.9-1
ii python3-natsort 8.0.2-2
ii python3-pkg-resources 68.1.2-2
ii python3-prettytable 3.6.0-1
ii python3-pyelftools 0.30-1
ii python3-six 1.16.0-4
ii python3-typing-extensions 4.7.1-2
ii python3-usb 1.2.1-2
ii python3-yaml 6.0.1-1+b1

python3-pyocd recommends no packages.

python3-pyocd suggests no packages.

-- no debconf information

Jakob Haufe

unread,
Feb 4, 2024, 5:10:04 AM2/4/24
to
Hi,

thanks for the report.

I also noticed this while working on the adoption of the package.

This particular problem can be worked around easily, but it's unfortunately
not the only one.

My current plan is to disable jlink support as a first step as it needs
non-free components.

The other problem is the usage of an abomination called "libusb_packaging"
which needs to be replaced completely.

I have a locally patched version that looks good, will try and upload a new
version later today.

Cheers,
sur5r

--
ceterum censeo microsoftem esse delendam.
0 new messages