Your message dated Thu, 10 Feb 2022 13:04:31 +0000
with message-id <e1ni97f-0002tn...@fasolo.debian.org>
and subject line Bug#1004929: fixed in python-orderedmultidict 1.0-5
has caused the Debian Bug report #1004929,
regarding python-orderedmultidict: fix collections import under py3.10
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.)


-- 
1004929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004929
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-orderedmultidict
Version: 1.0-4
Severity: normal

Dear Maintainer,

in python 3.10, "from collections import <thing>" doesn't work anymore
and should be imported from collections.abc.

$ sh debian/tests/unittest

                                   [0/1942]
EE
======================================================================
ERROR: test_itemlist (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_itemlist
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/tests/test_itemlist.py",
line 18, in <module>
    from orderedmultidict.itemlist import itemlist
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/orderedmultidict/__init__.py",
line 14, in <module>
    from .orderedmultidict import *  # noqa
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/orderedmultidict/orderedmultidict.py",
line 15, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections'
(/usr/lib/python3.10/collections/__init__.py)


======================================================================
ERROR: test_orderedmultidict (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_orderedmultidict
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/tests/test_orderedmultidict.py",
line 20, in <module>
    from orderedmultidict.orderedmultidict import omdict
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/orderedmultidict/__init__.py",
line 14, in <module>
    from .orderedmultidict import *  # noqa
  File 
"/home/ubuntu/git/packages/python-orderedmultidict/python-orderedmultidict/orderedmultidict/orderedmultidict.py",
line 15, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections'
(/usr/lib/python3.10/collections/__init__.py)


----------------------------------------------------------------------
Ran 2 tests in 0.000s


Upstream fixed it in
https://github.com/gruns/orderedmultidict/commit/154e2c52a0368715c22e856f0c135e9770365d4d
which is part of the 1.0.1 release:

>From 2a3d04c5bbb28804320d7f457d65ead3bcc07c10 Mon Sep 17 00:00:00 2001
From: Simon Brunning <si...@brunningonline.net>
Date: Sat, 2 Feb 2019 09:13:36 +0000
Subject: [PATCH] Fix #19, warning importing from collections rather than
 collections.abc.

---
 orderedmultidict/orderedmultidict.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/orderedmultidict/orderedmultidict.py
b/orderedmultidict/orderedmultidict.py
index 2d21239..bcb6481 100644
--- a/orderedmultidict/orderedmultidict.py
+++ b/orderedmultidict/orderedmultidict.py
@@ -13,19 +13,23 @@
 from __future__ import absolute_import

 from itertools import chain
-from collections import MutableMapping

 import six
 from six.moves import map, zip_longest

 from .itemlist import itemlist
+import sys
+
+if six.PY3:
+    from collections.abc import MutableMapping
+else:
+    from collections import MutableMapping

 try:
     from collections import OrderedDict as odict  # Python 2.7 and later.
 except ImportError:
     from ordereddict import OrderedDict as odict  # Python 2.6 and earlier.

-import sys
 items_attr = 'items' if sys.version_info[0] >= 3 else 'iteritems'

 _absent = object()  # Marker that means no parameter was provided.

--- End Message ---
--- Begin Message ---
Source: python-orderedmultidict
Source-Version: 1.0-5
Done: Iñaki Malerba <inaki@malerba.space>

We believe that the bug you reported is fixed in the latest version of
python-orderedmultidict, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1004...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Iñaki Malerba <inaki@malerba.space> (supplier of updated 
python-orderedmultidict package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 10 Feb 2022 12:29:49 +0100
Source: python-orderedmultidict
Architecture: source
Version: 1.0-5
Distribution: unstable
Urgency: medium
Maintainer: Iñaki Malerba <inaki@malerba.space>
Changed-By: Iñaki Malerba <inaki@malerba.space>
Closes: 1004929
Changes:
 python-orderedmultidict (1.0-5) unstable; urgency=medium
 .
   [ Iñaki Malerba ]
   * Update debian/watch file
 .
   [ Andreas Hasenack ]
   * Fix collections import for py3.10 (Closes: #1004929)
Checksums-Sha1:
 8aaef0b684386b1789dd2eb8a3a833f743e4bfa5 2027 python-orderedmultidict_1.0-5.dsc
 025e8e62527bae4b90ea65a623bcf434a495e2a0 3412 
python-orderedmultidict_1.0-5.debian.tar.xz
 dcbd11065ec36263a322c21e424df7e155884543 6261 
python-orderedmultidict_1.0-5_source.buildinfo
Checksums-Sha256:
 21f7cd1029c1e1c5cec2ab1a97e0f48773211586ed0784faa1e1e45a2414a1f7 2027 
python-orderedmultidict_1.0-5.dsc
 cae2d5a42d141d25e7845a21dfcb1eb1c47d470dc0ed1e8b6b00142e5bdfb915 3412 
python-orderedmultidict_1.0-5.debian.tar.xz
 5231b0c3adfd91c71362f98f51d99a33670293180be071b73d18f4eb3f63ae1f 6261 
python-orderedmultidict_1.0-5_source.buildinfo
Files:
 11069ac3b1c6e5a0693d1cb9a837a551 2027 python optional 
python-orderedmultidict_1.0-5.dsc
 821cfe1678c113a88bb654ee2e2efcc8 3412 python optional 
python-orderedmultidict_1.0-5.debian.tar.xz
 7ade4e2386fa598a3d6a1ef1b42ede99 6261 python optional 
python-orderedmultidict_1.0-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEE1ebJmvu2M+JYt+af57yRVE86UxsFAmIFCloUHGluYWtpQG1h
bGVyYmEuc3BhY2UACgkQ57yRVE86UxsvIxAAnv3dv3ErCN8+GMHimMEoJeNbJFD0
eQEhtoCJ007BdrWqZE6C5zp5l/3VO12u9cN2QiO7Jw9qAwgA5A0Ou3dkC+BFCwIC
RJbqBEpyNV8dEUEOWVPOXBnc8jv2SvME/8IAAltfyprB2djJwWkjZmtg7HmWqT2g
pFvFMpuyMUtH14EkeK2lNh9h+fDP3IZTLAJk52bfPgXSMbw2kusTMguCKJDT0aIM
uSKo/ry7gVwpo/xQ/0DU1fgNkEy21+peXE3D7S/plNe/nmXag+SMrLCGhbgSQs0M
h8jruNxFFJm+KE1hjZQmOq4hAmDH8Un1D0nnkTiMXQ4MeSOSOQQOVIbBFzrkzSFV
/OWFI+/OsNRLaCWLyzQaA3FMtz/KEdKI0MYRxlo+QyM6BitE7MeuCKLkWOXuGvng
IZFti70GHYyT8HRLg96x4HFPkyEXUJnRv9AUQt6gGmzSD4d8ERBJzqvMXqH7JCTl
08OVi7abdCM9BPaq9CYQrRERtOZlJPImCx7lKGGFCZ6wAc83SlW/UzkNOVPz89zv
oh7i6LQ3Z6uhegtmJQ1HyLTPTgH4TGyzLWb2GjpswA8C/GhKBjQ8jhZwugmGygqP
e+1Y9pFXDj8dlyVj2sbjYqnePlMeyhct0TToZcPGrYls4AJfrb/JaZywGC7LP+rs
2iyGeBdGi31k2A4=
=Zt+D
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to