#954403 joblib: configuration error installing python3-joblib

#954403#5
Date:
2020-03-21 09:25:31 UTC
From:
To:
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

#954403#12
Date:
2020-04-27 07:14:30 UTC
From:
To:
This bugs seems to have gone away with a recent upload of one of its
dependencies. Closing.

#954403#29
Date:
2020-11-27 06:07:42 UTC
From:
To:
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/

#954403#34
Date:
2020-11-27 08:13:58 UTC
From:
To:
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/

#954403#39
Date:
2020-11-30 22:39:45 UTC
From:
To:
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

#954403#52
Date:
2020-12-06 15:34:59 UTC
From:
To:
We're working around that for now by not byte-compiling the problematic file in
python3-joblib.