python-tabulate
python-tabulate copied to clipboard
Incompatibility with Python 3.11
Version 0.9.0 is not compatible with Python 3.11. When importing the module the following stack trace is shown.
$ python3
Python 3.11.4 (main, Jun 28 2023, 19:51:46) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tabulate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/geert/.local/lib/python3.11/site-packages/tabulate.py", line 7, in <module>
from collections import namedtuple, Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib64/python3.11/collections/__init__.py)
As can be seen in the release notes, the Iterable abstract class was removed from collections:
- Remove deprecated aliases to Collections Abstract Base Classes from the collections module. (Contributed by Victor Stinner in bpo-37324.)
Should be already fixed, version from pip imports Iterable from collections.abc