magic-wormhole FTBFS with Python 3.12

Bug #2068774 reported by Sudip Mukherjee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
magic-wormhole (Debian)
New
Unknown
magic-wormhole (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

magic-wormhole in oracular-proposed FTBFS with Python 3.12

https://launchpadlibrarian.net/733822428/buildlog_ubuntu-oracular-amd64.magic-wormhole_0.13.0-1_BUILDING.txt.gz

The error:

/<<PKGBUILDDIR>>/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
  LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 22, in <module>
    version=versioneer.get_version(),
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 1480, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 1412, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Changed in magic-wormhole (Ubuntu):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff attached for Oracular.

Has been built in a PPA and can be seen at https://launchpad.net/~sudipmuk/+archive/ubuntu/test-ppa/+build/28562383.

Changed in magic-wormhole (Ubuntu):
status: In Progress → Confirmed
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Paride Legovini (paride) wrote :

Hi, the change itself LGTM, but in terms of patch metadata we can do better in making life easier for our future selves. In the dep-3 headers please add:

Bugs: https://github.com/magic-wormhole/magic-wormhole/issues/506
Origin: backport, https://github.com/magic-wormhole/magic-wormhole/commit/9a2f575e51fea7a83252b33c9c59613418c66e16
Bug-Debian: http://bugs.debian.org/123123123

where the Bug-Debian bug is a bug filed against the Debian package ("please package upstream version 0.14 as it fixed FTBFS with Python 3.12").

In the dep-3 description please explain that the patch can be dropped once 0.14 is packaged.

Thanks!

[1] https://github.com/magic-wormhole/magic-wormhole/commit/9a2f575e51fea7a83252b33c9c59613418c66e16

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I helped out here by filing the Debian bug for you.

Changed in magic-wormhole (Ubuntu):
status: Confirmed → Triaged
Changed in magic-wormhole (Debian):
status: Unknown → New
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Thanks jbicha for the Debian bug.

debdiff has been modified as asked.

Changed in magic-wormhole (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks, Sudip. I fixed a minor issue with the DEP3 header (s/^Bugs:/Bug:/) and uploaded.

Changed in magic-wormhole (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package magic-wormhole - 0.13.0-1ubuntu1

---------------
magic-wormhole (0.13.0-1ubuntu1) oracular; urgency=medium

  * Use ConfigParser to fix FTBFS with Python-3.12. (LP: #2068774)

 -- Sudip Mukherjee <email address hidden> Tue, 18 Jun 2024 11:47:57 +0100

Changed in magic-wormhole (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.