This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'
Type: crash Stage: resolved
Components: Library (Lib) Versions: Python 3.10
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: dafu-wu, kumaraditya
Priority: normal Keywords:

Created on 2021-12-23 07:01 by dafu-wu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg409068 - (view) Author: dafu-wu (dafu-wu) Date: 2021-12-23 07:01
Traceback (most recent call last):
  File "/Users/jackwu/zhiyun/mygit/webgw/manage.py", line 5, in <module>
    from webgw.settings import DEBUG
  File "/Users/jackwu/zhiyun/mygit/webgw/webgw/__init__.py", line 1, in <module>
    from .app import app
  File "/Users/jackwu/zhiyun/mygit/webgw/webgw/app.py", line 14, in <module>
    from .route_config import Route
  File "/Users/jackwu/zhiyun/mygit/webgw/webgw/route_config.py", line 4, in <module>
    from IPy import IP
  File "/Users/jackwu/zhiyun/mygit/webgw/venv/zhiyun/mygit/my_venv/lib/python3.10/site-packages/IPy.py", line 1025, in <module>
    class IPSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

I'm not sure it's a bug, could someone look at it for me?
msg409070 - (view) Author: Kumar Aditya (kumaraditya) * (Python triager) Date: 2021-12-23 08:34
In Python 3.10 these deprecated aliases where removed from collections module.
To fix it you can change `collections.MutableSet` to `collections.abc.MutableSet`.

See https://docs.python.org/3/whatsnew/3.9.html#you-should-check-for-deprecationwarning-in-your-code
msg409097 - (view) Author: dafu-wu (dafu-wu) Date: 2021-12-23 17:02
Many thanks,You help me to solve the problem!
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90318
2021-12-23 17:02:50dafu-wusetmessages: + msg409097
2021-12-23 08:42:51serhiy.storchakasetstatus: open -> closed
resolution: third party
stage: resolved
2021-12-23 08:34:01kumaradityasetnosy: + kumaraditya
messages: + msg409070
2021-12-23 07:01:38dafu-wucreate