python3-scikit-rf module in Universe can't be loaded with Python >=3.10

Bug #1974482 reported by Dustin Widmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scikit-rf (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu release affected: 22.04 (Jammy)
package: python3-scikit-rf
repository: Universe
version: 0.15.4-2

What Happens:
$ python3
Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import skrf
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'

Importing collections.Sequence was apparently deprecated in Python 3.7. It's worth noting that release 0.15.4 of scikit-rf is a couple of years old already, upstream version is 0.22.1. It would be ideal if this could be upgraded or at least patched (can just "sed -E 's#collections[.](.*)#collections.abc.\1#' -i utils.py") so that the version in the repo will work with Ubuntu 22.04's version of Python without modification.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.