Your message dated Sun, 13 Oct 2024 09:15:30 +0000
with message-id <e1szuhg-00eyx6...@fasolo.debian.org>
and subject line Bug#1079379: Removed package(s) from unstable
has caused the Debian Bug report #1077824,
regarding python3-amqplib: Produced binary package is Python2 only
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 ow...@bugs.debian.org
immediately.)
--
1077824: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077824
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-amqplib
Version: 1.0.2-4
Severity: serious
Justification: 5p
X-Debbugs-Cc: florent.jacq...@canonical.com
The `python3-amqplib/1.0.2-4` package build is broken: it's missing a magical
2to3 step.
Using it leads to that kind of traceback:
```
File "/usr/lib/python3/dist-packages/amqplib/client_0_8/connection.py", line
96, in __init__
login_response.write_table({'LOGIN': userid, 'PASSWORD': password})
File "/usr/lib/python3/dist-packages/amqplib/client_0_8/serialization.py",
line 370, in write_table
table_data.write_shortstr(k)
File "/usr/lib/python3/dist-packages/amqplib/client_0_8/serialization.py",
line 338, in write_shortstr
if isinstance(s, unicode):
^^^^^^^
NameError: name 'unicode' is not defined
```
A very quick test to check the Python 3 compatibility is the following:
$ grep 'isinstance.*unicode'
/usr/lib/python3/dist-packages/amqplib/client_0_8/serialization.py
if isinstance(s, unicode):
if isinstance(s, unicode):
if isinstance(v, unicode):
Those `unicode` invokations should have been converted to `str` during the
build process, which worked beforehand, but has been broken. I've detected this
bug on Ubuntu, and it worked correctly at the time of Noble, and has only been
broken in Oracular.
I did not investigate much further, but a local manual build also produces a
broken binary package. From what I've seen in the launchpad build logs,
previous version were installing python3-lib2to3 during the build, and this is
not the case anymore. I guess it would be similar in Debian's infrastructure.
A quick workaround for anyone affected is to run the following:
sudo 2to3 -w /usr/lib/python3/dist-packages/amqplib/client_0_8/*
-- System Information:
Debian Release: trixie/sid
APT prefers oracular
APT policy: (500, 'oracular'), (400, 'oracular-proposed'), (200,
'noble-updates'), (200, 'noble'), (200, 'jammy-updates'), (200, 'jammy')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.0-11-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-amqplib depends on:
ii python3 3.12.3-0ubuntu1
python3-amqplib recommends no packages.
Versions of packages python3-amqplib suggests:
pn python-amqplib-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 1.0.2-4+rm
Dear submitter,
as the package python-amqplib 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/1079379
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
ftpmas...@ftp-master.debian.org.
Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)
--- End Message ---