- Package:
- src:python3-defaults
- Source:
- python3-defaults
- Submitter:
- Graham Inggs
- Date:
- 2025-08-17 17:48:36 UTC
- Severity:
- important
- Tags:
Hi Maintainer While attempting to run the autopkgtests triggered by python3-defaults for spades [1] and circlator [2], python3-joblib fails to install with the following error: Setting up python3-joblib (0.14.0-3) ... ... File "/usr/lib/python3/dist-packages/joblib/test/test_func_inspect_special_encoding.py", line 0 SyntaxError: unknown encoding: big5 dpkg: error processing package python3-joblib (--configure): installed python3-joblib package post-installation script subprocess returned error exit status 1 I've set the severity serious as this blocks the migration of python3-defaults with Python 3.8 as default. Regards Graham [1] https://ci.debian.net/user/britney/jobs?package=spades&suite[]=testing&arch[]=amd64 [2] https://ci.debian.net/user/britney/jobs?package=circlator&suite[]=testing&arch[]=amd64
This bugs seems to have gone away with a recent upload of one of its dependencies. Closing.
As can be seen in the autopkgtests of circlator [1] and spades [2], this started happening again with the upload of python3-defaults 3.9.0-3, which switched the default Python version from 3.8 to 3.9. It can also be seen that the autopkgtests of both circlator and spades previously started passing again on 2020-04-08, as soon as python3-defaults 3.8.2-3 was uploaded, removing Python 3.7 as a supported version. [1] https://ci.debian.net/packages/c/circlator/testing/amd64/ [2] https://ci.debian.net/packages/s/spades/testing/amd64/
So, python3-joblib doesn't always fail to install. It installs fine for the statsmodels [1] and scikit-learn [1] autopkgtests against python3-defaults 3.9.0-3. [1] https://ci.debian.net/packages/s/statsmodels/testing/amd64/ [2] https://ci.debian.net/packages/s/scikit-learn/testing/amd64/
Control: reassign -1 python3-minimal 3.8.6-1 Control: affects -1 src:joblib installed, everything works as expected as one can see in the statsmodels and scikit-learn tests. Compilation fails if python3.X-minimal is installed, but python3.X is not. Then some module handling encoding is not installed and py3compile fails. One can easily reproduce this issue in current unstable with python3.8-minimal installed and python3.8 removed. In the autopkgtests of circlator and spades we also see The following packages were automatically installed and are no longer required: libpython3.8-minimal python3.8-minimal Use 'apt autoremove' to remove them. Reassigning to python3-minimal which contains py3compile. Not sure what the best option here is to fix in py3compile, but ignoring that particular error would be a start. A file without bytecode would be better than installation failure in this case. Cheers
We're working around that for now by not byte-compiling the problematic file in python3-joblib.