Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76848 - [python-pyocd] crashes with VersionConflict since python-pylink-square 1.0.0

Attached to Project: Community Packages
Opened by Ferdinand Bachmann (Ferdi265) - Friday, 16 December 2022, 18:03 GMT
Last edited by Toolybird (Toolybird) - Saturday, 17 December 2022, 23:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since `python-pylink-square` was updated to 1.0.0, `pyocd` from `python-pyocd` immediately crashes with a VersionConflict exception, since `python-pyocd` requires `pylink-square<1.0,>=0.11.1`.

Expected Behaviour:

`pyocd` prints a help message and does not crash.

```
[yrlf@lenny ~]$ yay -Q python-pyocd python-pylink-square
python-pyocd 0.34.3-1
python-pylink-square 0.14.3-2
[yrlf@lenny ~]$ pyocd
usage: pyocd [-h] [-V] [--help-options] ...

PyOCD debug tools for Arm Cortex devices

options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--help-options Display available session options.

subcommands:

commander (cmd)
Interactive command console.
erase Erase entire device flash or specified sectors.
load (flash) Load one or more images into target device memory.
gdbserver (gdb)
Run the gdb remote server(s).
json Output information as JSON.
list List information about probes, targets, or boards.
pack Manage CMSIS-Packs for target support.
reset Reset a target device.
server Run debug probe server.
rtt SEGGER RTT Viewer.
[yrlf@lenny ~]$
```

Actual Behaviour:

`pyocd` crashes with a VersionConflict exception:

```
[yrlf@lenny ~]$ yay -Q python-pyocd python-pylink-square
python-pyocd 0.34.3-1
python-pylink-square 1.0.0-1
[yrlf@lenny ~]$ pyocd
Traceback (most recent call last):
File "/usr/bin/pyocd", line 5, in <module>
from pyocd.__main__ import main
File "/usr/lib/python3.10/site-packages/pyocd/__init__.py", line 21, in <module>
from . import gdbserver
File "/usr/lib/python3.10/site-packages/pyocd/gdbserver/__init__.py", line 17, in <module>
from .gdbserver import GDBServer
File "/usr/lib/python3.10/site-packages/pyocd/gdbserver/gdbserver.py", line 41, in <module>
from ..rtos import RTOS
File "/usr/lib/python3.10/site-packages/pyocd/rtos/__init__.py", line 29, in <module>
load_plugin_classes_of_type('pyocd.rtos', RTOS, ThreadProvider)
File "/usr/lib/python3.10/site-packages/pyocd/core/plugin.py", line 97, in load_plugin_classes_of_type
plugin = entry_point.load()()
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2470, in load
self.require(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2493, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pylink-square 1.0.0 (/usr/lib/python3.10/site-packages), Requirement.parse('pylink-square<1.0,>=0.11.1'))
1 [yrlf@lenny ~]$
```
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 17 December 2022, 23:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-pyocd 0.34.3-2
Comment by David Runge (dvzrv) - Friday, 16 December 2022, 21:09 GMT
@Ferdi265: Thanks for the report.

Please try python-pyocd 0.34.3-2.
Comment by Ferdinand Bachmann (Ferdi265) - Saturday, 17 December 2022, 12:42 GMT
Works with python-pyocd 0.34.3-2

Loading...