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

ImportError on python 3.10 #7

Open
reallyimeric opened this issue May 15, 2022 · 0 comments
Open

ImportError on python 3.10 #7

reallyimeric opened this issue May 15, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@reallyimeric
Copy link

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
@reallyimeric reallyimeric added the bug Something isn't working label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants