Created attachment 229649 [details] Upgrading to limnoria-2021.10.09 irc/py-limnoria-2019.09.08 fails to run on Python 3.10 since collections.MutableMapping is moved to collections.abc.MutableMapping. [sgs@SagaBOX ~]$ supybot -h Traceback (most recent call last): File "/usr/local/bin/supybot", line 37, in <module> import supybot File "/usr/local/lib/python3.10/site-packages/supybot/__init__.py", line 37, in <module> from . import utils File "/usr/local/lib/python3.10/site-packages/supybot/utils/__init__.py", line 64, in <module> from .gen import * File "/usr/local/lib/python3.10/site-packages/supybot/utils/gen.py", line 44, in <module> from .str import format File "/usr/local/lib/python3.10/site-packages/supybot/utils/str.py", line 44, in <module> from .structures import TwoWayDictionary File "/usr/local/lib/python3.10/site-packages/supybot/utils/structures.py", line 430, in <module> class CacheDict(collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping' Upgrading to a newer version seems to fix that issue.
First commit should be fixing USES=python:<version-spec> to -3.9 and merged to quarterly, prior to version update Thank you for the report and patch Simeon
Created attachment 229651 [details] Initial commit Initial commit
poudriere testport passes for Python 3.8 and 3.9 on amd64
Thank you for testing Simeon!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=44058fa9c71b7d9243a208d2d3ec8b8073686d57 commit 44058fa9c71b7d9243a208d2d3ec8b8073686d57 Author: Simeon Simeonov <sgs@pichove.org> AuthorDate: 2021-12-01 09:02:37 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2021-12-01 09:02:37 +0000 irc/py-limnoria: Mark as not compatible with Python 3.10+ Since Python 3.10 the method "collections.MutableMapping" has been renamed to "collections.abc.MutableMapping" which leads to run time errors: [..] class CacheDict(collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping' [..] PR: 259979 Reviewed by: koobs (maintainer) Approved by: portmgr (blanket) MFH: 2021Q4 irc/py-limnoria/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fb9df1c7afb68cfe119626eb5961cc2a1a4ffbd1 commit fb9df1c7afb68cfe119626eb5961cc2a1a4ffbd1 Author: Simeon Simeonov <sgs@pichove.org> AuthorDate: 2021-12-01 09:02:37 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2021-12-01 09:20:20 +0000 irc/py-limnoria: Mark as not compatible with Python 3.10+ Since Python 3.10 the method "collections.MutableMapping" has been renamed to "collections.abc.MutableMapping" which leads to run time errors: [..] class CacheDict(collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping' [..] PR: 259979 Reviewed by: koobs (maintainer) Approved by: portmgr (blanket) MFH: 2021Q4 (cherry picked from commit 44058fa9c71b7d9243a208d2d3ec8b8073686d57) irc/py-limnoria/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Committed to head and MFH'ed to the 2021Q4 branch, thanks for the patch!
(In reply to commit-hook from comment #6) Thank you!