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

Unexpected keyword argument 'loop' #43

Open
facundobianco opened this issue May 7, 2024 · 0 comments
Open

Unexpected keyword argument 'loop' #43

facundobianco opened this issue May 7, 2024 · 0 comments

Comments

@facundobianco
Copy link

Hi, I'm running it as

pip3 install telegram-messages-dump
telegram-messages-dump --chat="foo" -p +... -l 5

And got

Try to load exporter 'text.py'...  OK!
INFO:Initializing session...
Traceback (most recent call last):
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/bin/telegram-messages-dump", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/lib/python3.12/site-packages/telegram_messages_dump/run.py", line 61, in main
    sys.exit(TelegramDumper(os.path.basename(__file__), settings, metadata, exporter).run())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/lib/python3.12/site-packages/telegram_messages_dump/telegram_dumper.py", line 36, in __init__
    super().__init__(session_user_id,
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/lib/python3.12/site-packages/telethon/client/telegrambaseclient.py", line 272, in __init__
    self._sender = MTProtoSender(
                   ^^^^^^^^^^^^^^
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/lib/python3.12/site-packages/telethon/network/mtprotosender.py", line 97, in __init__
    self._send_queue = MessagePacker(self._state, self._loop,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/facundo/Developer/misc/telegram-messages-dump/venv/lib/python3.12/site-packages/telethon/extensions/messagepacker.py", line 29, in __init__
    self._ready = asyncio.Event(loop=loop)
                  ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Event.__init__() got an unexpected keyword argument 'loop'
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