Closed chanceyans closed 9 months ago
上面忘记 start posgresql.service 了
❯ python -m luoxu
[I 01-18 10:07:47.202 mtprotosender:228] Connecting to 149.154.175.58:443/TcpFull...
[I 01-18 10:07:47.202 mtprotosender:279] Connection to 149.154.175.58:443/TcpFull complete!
[I 01-18 10:07:49.612 __main__:182] init_group: '#archlinux-cn'
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/chanceyan/pyluoxu/luoxu/luoxu/__main__.py", line 202, in <module>
run_until_sigint(indexer.run())
File "/home/chanceyan/pyluoxu/luoxu/luoxu/util.py", line 27, in run_until_sigint
loop.run_until_complete(fu)
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/chanceyan/pyluoxu/luoxu/luoxu/__main__.py", line 128, in run
await self.run_on_connected(client, db, group_entities)
File "/home/chanceyan/pyluoxu/luoxu/luoxu/__main__.py", line 148, in run_on_connected
ginfo = await self.init_group(group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chanceyan/pyluoxu/luoxu/luoxu/__main__.py", line 182, in init_group
logger.info('init_group: %r', group.title)
^^^^^^^^^^^
AttributeError: 'User' object has no attribute 'title'
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-17' coro=<UpdateMethods._update_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/client/updates.py:452> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-18' coro=<UpdateMethods._keepalive_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/client/updates.py:486> wait_for=<Future pending cb=[Task.task_wakeup()]>>
sys:1: RuntimeWarning: coroutine 'GroupHistoryIndexer.run' was never awaited
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-15' coro=<MTProtoSender._send_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/mtprotosender.py:464> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-16' coro=<MTProtoSender._recv_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/mtprotosender.py:507> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-23' coro=<Queue.get() running at /usr/lib/python3.11/asyncio/queues.py:158> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.11/asyncio/tasks.py:431]>
Exception ignored in: <function StreamWriter.__del__ at 0x758312b0af20>
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/streams.py", line 395, in __del__
File "/usr/lib/python3.11/asyncio/streams.py", line 343, in close
File "/usr/lib/python3.11/asyncio/selector_events.py", line 860, in close
File "/usr/lib/python3.11/asyncio/base_events.py", line 761, in call_soon
File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
RuntimeError: Event loop is closed
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-13' coro=<Connection._send_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/connection/connection.py:316> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[E 01-18 10:07:49.661 base_events:1771] Task was destroyed but it is pending!
task: <Task pending name='Task-14' coro=<Connection._recv_loop() running at /home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/connection/connection.py:335> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[E 01-18 10:07:49.661 mtprotosender:523] Unhandled error while receiving data
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/queues.py", line 158, in get
await getter
GeneratorExit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/mtprotosender.py", line 507, in _recv_loop
body = await self._connection.recv()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/connection/connection.py", line 302, in recv
result, err = await self._recv_queue.get()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/queues.py", line 160, in get
getter.cancel() # Just in case getter is not done yet.
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 761, in call_soon
self._check_closed()
File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <coroutine object Queue.get at 0x758311207220>
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/queues.py", line 160, in get
File "/usr/lib/python3.11/asyncio/base_events.py", line 761, in call_soon
File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
RuntimeError: Event loop is closed
[E 01-18 10:07:49.664 connection:324] Unexpected exception in the send loop
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/queues.py", line 158, in get
await getter
GeneratorExit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/chanceyan/pyluoxu/lib/python3.11/site-packages/telethon/network/connection/connection.py", line 316, in _send_loop
self._send(await self._send_queue.get())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/queues.py", line 160, in get
getter.cancel() # Just in case getter is not done yet.
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 761, in call_soon
self._check_closed()
File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <coroutine object Connection._send_loop at 0x758311206b20>
RuntimeError: coroutine ignored GeneratorExit
不要尝试索引私聊。
解决了,感谢
pacman -S opencc 1.1.7 在 venv里 pip 安装环境 postgresql 16.1 pgroonga 3.1.6-3 执行 python -m luoxu 报错如下