Bug#1055546: swiglpk ftbfs with Python 3.12

Matthias Klose doko at debian.org
Wed Nov 8 06:41:29 GMT 2023


Package: src:swiglpk
Version: 5.0.8-1
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags python3.12


dh_auto_clean
I: pybuild base:310: python3.12 setup.py clean
/<<PKGBUILDDIR>>/versioneer.py:467: SyntaxWarning: invalid escape 
sequence '\s'
   LONG_VERSION_PY['git'] = '''
==============================
BUILDING SWIGLPK FROM SOURCE.
If you are installing SWIGLPK via pip, this means that no wheels are 
offered for your platform or Python version yet.
This can be the case if you adopt a new Python version early.
A source build requires GLPK, SWIG, and GMP (Linux/Mac) to be installed!
==============================
Looking for glpk.h...
Found glpk.h in /usr/include.
Making sure SWIG is available...
Found the swig executable.
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/setup.py", line 176, in <module>
     version=versioneer.get_version(),
             ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/versioneer.py", line 1405, in get_version
     return get_versions()["version"]
            ^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/versioneer.py", line 1339, in get_versions
     cfg = get_config_from_root(root)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/versioneer.py", line 399, in get_config_from_root
     parser = configparser.SafeConfigParser()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 
'SafeConfigParser'. Did you mean: 'RawConfigParser'?
E: pybuild pybuild:395: clean: plugin distutils failed with: exit 
code=1: python3.12 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p "3.12 3.11" 
returned exit code 13



More information about the debian-science-maintainers mailing list