Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.10 support #99

Open
arekm opened this issue May 26, 2022 · 0 comments
Open

python 3.10 support #99

arekm opened this issue May 26, 2022 · 0 comments

Comments

@arekm
Copy link

arekm commented May 26, 2022

It's now in collections.abc as per https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping

    from pyxmpp2.message import Message
  File "/usr/share/python3.10/site-packages/pyxmpp2/message.py", line 29, in <module>
    from .stanza import Stanza
  File "/usr/share/python3.10/site-packages/pyxmpp2/stanza.py", line 34, in <module>
    from .stanzapayload import XMLPayload, payload_factory
  File "/usr/share/python3.10/site-packages/pyxmpp2/stanzapayload.py", line 24, in <module>
    from .interfaces import StanzaPayload
  File "/usr/share/python3.10/site-packages/pyxmpp2/interfaces.py", line 43, in <module>
    from .mainloop.interfaces import Event, QUIT, EventHandler, event_handler
  File "/usr/share/python3.10/site-packages/pyxmpp2/mainloop/__init__.py", line 27, in <module>
    from ..settings import XMPPSettings
  File "/usr/share/python3.10/site-packages/pyxmpp2/settings.py", line 43, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)

Same here:

    from pyxmpp2.client import Client
  File "/usr/share/python3.10/site-packages/pyxmpp2/client.py", line 68, in <module>
    from .roster import RosterClient
  File "/usr/share/python3.10/site-packages/pyxmpp2/roster.py", line 43, in <module>
    from collections import Sequence, Mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant