[Debian-med-packaging] Bug#1081341: FTBFS with Python 3.12 AttributeError: module 'configparser' has no attribute 'SafeConfigParser'

Stefano Rivera stefanor at debian.org
Tue Sep 10 21:06:45 BST 2024


Source: igdiscover
Version: 0.11-4
Severity: serious
Tags: ftbfs sid trixie
Justification: FTBFS
User: debian-python at lists.debian.org
Usertags: python3.12

Dear maintainer,

During a test rebuild, igdiscover failed to rebuild.

https://docs.python.org/3/whatsnew/3.12.html#configparser

-------------------------------------------------------------------------------
[...]
dh clean --with python3,sphinxdoc --buildsystem=pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
	pybuild --clean -i python{version} -p 3.12
I: pybuild base:311: python3.12 setup.py clean 
/<<PKGBUILDDIR>>/versioneer.py:485: SyntaxWarning: invalid escape sequence '\s'
  LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 15, in <module>
    version = versioneer.get_version(),
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 1473, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 1406, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 412, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
E: pybuild pybuild:389: 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 returned exit code 13
make[1]: *** [debian/rules:21: override_dh_auto_clean] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-07T16:09:17Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/611761/

About the archive rebuild: The build was made on debusine.debian.net,
on arm64 using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/20684/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,

Stefano



More information about the Debian-med-packaging mailing list