Skip to content

ImportError on python 3.10 #7

@reallyimeric

Description

@reallyimeric

Describe the bug
Cannot import the module on python 3.10

To Reproduce
Steps to reproduce the behavior:

  1. from mirai_core import Bot, Updater
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

...
May 15 13:17:07 host ehforwarderbot[234313]:   File "/var/lib/efb/.local/lib/python3.10/site-packages/efb_qq_plugin_mirai/mirai.py", line 16, in <module>
May 15 13:17:07 host ehforwarderbot[234313]:     from mirai_core import Bot, Updater
May 15 13:17:07 host ehforwarderbot[234313]:   File "/var/lib/efb/.local/lib/python3.10/site-packages/mirai_core/__init__.py", line 1, in <module>
May 15 13:17:07 host ehforwarderbot[234313]:     from .bot import Bot
May 15 13:17:07 host ehforwarderbot[234313]:   File "/var/lib/efb/.local/lib/python3.10/site-packages/mirai_core/bot.py", line 9, in <module>
May 15 13:17:07 host ehforwarderbot[234313]:     from .models.Types import NewFriendRequestResponse, MemberJoinRequestResponse
May 15 13:17:07 host ehforwarderbot[234313]:   File "/var/lib/efb/.local/lib/python3.10/site-packages/mirai_core/models/__init__.py", line 1, in <module>
May 15 13:17:07 host ehforwarderbot[234313]:     from . import Message
May 15 13:17:07 host ehforwarderbot[234313]:   File "/var/lib/efb/.local/lib/python3.10/site-packages/mirai_core/models/Message.py", line 7, in <module>
May 15 13:17:07 host ehforwarderbot[234313]:     from collections import MutableSequence
May 15 13:17:07 host ehforwarderbot[234313]: ImportError: cannot import name 'MutableSequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
May 15 13:17:07 host ehforwarderbot[234313]: During handling of the above exception, another exception occurred:
May 15 13:17:07 host ehforwarderbot[234313]: Traceback (most recent call last):
...

Version:

  • Mirai Core 2.10.3
  • Mirai HTTP API 2.5.0
  • python_mirai_core 0.10.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions