@MrXiaoM 有教程吗
YoakeAki 发布的帖子
-
RE: 从外部导入词库,可在群内管理(自定义回复)
[31m2023-01-14 22:16:05 - ERROR [0m
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 666, in await_impl
await protocol.handshake(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 332, in handshake
raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 404During handling of the above exception, another exception occurred:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 490, in wait_for
return fut.result()
asyncio.exceptions.CancelledErrorThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\wReply-master\main.py", line 631, in <module>
bot.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 199, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 276, in run
asyncio.run(self._run())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 240, in _run
await self.startup()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 228, in startup
await asyncio.gather(*coros)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 137, in startup
await self._adapter.login(self.qq)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\base.py", line 35, in wrapped
return await func(self, *args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 187, in login
self.connection = await connect(self.host_name, extra_headers=headers)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 492, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
新问题 -
RE: 从外部导入词库,可在群内管理(自定义回复)
C:\Users\Administrator\Desktop\wReply-master>superDict.py
C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\openpyxl\reader\workbook.py:88: UserWarning: File contains an invalid specification for 词库. This will be removed
warn(msg)
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\wReply-master\superDict.py", line 78, in <module>
importDict(1)
File "C:\Users\Administrator\Desktop\wReply-master\superDict.py", line 19, in importDict
rows_data = list(sheet.rows)
AttributeError: 'NoneType' object has no attribute 'rows'
修改词库时遇到的问题 -
RE: 从外部导入词库,可在群内管理(自定义回复)
C:\Users\Administrator\Desktop\wReply-master>main.py
C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
已读取字典
已读取模糊匹配字典
已读取信任用户
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\wReply-master\main.py", line 631, in <module>
bot.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 199, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 257, in run
if not asgi_serve(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\asgi.py", line 205, in asgi_serve
run(app, host=host, port=port, debug=True, **kwargs)
TypeError: run() got an unexpected keyword argument 'debug'
一运行程序出现这个就闪退 -
RE: Meme Helper 表情包生成器,游戏王,幻影坦克,支持Termux
java.io.FileNotFoundException: .\source\mold\frame\monster_xg.jpg (系统找不到指定的路径。) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:216) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at kotlin.io.FilesKt__FileReadWriteKt.readBytes(FileReadWrite.kt:63) at meme-helper-1.1.6.mirai2.jar//xyz.cssxsh.mirai.meme.YgoCard.render(YgoCard.kt:202) at meme-helper-1.1.6.mirai2.jar//xyz.cssxsh.mirai.meme.YgoCard.render$default(YgoCard.kt:185) at meme-helper-1.1.6.mirai2.jar//xyz.cssxsh.mirai.meme.impl.MemeYgo.replier(MemeYgo.kt:159) at meme-helper-1.1.6.mirai2.jar//xyz.cssxsh.mirai.meme.impl.MemeYgo$replier$1.invokeSuspend(MemeYgo.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)