Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I get:
- Traceback (most recent call last):
- File "bot.py", line 64, in <module>
- with bot:
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/helpers.py", line 219, in _sync_enter
- return loop.run_until_complete(self.aenter())
- File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
- return future.result()
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/client/auth.py", line 656, in aenter
- return await self.start()
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/client/auth.py", line 135, in _start
- await self.connect()
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/client/telegrambaseclient.py", line 549, in connect
- self.session.auth_key = self._sender.auth_key
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/sessions/sqlite.py", line 180, in auth_key
- self._update_session_table()
- File "/home/alex/.local/lib/python3.8/site-packages/telethon/sessions/sqlite.py", line 194, in _update_session_table
- c.execute('delete from sessions')
- sqlite3.OperationalError: database is locked
- Task was destroyed but it is pending!
- task: <Task pending name='Task-3' coro=<Connection._send_loop() running at /home/alex/.local/lib/python3.8/site-packages/telethon/network/connection/connection.py:313> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f1b47171370>()]>>
- Task was destroyed but it is pending!
- task: <Task pending name='Task-4' coro=<Connection._recv_loop() running at /home/alex/.local/lib/python3.8/site-packages/telethon/network/connection/connection.py:332> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f1b47171460>()]>>
- Task was destroyed but it is pending!
- task: <Task pending name='Task-5' coro=<MTProtoSender._send_loop() running at /home/alex/.local/lib/python3.8/site-packages/telethon/network/mtprotosender.py:462> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f1b47171550>()]>>
- Task was destroyed but it is pending!
- task: <Task pending name='Task-6' coro=<MTProtoSender._recv_loop() running at /home/alex/.local/lib/python3.8/site-packages/telethon/network/mtprotosender.py:505> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f1b47171580>()]>>
- Exception ignored in: <coroutine object Connection._recv_loop at 0x7f1b47175240>
- RuntimeError: coroutine ignored GeneratorExit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement