efb-wechat-slave
efb-wechat-slave copied to clipboard
收集网页版微信「未知错误提示」对应的现象
在这里统一收集一下网页版微信返回的「未知错误提示」和其对应的现象,以便更好的改进代码。
有发现错误代码可能导致的原因的,请在下方留言。
错误代码 | 可能的原因 |
---|---|
1100 | 掉线 [wxpy] |
1101 | 掉线 [ref. Mar. 2017, wxpy] |
1101 | ~~服务器抽风(临时)(#47)~~ |
1102 | 掉线 [wxpy] |
1204 | 操作对象不是好友 [wxpy] |
1205 | 操作频率过高 [wxpy] |
1 | ❓ 不明 (#40) |
1 | ~~Non-ASCII 文件名 (#49)~~ |
3 | ❓ 不明 (掉线?) |
-1 | ❓ 不明(未指定错误?) |
其他参照
1101
1102
1205
1
- May. 2019; May. 2019; May. 2019; Mar. 2019; Apr. 2019; Mar. 2019; Feb. 2019; Jul. 2019; Oct. 2019;
- Mar. 2019; Mar. 2019; July. 2018; Feb. 2018;
3
Apr. 2019; Feb. 2019; Dec, 2019; Jun. 2021;
-1
今天开始无法登录,收到
<error><ret>-1</ret><message></message></error>
已恢复
今天遇到了报告 -1 的情况,是在使用 Telegram 回复功能发现消息到一个群聊时发生的。 经测试,这个群聊于近日被修改过群聊名称,使用 /chat groupname 时输出了两个相同的群名称。而在微信网页版界面上搜索同样名称,只看到一个群名称。
我的 error -1 应该是微信客户端离线时间过长,打开上线即可,EFB 无需操作(重登等),之前不知道还 force logout 然后登录… —
@sd_agent
2020 年 1 月于支持群
有一种-1的情况是某个联系人或者群组很久没有发过消息,这时候从tg发消息会-1,在微信上发过一次消息之后就又好了 来源:
@Wolfsilver
2020 年 1 月于支持群
我今天也收到 -1 的情况了。绑定的一个群组,今天发消息发不过去了,但是收消息没问题。上一次发消息是前几天大更新之前的事儿。 来源:
@ryandesign
2020 年 1 月于支持群
错误3出现应该是,手机端wechat长时间没有在线导致的web端wechat冻结或者掉线,重新打开一下手机端wechat就好了
添加一个-1的情况。新设立的群组,别人发言了,我没在其中发言,尽管能收到消息,但发消息会得到错误码-1。
我这里微信手机客户端再次上线后问题就会解决,下线一段时间有几率复现
发送动态贴纸时出现错误代码 1
发图片总出现-1错误
今天遇到了一个 -1 错误,出现在发送了一个12MB的doc文档的时候,看起来稍微大一点就会这样,小的比如1~2M的没问题
会话绑定到群组后发言必然-1
会话绑定到群组后发言-1错误,不过其他的群组没问题,不知道原因
@2591014574 会话绑定到群组后发言-1错误,不过其他的群组没问题,不知道原因
如果反复绑定解绑可以复现这个问题的话,希望能提供一下整个过程的 verbose 日志,谢谢。
r_msg) efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: -1; err_msg:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/master_message.py", line 393, in process_telegram_message
slave_msg = coordinator.send_message(m)
File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/coordinator.py", line 113, in send_message
return slaves[msg.deliver_to.channel_id].send_message(msg)
File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/init.py", line 399, in send_message
r.append(self._bot_send_msg(chat, msg.text))
File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/init.py", line 722, in _bot_send_msg
.format(code=e.err_code, message=e.err_msg)) ehforwarderbot.exceptions.EFBMessageError: Error from Web WeChat while sending message: [-1] This is an unknown error from Web WeChat which we know nothing about why this is happening. If you have seen a pattern or if you happen to know the reason for this error code, please leave a comment at https://ews.1a23.studio/issues/55 .
这个日志可以吗?
@2591014574
希望能提供下从「绑定前消息成功发出」到「绑定后报错」整个过程的完整 verbose 日志,谢谢。
报错3,使用Ubuntu搭建,重新打开一遍手机微信就可以重新连接,关闭微信一两天就会掉线,有解决办法吗
-1我自己测试了一下,只有给自己发消息的时候会出现,给别人发消息没问题
Message is not sent.
未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: chat.mark_as_read()
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: ret = func(*args, **kwargs)
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return req.request('POST')
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return do()
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: smart_map(check_response_body, ret)
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return func(i, *args, **kwargs)
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: raise ResponseError(err_code=err_code, err_msg=err_msg)
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1; err_msg:
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: 2021-09-23 21:16:49,668 [ERROR]: efb_telegram_master.master_message (master_message.process_telegram_message; master_message.py:407)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Message is not sent. (update: {'update_id': 103530878, 'message': {'new_chat_members': [], 'message_id': 36576, 'supergroup_chat_created': False, 'caption_entities': [], 'chat': {'id': -556416381, 'all_members_are_administrators': True, 'type': 'group', 'title': 'testtt'}, 'date': 1632402998, 'entities': [], 'channel_chat_created': False, 'delete_chat_photo': False, 'photo': [{'height': 26, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADcwADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ4', 'width': 90, 'file_size': 876}, {'height': 94, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADbQADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZy', 'width': 320, 'file_size': 13377}, {'height': 235, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADeAADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ9', 'width': 800, 'file_size': 49056}, {'height': 376, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADeQADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ-', 'width': 1280, 'file_size': 81852}], 'new_chat_photo': [], 'group_chat_created': False, 'from': {'first_name': '火星人', 'is_bot': False, 'language_code': 'zh-hans', 'username': 'xxujysgy', 'id': 459180484}}}, exception: 未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Traceback (most recent call last):
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 734, in _bot_send_image
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return chat.send_image(filename, file=file)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 54, in wrapped
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: ret = do_send()
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: smart_map(check_response_body, ret)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return func(i, *args, **kwargs)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: raise ResponseError(err_code=err_code, err_msg=err_msg)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: -1; err_msg:
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: During handling of the above exception, another exception occurred:
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Traceback (most recent call last):
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_telegram_master/master_message.py", line 393, in process_telegram_message
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: slave_msg = coordinator.send_message(m)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/ehforwarderbot/coordinator.py", line 113, in send_message
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return slaves[msg.deliver_to.channel_id].send_message(msg)
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 471, in send_message
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: r.append(self._bot_send_image(chat, filename, file))
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 737, in _bot_send_image
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: raise EFBMessageError(self._("Error from Web WeChat while sending image: [{code}] {message}")
9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: ehforwarderbot.exceptions.EFBMessageError: 未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。
Message is not sent.
未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。
9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: chat.mark_as_read() 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: ret = func(*args, **kwargs) 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return req.request('POST') 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return do() 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: smart_map(check_response_body, ret) 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: return func(i, *args, **kwargs) 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: raise ResponseError(err_code=err_code, err_msg=err_msg) 9月 23 21:16:47 Aliyun-ArchLinux python3[28240]: efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1; err_msg: 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: 2021-09-23 21:16:49,668 [ERROR]: efb_telegram_master.master_message (master_message.process_telegram_message; master_message.py:407) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Message is not sent. (update: {'update_id': 103530878, 'message': {'new_chat_members': [], 'message_id': 36576, 'supergroup_chat_created': False, 'caption_entities': [], 'chat': {'id': -556416381, 'all_members_are_administrators': True, 'type': 'group', 'title': 'testtt'}, 'date': 1632402998, 'entities': [], 'channel_chat_created': False, 'delete_chat_photo': False, 'photo': [{'height': 26, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADcwADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ4', 'width': 90, 'file_size': 876}, {'height': 94, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADbQADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZy', 'width': 320, 'file_size': 13377}, {'height': 235, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADeAADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ9', 'width': 800, 'file_size': 49056}, {'height': 376, 'file_id': 'AgACAgUAAxkBAAKO4GFMfjZuDaKzFCdjJY-Jb9No4fVdAAKUrjEbQGhpVhjO0py3Q46FAQADAgADeQADIQQ', 'file_unique_id': 'AQADlK4xG0BoaVZ-', 'width': 1280, 'file_size': 81852}], 'new_chat_photo': [], 'group_chat_created': False, 'from': {'first_name': '火星人', 'is_bot': False, 'language_code': 'zh-hans', 'username': 'xxujysgy', 'id': 459180484}}}, exception: 未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Traceback (most recent call last): 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 734, in _bot_send_image 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return chat.send_image(filename, file=file) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 54, in wrapped 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: ret = do_send() 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: smart_map(check_response_body, ret) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return func(i, *args, **kwargs) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: raise ResponseError(err_code=err_code, err_msg=err_msg) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: -1; err_msg: 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: During handling of the above exception, another exception occurred: 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: Traceback (most recent call last): 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_telegram_master/master_message.py", line 393, in process_telegram_message 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: slave_msg = coordinator.send_message(m) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/ehforwarderbot/coordinator.py", line 113, in send_message 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: return slaves[msg.deliver_to.channel_id].send_message(msg) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 471, in send_message 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: r.append(self._bot_send_image(chat, filename, file)) 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: File "/home/junyi/.local/lib/python3.9/site-packages/efb_wechat_slave/__init__.py", line 737, in _bot_send_image 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: raise EFBMessageError(self._("Error from Web WeChat while sending image: [{code}] {message}") 9月 23 21:16:49 Aliyun-ArchLinux python3[28240]: ehforwarderbot.exceptions.EFBMessageError: 未能发送图片。来自网页版微信的错误提示:[-1] 这是一个来自网页版微信的未知错误,我们该错误的成因一无所知。如果您有发现相关规律,或了解这个错误的原因。请您前往 https://ews.1a23.studio/issues/55 进行反馈。
从手机微信客户端发送消息,从 tg 的微信机器人弹出
重新绑定后解决
根据这段时间的使用经验,Error [-1] 的出现大多数时候伴随重新登录行为,并且在私聊和群聊中都可能出现,使用 /unlink_all
并重新绑定对应会话即可恢复,无需打开微信客户端。
我认为重新登录期间活跃的会话把冷却的挤掉了,可能是web端会话列表刷新有限制或者ews的会话绑定机制有缺陷。
[-1] This is an unknown error,我出现问题的时候好像是因为我微信的好友里,有两个人的名字都是一样的
无法绑定会话到群组,绑定的时候出错了
Message is not sent.
Error from Web WeChat while sending message: [1201] This is an unknown error from Web WeChat which we know nothing about why this is happening. If you have seen a pattern or if you happen to know the reason for this error code, please leave a comment at https://ews.1a23.studio/issues/55 .
如果向接口测试公众号发消息会出现-1错误
救命,一输ehforwarderbot就报错咋整
Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 8, in <module> sys.exit(main()) File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/__main__.py", line 330, in main conf = config.load_config() File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/config.py", line 45, in load_config channel = utils.locate_module(data['master_channel'], 'master') File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/utils.py", line 145, in locate_module return i.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/ubuntu/.local/lib/python3.6/site-packages/efb_telegram_master/__init__.py", line 18, in <module> from telegram.ext import CommandHandler, CallbackQueryHandler, CallbackContext, Filters File "/usr/local/lib/python3.6/dist-packages/telegram/ext/__init__.py", line 31, in <module> from .updater import Updater File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 55, in <module> class Updater(Generic[CCT, UD, CD, BD]): File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 198, in Updater dispatcher: Dispatcher[CCT, UD, CD, BD] = None, File "/usr/lib/python3.6/typing.py", line 682, in inner return func(*args, **kwds) File "/usr/lib/python3.6/typing.py", line 1143, in __getitem__ orig_bases=self.__orig_bases__) File "/usr/lib/python3.6/typing.py", line 978, in __new__ self = super().__new__(cls, name, bases, namespace, _root=True) File "/usr/lib/python3.6/typing.py", line 137, in __new__ return super().__new__(cls, name, bases, namespace) File "/usr/lib/python3.6/abc.py", line 133, in __new__ cls = super().__new__(mcls, name, bases, namespace, **kwargs) TypeError: __dict__ slot disallowed: we already got on
救命,一输ehforwarderbot就报错咋整
Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 8, in <module> sys.exit(main()) File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/__main__.py", line 330, in main conf = config.load_config() File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/config.py", line 45, in load_config channel = utils.locate_module(data['master_channel'], 'master') File "/home/ubuntu/.local/lib/python3.6/site-packages/ehforwarderbot/utils.py", line 145, in locate_module return i.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/ubuntu/.local/lib/python3.6/site-packages/efb_telegram_master/__init__.py", line 18, in <module> from telegram.ext import CommandHandler, CallbackQueryHandler, CallbackContext, Filters File "/usr/local/lib/python3.6/dist-packages/telegram/ext/__init__.py", line 31, in <module> from .updater import Updater File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 55, in <module> class Updater(Generic[CCT, UD, CD, BD]): File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 198, in Updater dispatcher: Dispatcher[CCT, UD, CD, BD] = None, File "/usr/lib/python3.6/typing.py", line 682, in inner return func(*args, **kwds) File "/usr/lib/python3.6/typing.py", line 1143, in __getitem__ orig_bases=self.__orig_bases__) File "/usr/lib/python3.6/typing.py", line 978, in __new__ self = super().__new__(cls, name, bases, namespace, _root=True) File "/usr/lib/python3.6/typing.py", line 137, in __new__ return super().__new__(cls, name, bases, namespace) File "/usr/lib/python3.6/abc.py", line 133, in __new__ cls = super().__new__(mcls, name, bases, namespace, **kwargs) TypeError: __dict__ slot disallowed: we already got on
更新后,遇到了同样的问题。
@TwoZz 把 python 版本从 3.6 升级到 3.8 后,问题解决