zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT4.0/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
29.51k stars 7.81k forks source link

在wechaty 模式下 运行app.py 程序启动不报错、但是卡住不动 。不清楚具体原因 求帮助 谢谢 #1108

Open liuguangrui123 opened 1 year ago

liuguangrui123 commented 1 year ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

MacOS

运行的python版本是?

python 3.9

使用的chatgpt-on-wechat版本是?

Master (branch)

运行的channel类型是?

wxy(个人微信, wechaty)

复现步骤 🕹

是的

问题描述 😯

以下是程序运行的日志 程序每次启动 初始化运营都要2个小时 根本没有办法调试 不知道是因为什么原因、卡在这里很久才会继续运行。

终端日志 📒

hatgpt-tool-hub version: 0.4.3
[INFO][2023-05-16 23:09:37][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool
[INFO][2023-05-16 23:09:37][godcmd.py:181] - [Godcmd] 因未设置口令,本次的临时口令为2810。
[INFO][2023-05-16 23:09:37][godcmd.py:196] - [Godcmd] inited
[INFO][2023-05-16 23:09:37][keyword.py:40] - [keyword] {}
[INFO][2023-05-16 23:09:37][keyword.py:42] - [keyword] inited.
[INFO][2023-05-16 23:09:37][__init__.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'")
[INFO][2023-05-16 23:09:37][__init__.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'")
[WARNING][2023-05-16 23:09:37][chatgpt.py:171] - proxy no find, directly request to chatgpt instead
[WARNING][2023-05-16 23:09:37][chatgpt.py:171] - proxy no find, directly request to chatgpt instead
[INFO][2023-05-16 23:09:37][victorinox.py:86] - use_tools=['url-get', 'meteo-weather', 'python', 'terminal'], params: {'debug': False, 'openai_api_key': 'YOUR API KEY', 'open_ai_api_base': 'https://api.openai.com/v1', 'proxy': '', 'request_timeout': 120, 'model_name': 'gpt-3.5-turbo', 'no_default': False, 'top_k_results': 3, 'news_api_key': '', 'bing_subscription_key': '', 'google_api_key': '', 'google_cse_id': '', 'searx_search_host': '', 'wolfram_alpha_appid': '', 'morning_news_api_key': '', 'cuda_device': 'cpu', 'think_depth': 3, 'arxiv_summary': True, 'morning_news_use_llm': False}
[INFO][2023-05-16 23:09:37][tool.py:32] - [tool] inited
[INFO][2023-05-16 23:09:37][role.py:69] - [Role] inited
[INFO][2023-05-16 23:09:37][dungeon.py:56] - [Dungeon] inited
[INFO][2023-05-16 23:09:37][hello.py:23] - [Hello] inited
[INFO][2023-05-16 23:09:37][finish.py:23] - [Finish] inited
liuguangrui123 commented 1 year ago

INFO][2023-05-16 12:40:48][plugin_manager.py:47] - Plugin Hello_v0.1 registered, path=./plugins\hello [INFO][2023-05-16 12:40:48][plugin_manager.py:47] - Plugin Keyword_v0.1 registered, path=./plugins\keyword [INFO][2023-05-16 12:40:48][plugin_manager.py:47] - Plugin Role_v1.0 registered, path=./plugins\role [INFO][2023-05-16 12:40:48][plugin_manager.py:47] - Plugin tool_v0.4 registered, path=./plugins\tool [INFO][2023-05-16 12:40:48][godcmd.py:183] - [Godcmd] 因未设置口令,本次的临时口令为6519。 [INFO][2023-05-16 12:40:48][godcmd.py:200] - [Godcmd] inited [INFO][2023-05-16 12:40:48][keyword.py:40] - [keyword] {} [INFO][2023-05-16 12:40:48][keyword.py:42] - [keyword] inited. [INFO][2023-05-16 12:40:48][role.py:69] - [Role] inited [INFO][2023-05-16 12:40:48][dungeon.py:56] - [Dungeon] inited [INFO][2023-05-16 12:40:48][hello.py:23] - [Hello] inited [INFO][2023-05-16 12:40:48][finish.py:23] - [Finish] inited [INFO][2023-05-16 13:46:20][wechaty_channel.py:67] - [WX] login user=Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] message:Message#message_type_unspecified[🗣 Contact <安怡安> [INFO][2023-05-16 13:46:20][wechaty_channel.py:135] - rui before [WX] messa

每次启动都要话费 1个小时左右的时间

liuguangrui123 commented 1 year ago

登录的时候我在部署wechaty完成 遇到的这个问题 好像每次都扫码登录就不会遇到这个了

lczalh commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

lanvent commented 1 year ago

不太了解,可以去python-wechaty问下

liuguangrui123 commented 1 year ago

不太了解,可以去python-wechaty问下

因为我在部署wechaty网关的时候进行了登录、所在在启动app.py文件的时候就会出现这个问题

kxyzx commented 1 year ago

我也是 到这就不动了 服务无法访问 [INFO][2023-05-16 12:40:48][finish.py:23] - [Finish] inited

caizhuoyue77 commented 6 months ago

请问是如何变成wechaty模式的呀?

lczalh commented 6 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

SunnyScenery commented 4 months ago

wechatmp channel也遇到同样问题,卡死在这里,不够信息调试的

lczalh commented 4 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

bingjiw commented 3 months ago

[finish.py:23] - [Finish] inited

这个问题,后来是如何解决的?

bingjiw commented 3 months ago

前置确认

  • [x] 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • [x] 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

MacOS

运行的python版本是?

python 3.9

使用的chatgpt-on-wechat版本是?

Master (branch)

运行的channel类型是?

wxy(个人微信, wechaty)

复现步骤 🕹

是的

问题描述 😯

以下是程序运行的日志 程序每次启动 初始化运营都要2个小时 根本没有办法调试 不知道是因为什么原因、卡在这里很久才会继续运行。

终端日志 📒

hatgpt-tool-hub version: 0.4.3
[INFO][2023-05-16 23:09:37][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool
[INFO][2023-05-16 23:09:37][godcmd.py:181] - [Godcmd] 因未设置口令,本次的临时口令为2810。
[INFO][2023-05-16 23:09:37][godcmd.py:196] - [Godcmd] inited
[INFO][2023-05-16 23:09:37][keyword.py:40] - [keyword] {}
[INFO][2023-05-16 23:09:37][keyword.py:42] - [keyword] inited.
[INFO][2023-05-16 23:09:37][__init__.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'")
[INFO][2023-05-16 23:09:37][__init__.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'")
[WARNING][2023-05-16 23:09:37][chatgpt.py:171] - proxy no find, directly request to chatgpt instead
[WARNING][2023-05-16 23:09:37][chatgpt.py:171] - proxy no find, directly request to chatgpt instead
[INFO][2023-05-16 23:09:37][victorinox.py:86] - use_tools=['url-get', 'meteo-weather', 'python', 'terminal'], params: {'debug': False, 'openai_api_key': 'YOUR API KEY', 'open_ai_api_base': 'https://api.openai.com/v1', 'proxy': '', 'request_timeout': 120, 'model_name': 'gpt-3.5-turbo', 'no_default': False, 'top_k_results': 3, 'news_api_key': '', 'bing_subscription_key': '', 'google_api_key': '', 'google_cse_id': '', 'searx_search_host': '', 'wolfram_alpha_appid': '', 'morning_news_api_key': '', 'cuda_device': 'cpu', 'think_depth': 3, 'arxiv_summary': True, 'morning_news_use_llm': False}
[INFO][2023-05-16 23:09:37][tool.py:32] - [tool] inited
[INFO][2023-05-16 23:09:37][role.py:69] - [Role] inited
[INFO][2023-05-16 23:09:37][dungeon.py:56] - [Dungeon] inited
[INFO][2023-05-16 23:09:37][hello.py:23] - [Hello] inited
[INFO][2023-05-16 23:09:37][finish.py:23] - [Finish] inited

这个问题,后来如何解决的呀?

lczalh commented 3 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

7tinghua commented 2 months ago

wx 和 wxy 这两个channel 有什么区别啊?不都是个人微信吗?

finexss commented 2 months ago

python-wechaty 看下app.py的代码: if channel_name in ["wx", "wxy", "terminal", "wechatmp", "wechatmp_service", "wechatcom_app", "wework", const.FEISHU, const.DINGTALK]:

在config.json里: "channel_type": "wxy", 就可以了。