Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1001244: circuits: needs update for python3.10: 'Callable' from 'collections' is removed

369 views
Skip to first unread message

Paul Gevers

unread,
Dec 6, 2021, 8:10:04 PM12/6/21
to
Source: circuits
Version: 3.1.0+ds1-2
Severity: serious
X-Debbugs-CC: debi...@lists.debian.org
Tags: sid bookworm
User: debi...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:python3-defaults

Dear maintainer(s),

With a recent upload of python3-defaults the autopkgtest of circuits
fails in testing when that autopkgtest is run with the binary packages
of python3-defaults from unstable. It passes when run with only packages
from testing. In tabular form:

pass fail
python3-defaults from testing 3.9.8-1
circuits from testing 3.1.0+ds1-2
all others from testing from testing

I copied some of the output at the bottom of this report.
https://docs.python.org/3.9/library/collections.html says:
"""
Deprecated since version 3.3, will be removed in version 3.10: Moved
Collections Abstract Base Classes to the collections.abc module. For
backwards compatibility, they continue to be visible in this module
through Python 3.9.
"""
Time to move on.

Currently this regression is blocking the migration of python3-defaults
to testing [1].

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/c/circuits/17290349/log.gz

Testing with python3.10:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/circuits/__init__.py", line 22,
in <module>
from .core import Event
File "/usr/lib/python3/dist-packages/circuits/core/__init__.py", line
12, in <module>
from .bridge import Bridge
File "/usr/lib/python3/dist-packages/circuits/core/bridge.py", line
23, in <module>
from .handlers import handler
File "/usr/lib/python3/dist-packages/circuits/core/handlers.py", line
10, in <module>
from collections import Callable
ImportError: cannot import name 'Callable' from 'collections'
(/usr/lib/python3.10/collections/__init__.py)
autopkgtest [19:10:21]: test autodep8-python3

OpenPGP_signature

Steve Langasek

unread,
Dec 10, 2021, 3:10:03 PM12/10/21
to
Package: circuits
Version: 3.1.0+ds1-2
Followup-For: Bug #1001244
User: ubuntu...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Please find attached a trivial patch for this issue.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slan...@ubuntu.com vor...@debian.org
circuits_3.1.0+ds1-2ubuntu1.debdiff

Daniele Tricoli

unread,
Dec 12, 2021, 1:40:03 PM12/12/21
to
Hello Steve,

On Fri, Dec 10, 2021 at 05:47:46PM -0800, Steve Langasek wrote:

> Apologies, the previous patch let the import test pass in local testing
> here, but is incomplete. Please find attached a more complete patch that
> should actually let autopkgtests pass.

Don't worry and many thanks for the patch, I'm including it right now.

Many thanks,

--
Daniele Tricoli 'eriol'
https://mornie.org
0 new messages