Bug#978261: swiglpk: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p 3.9 returned exit code 13

Adrian Bunk bunk at debian.org
Mon Feb 8 20:43:00 GMT 2021


Control: tags -1 patch fixed-upstream

On Sat, Dec 26, 2020 at 10:45:50PM +0100, Lucas Nussbaum wrote:
> Source: swiglpk
> Version: 4.65.0-2
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20201226 ftbfs-bullseye
>...
> > ======================================================================
> > ERROR: Failure: ImportError (/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so: undefined symbol: glp_netgen_prob)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> >     raise self.exc_val.with_traceback(self.tb)
> >   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> >     module = self.importer.importFromPath(
> >   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> >     return self.importFromDir(dir_path, fqname)
> >   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> >     mod = load_module(part_fqname, fh, filename, desc)
> >   File "/usr/lib/python3.9/imp.py", line 244, in load_module
> >     return load_package(name, filename)
> >   File "/usr/lib/python3.9/imp.py", line 216, in load_package
> >     return _load(spec)
> >   File "<frozen importlib._bootstrap>", line 711, in _load
> >   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> >   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> >   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> >   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/__init__.py", line 1, in <module>
> >     from .swiglpk import *
> >   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/swiglpk.py", line 13, in <module>
> >     from . import _swiglpk
> > ImportError: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so: undefined symbol: glp_netgen_prob
> > 
> > ----------------------------------------------------------------------
>...

Attached are the relevant parts from the upstream fix.

After that, it is worth trying whether this fixed python-cobra.

cu
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ignore-problematic-functions-via-swig-directives-in-.patch
Type: text/x-diff
Size: 4627 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210208/0bdd6a10/attachment-0001.patch>


More information about the debian-science-maintainers mailing list