XTxiaoting14332 / nonebot-plugin-chatglm-plus

人性化的ChatGLM插件,使用智谱API-key 支持上下文
GNU General Public License v3.0
8 stars 2 forks source link

不能正常使用 #7

Closed Cherryluoying closed 5 months ago

Cherryluoying commented 5 months ago

06-22 20:28:05 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_chatglm_plus, lineno=180) failed.Traceback (most recent call last): File "", line 15, in File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot__init__.py", line 335, in run get_driver().run(*args, *kwargs) File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run uvicorn.run( File "C:\Users\Administrator\nbbot.venv\lib\site-packages\uvicorn\main.py", line 577, in run server.run() File "C:\Users\Administrator\nbbot.venv\lib\site-packages\uvicorn\server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher await _run_matcher(

File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run await handler( File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot\dependencies__init.py", line 94, in call__ return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "C:\Users\Administrator\nbbot.venv\lib\site-packages\nonebot_plugin_chatglm_plus__init__.py", line 416, in _handle history = file.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 1873: illegal multibyte sequence

Cherryluoying commented 5 months ago

报错1:UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 1873: illegal multibyte sequence

Cherryluoying commented 5 months ago

报错2:UnicodeDecodeError: 'gbk' codec can't decode byte 0x8a in position 1873: illegal multibyte sequence

Cherryluoying commented 5 months ago

我自己修好了,等一会pr