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

update telethon version for python 3.10 #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Split174
Copy link

Doesn't work with interpreter version 3.10.
The following error occurs:

Try to load exporter 'text.py'... OK!
INFO:Initializing session...
Traceback (most recent call last):
File "/home/asd/project/asd/venv/bin/telegram-messages-dump", line 8, in
sys.exit(main())
File "/home/asd/project/asd/venv/lib/python3.10/site-packages/telegram_messages_dump/run.py", line 61, in main
sys.exit(TelegramDumper(os.path.basename(file), settings, metadata, exporter).run())
File "/home/asd/project/asd/venv/lib/python3.10/site-packages/telegram_messages_dump/telegram_dumper.py", line 36, in init
super().init(session_user_id,
File "/home/asd/project/asd/venv/lib/python3.10/site-packages/telethon/client/telegrambaseclient.py", line 272, in init
self._sender = MTProtoSender(
File "/home/asd/project/asd/venv/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 97, in init
self._send_queue = MessagePacker(self._state, self._loop,
File "/home/asd/project/asd/venv/lib/python3.10/site-packages/telethon/extensions/messagepacker.py", line 29, in init
self._ready = asyncio.Event(loop=loop)
File "/usr/lib/python3.10/asyncio/locks.py", line 168, in init
super().init(loop=loop)
File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in init
raise TypeError(
TypeError: As of 3.10, the loop parameter was removed from Event() since it is no longer necessary

To solve the problem, you need to update the version of telethon

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

Successfully merging this pull request may close these issues.

1 participant