[Debian-med-packaging] Bug#1081243: python3-pyflow: helloWorld and other examples not runnable, possibly since python2 dropped
Étienne Mollier
emollier at debian.org
Mon Sep 9 21:56:23 BST 2024
Package: python3-pyflow
Version: 1.1.20-5
Severity: grave
Tags: upstream
Justification: renders the package unusable
Control: forwarded -1 https://github.com/Illumina/pyflow/issues/20
Hi,
While working on #1080766, I attempted to introduce proper test
support in src:python-pyflow. Trying to get the test suite
working eventually got me to realize a good portion of the
pyflow module seemed inoperative for a long time, probably since
python2 removal.
I have tried to run the pyflow/demo/helloWorld/helloWorld.py
script in a minimal environment, and the script thrown a
traceback at:
>>> from pyflow import WorkflowRunner
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'WorkflowRunner' from 'pyflow' (/usr/lib/python3/dist-packages/pyflow/__init__.py)
If I adjust the example to fetch the WorkflowRunner according to
the layout exposed by the system I then get another traceback:
>>> from pyflow.pyflow import WorkflowRunner
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pyflow/pyflow.py", line 53, in <module>
from pyflowConfig import siteConfig
ModuleNotFoundError: No module named 'pyflowConfig'
If I adjust the system file pyflow/pyflow.py line 53 to include
from pyflow.pyflowConfig import siteConfig, then I run into:
>>> from pyflow.pyflow import WorkflowRunner
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pyflow/pyflow.py", line 63, in <module>
raise Exception("pyflow module has only been tested for python versions [2.4,3.0)")
Exception: pyflow module has only been tested for python versions [2.4,3.0)
Dropping the version check then revealed a series of errors
reminescent from a missed migration from python2 to python3.
I'm not confident the module is usable in its current state.
My impression at the moment is that the port from python2 to
python3 only covered the "import pyflow" from plain python
autopkgtest. But the meat of the module, living mainly in
pyflow/src/pyflow.py, remains unusable, hence the severity.
Hopefully resolving the issue is just a matter of running 2to3,
but I have not checked closely yet.
Have a nice day, :)
Étienne.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.10.7-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-pyflow depends on:
ii python3 3.12.5-1
python3-pyflow recommends no packages.
python3-pyflow suggests no packages.
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/8, please excuse my verbosity
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240909/444d2425/attachment-0001.sig>
More information about the Debian-med-packaging
mailing list