[Debian-med-packaging] Bug#1009201: Bug#1009201: toil: (autopkgtest) needs update for python3.10: No such file or directory: 'python3.9'
Étienne Mollier
emollier at emlwks999.eu
Sun Apr 10 21:55:43 BST 2022
Control: tags -1 + patch
Hi Steffen,
These autopkgtest failures:
> ___________________ ToilDebugFileTest.testFetchJobStoreFiles
> ___________________
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/toil/test/utils/toilDebugTest.py",
> line 31, in setUp
> subprocess.check_call([python,
> os.path.abspath('src/toil/test/utils/ABCWorkflowDebug/debugWorkflow.py')])
> File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
> retcode = call(*popenargs, **kwargs)
> File "/usr/lib/python3.10/subprocess.py", line 345, in call
> with Popen(*popenargs, **kwargs) as p:
> File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
> self._execute_child(args, executable, preexec_fn, close_fds,
> File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> FileNotFoundError: [Errno 2] No such file or directory: 'python3.9'
> ---------------------------- Captured stdout setup
> -----------------------------
look to stem from your Debian specific file src/toil/version.py
which hardcodes the minor python version, currently python3.9.
If I adjust this file to be agnostic on the python3 minor
version with the following patch:
--- toil.orig/src/toil/version.py
+++ toil/src/toil/version.py
@@ -2,8 +2,8 @@
cgcloudVersion = '1.6.0a1.dev393'
version = '5.6.0-c34146a6437e4407a61e946e968bcce67a0ebbca'
distVersion = '5.6.0'
-exactPython = 'python3.9'
-python = 'python3.9'
+exactPython = 'python3'
+python = 'python3'
dockerTag = '5.6.0-c34146a6437e4407a61e946e968bcce67a0ebbca-py3.9'
currentCommit = 'c34146a6437e4407a61e946e968bcce67a0ebbca'
dockerRegistry = 'quay.io/ucsc_cgl'
then the autopkgtest failure is fixed and the package should be
able to make it to testing. However, I do not know the entire
implications of this file, so am not 100% sure my fix wouldn't
actually break something. Do you know whether my modification
would be okay or if there are reasons to adopt a different
approach?
Have a nice day, :)
--
Étienne Mollier <emollier at emlwks999.eu>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
On air: Caravan - Noine
-------------- 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/20220410/66cbe4b0/attachment.sig>
More information about the Debian-med-packaging
mailing list