#1032392 python3-scikit-rf: import fails: AttributeError: module 'collections' has no attribute 'Sequence' #1032392
- Package:
- python3-scikit-rf
- Source:
- python3-scikit-rf
- Submitter:
- s3v
- Date:
- 2023-04-08 06:21:03 UTC
- Severity:
- normal
- Tags:
Dear Maintainer, This import fails in a sid chroot: Python 3.11.2 (main, Feb 12 2023, 00:48:52) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/skrf/__init__.py", line 14, in <module> from . import frequency File "/usr/lib/python3/dist-packages/skrf/frequency.py", line 39, in <module> from .util import slice_domain,find_nearest_index File "/usr/lib/python3/dist-packages/skrf/util.py", line 289, in <module> class HomoList(collections.Sequence): ^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'collections' has no attribute 'Sequence' Kind Regards
Hello, I have attached a debdiff where I import the collections.abc python package which has the Sequence and MutableMapping attributes instead of collections. This patch is applied to the 0.15.4 upstream which is the current in debian. With this fix, the package builds and importing the skrf package in a python console works as expected. I can upload this RC bug fix as a NMU if you want. Thanks!
Uploaded Josef Schneider's NMU to DELAYED/2-day queue. Regards,
We believe that the bug you reported is fixed in the latest version of
scikit-rf, 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 1032392@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Josef Schneider <josef81sch@gmail.com> (supplier of updated scikit-rf 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 04 Apr 2023 19:53:06 +0200
Source: scikit-rf
Architecture: source
Version: 0.15.4-2.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>
Changed-By: Josef Schneider <josef81sch@gmail.com>
Closes: 1032392
Changes:
scikit-rf (0.15.4-2.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Add patch to import python package collections.abc instead of collections.
+ Fixes AttributeError when importing the package (Closes: #1032392).
Checksums-Sha1:
533dfdfab684094944908f03a634a0a31ce1edd9 2011 scikit-rf_0.15.4-2.1.dsc
672e1ed514848849d0a9a69ac44fa14f5a51f5a4 5012 scikit-rf_0.15.4-2.1.debian.tar.xz
3a4bc2f9c8a1c392a19596c883826ec2ed3d9840 6802 scikit-rf_0.15.4-2.1_amd64.buildinfo
Checksums-Sha256:
b200ad58fedaeb56b172f09da6622271e03ce2536ede69474acdb0a9fe1b95e9 2011 scikit-rf_0.15.4-2.1.dsc
317c9fc6bb99fbf020bb2d057a868f0e9d69cb88c7d87c411004838758abe1b8 5012 scikit-rf_0.15.4-2.1.debian.tar.xz
ba37dfda63ea6ef991509235a9eea49a165cfb5d9f61a37c0a464ec037610913 6802 scikit-rf_0.15.4-2.1_amd64.buildinfo
Files:
0223414eff7b7b38e15dbaa7147e0947 2011 python optional scikit-rf_0.15.4-2.1.dsc
4d51ee4bedd79963aa98d54e8f254fa9 5012 python optional scikit-rf_0.15.4-2.1.debian.tar.xz
3d671351954d9c29695fddb3445a18a7 6802 python optional scikit-rf_0.15.4-2.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEMsxJDlpwsj3Wqlqyouuu0bb5AkEFAmQuXKMACgkQouuu0bb5
AkEvaA/+PEs21pTaugu+dBe046z1I7x+5SUH0gLiYOgsI60BEnCbGvie/Nafssbn
SGth4yV32T4VSDBNfWojp/D2FxJpkLsLCxCIwpill3iZYn0Bu2/Cay/+X2I9n7v5
Y8/SlgpkoyWx0bFiPg3g/Bh/hwWcOd2sa52D+8FpC8BYisPpirx7tePut3GYHHx7
BMY8Ny0M5l9YomrL+I157LOmw13f8BCBUdZMfFJpkfvXKZrJKp+LbGlGdATRQPIj
S9eFwGbrzxqBgcVE0PNVLtMwtAewWimQxtCz4kg7yInT5PLQtbS2d3QWr5+efhc0
uU/Uu5AjULgJ6LdYuQANKXbLE9SspNVPu0P9Djyj6ixMjaYHtmOMvRzC8G/Hn0sz
3FIKMcaF+dCzMO+qH1M8SzOrGHf7ttOpbr6fqo0XoZu8VHTa0X/ELOyOAVvwURL1
Vg5OKeJuDH6kp6CM1nTKBjIo7dyET2OGxXSlkV5e9AJMA5H8rg5Lvki6V6aDxv7S
HDKbV54AeA3YS2oglCbGbsBGAXXgZMvsRsR7hJEXa3gJ3QZ2G7pm3MON5eb/qPOI
MPZ/H4DCCWQBvbMkq4VM19yMzoiAZ2GEn9GxhEbDJhRzmVDHM6yeI0UHF/JqWPBT
evFcUEhrJGXMTXwkrkfokIj1vv6jlMHBYgeqGtXtEPEAKyOygcw=
=I6g0
-----END PGP SIGNATURE-----