Your message dated Fri, 08 Nov 2024 18:16:25 +0000
with message-id <[email protected]>
and subject line Bug#1084203: Removed package(s) from unstable
has caused the Debian Bug report #1067770,
regarding python3-d2to1 fails with latest setuptools
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1067770: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067770
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-d2to1
Version: 0.2.12-3

I have a third party, and somewhat legacy Python 3 software that depends on
python3-d2to1 to build properly.
However when building that software in bookworm got the following error,
from within python3-d2to1's code:

> ImportError: cannot import name '_get_unpatched' from 'setuptools.dist'

After some searching online I found out that RedHat has a similar bug
report in their BugZilla:

https://bugzilla.redhat.com/show_bug.cgi?id=2239998

Someone there linked to a pull request that fixes that issue. Since I know
my way around dpkg-dev, and quilt, I patched the package d2to1 locally with
the diff from the RedHat pull request:

Index: d2to1/d2to1/core.py
===================================================================
--- d2to1.orig/d2to1/core.py
+++ d2to1/d2to1/core.py
@@ -27,7 +27,10 @@ def d2to1(dist, attr, value):
     """

     from distutils.core import Distribution
-    from setuptools.dist import _get_unpatched
+    try:
+        from setuptools.dist import _get_unpatched
+    except ImportError:
+        from setuptools.dist import get_unpatched as _get_unpatched

     _Distribution = _get_unpatched(Distribution)

Which fixed my issue. I could now build and deploy my somewhat legacy
Python 3 third party software without problems.
This patch probably ought to go upstream though, as it is a problem with
d2to1 itself, and not with Debian's packaging of it. But until its
upstream, perhaps that patch wouldn't hurt.

Florian

--- End Message ---
--- Begin Message ---
Version: 0.2.12-3+rm

Dear submitter,

as the package d2to1 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1084203

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to