zhayujie / bot-on-anything

Connect AI models (like ChatGPT-3.5/4.0, Baidu Yiyan, New Bing, Bard) to apps (like Wechat, public account, DingTalk, Telegram, QQ). 将 ChatGPT、必应、文心一言、谷歌Bard 等对话模型连接各类应用,如微信、公众号、QQ、Telegram、Gmail、Slack、Web、企业微信、飞书、钉钉等。
MIT License
3.81k stars 896 forks source link

使用企业微信提示 No module named 'wechatpy'无法解决 #407

Closed gongxianhui0 closed 1 year ago

gongxianhui0 commented 1 year ago

如题 [INFO][2023-06-01 14:44:49][plugin_registry.py:23] - Plugin Selector_v0.1 registered [INFO][2023-06-01 14:44:49][log.py:32] - [Selector] inited [INFO][2023-06-01 14:44:50][plugin_registry.py:23] - Plugin CreateImg_v0.1 registered Load config success [INFO][2023-06-01 14:44:50][log.py:34] - [MultiChannel] Start up chatgpt on wechat_com [ERROR][2023-06-01 14:44:50][log.py:47] - [MultiChannel] Start up failed on wechat_com: No module named 'wechatpy' [ERROR][2023-06-01 14:44:50][log.py:45] - App startup failed! [ERROR][2023-06-01 14:44:50][log.py:50] - No module named 'wechatpy' Traceback (most recent call last): File "app.py", line 42, in main start_process(channel_type[0], args.config) File "app.py", line 23, in start_process raise e File "app.py", line 19, in start_process channel = channel_factory.create_channel(channel_type) File "/home/gongxianhui/openai/bot-on-anything/channel/channel_factory.py", line 29, in create_channel from channel.wechat.wechat_com_channel import WechatEnterpriseChannel File "/home/gongxianhui/openai/bot-on-anything/channel/wechat/wechat_com_channel.py", line 16, in from wechatpy.enterprise.crypto import WeChatCrypto ModuleNotFoundError: No module named 'wechatpy' 然后根据其他人的经验 pip3 install wehcatpy -U 提示 ERROR: Could not find a version that satisfies the requirement wehcatpy (from versions: none) ERROR: No matching distribution found for wehcatpy 再然后我根据其他帖子修改requirements.txt openai EdgeGPT requests discord.py>=2.0.0 discord.py>=2.0.0 wechatpy cryptography 没有效果,请给我一个解决办法。