chatgpt-mirai-qq-bot
chatgpt-mirai-qq-bot copied to clipboard
[BUG]not enough values to unpack (expected 2, got 1)
ๆไบค issue ๅ๏ผ่ฏทๅ ็กฎ่ฎค๏ผ
- [โใ ๆๅทฒ็่ฟ FAQ๏ผๆญค้ฎ้ขไธๅจๅ่กจไธญ
- [โ ] ๆๅทฒ็่ฟๅ ถไป issue๏ผไปไปฌไธ่ฝ่งฃๅณๆ็้ฎ้ข
- [ โ] ๆ่ฎคไธบ่ฟไธๆฏ Mirai ๆ่ OpenAI ็ BUG
่กจ็ฐ
ๆ่ฟฐ BUG ็่กจ็ฐๆ
ๅต
่ฟ่ก็ฏๅข:
- ๆไฝ็ณป็ป๏ผwindows11
- Docker๏ผ ๏ผ
- ้กน็ฎ็ๆฌ๏ผ2.5.3
ๅค็ฐๆญฅ้ชค
ๆ่ฟฐไฝ ๆฏๅฆไฝ่งฆๅ่ฟไธช BUG ็
ๅๆขAIๆจกๅไธบbing็ๆถๅๅฐฑไผๆฅ้
ๆชๅพ
2023-08-10 23:52:51.606 | ERROR | universal:handle_message:295 - not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
File "D:\cq\chatgpt\bot.py", line 54, in
File "asyncio\base_events.py", line 640, in run_until_complete sock.setblocking(False)
File "asyncio\windows_events.py", line 321, in run_forever
File "asyncio\base_events.py", line 607, in run_forever sock.close()
File "asyncio\base_events.py", line 1922, in _run_once
File "asyncio\events.py", line 80, in _run self._loop = loop โ โ <member '_loop' of 'Handle' objects> โ <Handle Task.task_wakeup(<Future finished result=None>)>
File "D:\cq\chatgpt\platforms\onebot_bot.py", line 151, in _ await handle_message( โ <function handle_message at 0x00000174F48F0C20>
File "D:\cq\chatgpt\universal.py", line 269, in handle_message await action(session_id, message.strip(), conversation_context, respond) โ โ โ โ โ โ <function handle_message.
.respond at 0x00000174F48F3E20> โ โ โ โ โ None โ โ โ โ <method 'strip' of 'str' objects> โ โ โ 'ๅๆขAI slack-claude' โ โ 'friend-172735117' โ <function handle_message. .wrap_request. .call at 0x00000174F493C400>
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\concurrentlock.py", line 43, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\middleware.py", line 9, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\ratelimit.py", line 23, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\timeout.py", line 27, in handle_request
await asyncio.wait_for(coro_task, config.response.max_timeout)
โ โ โ โ โ โ 600.0
โ โ โ โ โ Response(mode='mixed', buffer_delay=15.0, default_ai='chatgpt-web', error_format='ๅบ็ฐๆ
้๏ผๅฆๆ่ฟไธช้ฎ้ขๆ็ปญๅบ็ฐ๏ผ่ฏทๅๆ่ฏดโ้็ฝฎไผ่ฏโ ๆฅๅผๅฏไธๆฎตๆฐ็ไผ่ฏ๏ผๆ่
ๅ้ โ...
โ โ โ โ Config(onebot=Onebot(manager_qq=172735117, reverse_ws_host='0.0.0.0', reverse_ws_port=8566), mirai=None, telegram=None, disco...
โ โ โ <Task finished name='Task-27' coro=<handle_message.
File "asyncio\tasks.py", line 479, in wait_for for f in todo:
File "D:\cq\chatgpt\universal.py", line 120, in request await conversation_handler.create( โ โ <function ConversationHandler.create at 0x00000174F48F0680> โ <conversation.ConversationHandler object at 0x00000174F42F2B90>
File "D:\cq\chatgpt\conversation.py", line 294, in create conversation = ConversationContext(_type, self.session_id) โ โ โ โ 'friend-172735117' โ โ โ <conversation.ConversationHandler object at 0x00000174F42F2B90> โ โ 'slack-claude' โ <class 'conversation.ConversationContext'>
File "D:\cq\chatgpt\conversation.py", line 122, in init self.drawing_adapter = BingAdapter(self.session_id, ConversationStyle.creative) โ โ โ โ โ โ โ <ConversationStyle.creative: ['nlu_direct_response_filter', 'deepleo', 'disable_emoji_spoken_text', 'responsible_ai_policy_23... โ โ โ โ โ โ <enum 'ConversationStyle'> โ โ โ โ โ 'friend-172735117' โ โ โ โ <conversation.ConversationContext object at 0x00000174F4927110> โ โ โ <class 'adapter.ms.bing.BingAdapter'> โ โ None โ <conversation.ConversationContext object at 0x00000174F4927110>
File "D:\cq\chatgpt\adapter\ms\bing.py", line 44, in init name, value = line.split("=", 1) โ โ <method 'split' of 'str' objects> โ 'ไฝ ็ Bing ่ดฆๅทไฟกๆฏ'
ValueError: not enough values to unpack (expected 2, got 1) 2023-08-10 23:52:51.650 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] ๅฐ่ฏๅ้ๆถๆฏ๏ผๅบ็ฐๆ ้๏ผๅฆๆ่ฟไธช้ฎ้ขๆ ็ปญๅบ็ฐ๏ผ่ฏทๅๆ่ฏดโ้็ฝฎไผ่ฏโ ๆฅๅผๅฏไธๆฎตๆฐ็ไผ่ฏ๏ผๆ่ ๅ้ โๅๆปไผ่ฏโ ๆฅๅๆบฏๅฐไธไธๆกๅฏน่ฏ๏ผไฝ ไธไธๆก่ฏด็ๆๅฐฑๅฝไฝๆฒก็่งใ not enough values to unpack (expected 2, got 1) 2023-08-10 23:52:58.422 | DEBUG | platforms.onebot_bot:_:148 - ็ง่ๆถๆฏ๏ผๅๆขAI bing 2023-08-10 23:52:58.423 | DEBUG | middlewares.concurrentlock:handle_request:25 - [Concurrent] ไฝฟ็จ Adapter ๅ ้จ็ Queue 2023-08-10 23:52:58.425 | DEBUG | middlewares.concurrentlock:handle_request:27 - [Concurrent] ๆ้ไธญ๏ผๅ้ข่ฟๆ 0 ไธชไบบ๏ผ 2023-08-10 23:52:58.426 | DEBUG | middlewares.concurrentlock:handle_request:40 - [Concurrent] ๆ้ไธญ๏ผๅ้ข่ฟๆ 0 ไธชไบบ๏ผ 2023-08-10 23:52:58.426 | DEBUG | middlewares.concurrentlock:handle_request:42 - [Concurrent] ๆๅฐไบ๏ผ 2023-08-10 23:52:58.427 | DEBUG | middlewares.timeout:create_timeout_task:55 - [Timeout] ๅผๅง่ฎกๆถโฆโฆ 2023-08-10 23:52:59.136 | ERROR | universal:handle_message:295 - not enough values to unpack (expected 2, got 1) Traceback (most recent call last):
File "D:\cq\chatgpt\bot.py", line 54, in
File "asyncio\base_events.py", line 640, in run_until_complete sock.setblocking(False)
File "asyncio\windows_events.py", line 321, in run_forever
File "asyncio\base_events.py", line 607, in run_forever sock.close()
File "asyncio\base_events.py", line 1922, in _run_once
File "asyncio\events.py", line 80, in _run self._loop = loop โ โ <member '_loop' of 'Handle' objects> โ <Handle Task.task_wakeup(<Future finished result=None>)>
File "D:\cq\chatgpt\platforms\onebot_bot.py", line 151, in _ await handle_message( โ <function handle_message at 0x00000174F48F0C20>
File "D:\cq\chatgpt\universal.py", line 269, in handle_message await action(session_id, message.strip(), conversation_context, respond) โ โ โ โ โ โ <function handle_message.
.respond at 0x00000174F493C4A0> โ โ โ โ โ None โ โ โ โ <method 'strip' of 'str' objects> โ โ โ 'ๅๆขAI bing' โ โ 'friend-172735117' โ <function handle_message. .wrap_request. .call at 0x00000174F493ED40>
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\concurrentlock.py", line 43, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\middleware.py", line 9, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\ratelimit.py", line 23, in handle_request
await action(session_id, prompt, conversation_context, respond)
โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
โ โ โ โ โ โ โ <function handle_message.
File "D:\cq\chatgpt\middlewares\timeout.py", line 27, in handle_request
await asyncio.wait_for(coro_task, config.response.max_timeout)
โ โ โ โ โ โ 600.0
โ โ โ โ โ Response(mode='mixed', buffer_delay=15.0, default_ai='chatgpt-web', error_format='ๅบ็ฐๆ
้๏ผๅฆๆ่ฟไธช้ฎ้ขๆ็ปญๅบ็ฐ๏ผ่ฏทๅๆ่ฏดโ้็ฝฎไผ่ฏโ ๆฅๅผๅฏไธๆฎตๆฐ็ไผ่ฏ๏ผๆ่
ๅ้ โ...
โ โ โ โ Config(onebot=Onebot(manager_qq=172735117, reverse_ws_host='0.0.0.0', reverse_ws_port=8566), mirai=None, telegram=None, disco...
โ โ โ <Task finished name='Task-39' coro=<handle_message.
File "asyncio\tasks.py", line 479, in wait_for for f in todo:
File "D:\cq\chatgpt\universal.py", line 120, in request await conversation_handler.create( โ โ <function ConversationHandler.create at 0x00000174F48F0680> โ <conversation.ConversationHandler object at 0x00000174F42F2B90>
File "D:\cq\chatgpt\conversation.py", line 294, in create conversation = ConversationContext(_type, self.session_id) โ โ โ โ 'friend-172735117' โ โ โ <conversation.ConversationHandler object at 0x00000174F42F2B90> โ โ 'bing' โ <class 'conversation.ConversationContext'>
File "D:\cq\chatgpt\conversation.py", line 122, in init self.drawing_adapter = BingAdapter(self.session_id, ConversationStyle.creative) โ โ โ โ โ โ โ <ConversationStyle.creative: ['nlu_direct_response_filter', 'deepleo', 'disable_emoji_spoken_text', 'responsible_ai_policy_23... โ โ โ โ โ โ <enum 'ConversationStyle'> โ โ โ โ โ 'friend-172735117' โ โ โ โ <conversation.ConversationContext object at 0x00000174F492B490> โ โ โ <class 'adapter.ms.bing.BingAdapter'> โ โ None โ <conversation.ConversationContext object at 0x00000174F492B490>
File "D:\cq\chatgpt\adapter\ms\bing.py", line 44, in init name, value = line.split("=", 1) โ โ <method 'split' of 'str' objects> โ 'ไฝ ็ Bing ่ดฆๅทไฟกๆฏ'
ValueError: not enough values to unpack (expected 2, got 1)
ไธๆ ท้ๅฐไบ่ฟไธช้ฎ้ข