Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.py运行后没有二维码 #2535

Closed
2 tasks done
szhsjsu opened this issue Feb 26, 2025 · 5 comments
Closed
2 tasks done

app.py运行后没有二维码 #2535

szhsjsu opened this issue Feb 26, 2025 · 5 comments

Comments

@szhsjsu
Copy link

szhsjsu commented Feb 26, 2025

前置确认

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

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

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

操作系统类型?

MacOS

运行的python版本是?

python 3.8

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

Latest Release

运行的channel类型是?

other

复现步骤 🕹

No response

问题描述 😯

选的是飞书,config按照readme配置,出现一个80接口的地址就卡住了

终端日志 📒

[INFO][2025-02-26 14:54:23][config.py:224] - [Config] User datas loaded.
[INFO][2025-02-26 14:54:23][feishu_channel.py:39] - [FeiShu] app_id=xxxxxxxxxxxxxxxx
[INFO][2025-02-26 14:54:23][plugin_manager.py:50] - Loading plugins config...
[INFO][2025-02-26 14:54:23][plugin_manager.py:88] - Scaning plugins ...
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
/opt/anaconda3/envs/py38/lib/python3.8/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
chatgpt-tool-hub version: 0.5.0
[INFO][2025-02-26 14:54:23][plugin_manager.py:41] - Plugin tool_v0.5 registered, path=./plugins/tool
[INFO][2025-02-26 14:54:23][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为6930。
[INFO][2025-02-26 14:54:23][godcmd.py:210] - [Godcmd] inited
[INFO][2025-02-26 14:54:23][keyword.py:40] - [keyword] {}
[INFO][2025-02-26 14:54:23][keyword.py:42] - [keyword] inited.
[INFO][2025-02-26 14:54:23][linkai.py:35] - [LinkAI] inited, config={'group_app_map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}}
[INFO][2025-02-26 14:54:23][role.py:69] - [Role] inited
[INFO][2025-02-26 14:54:23][dungeon.py:56] - [Dungeon] inited
[INFO][2025-02-26 14:54:23][hello.py:38] - [Hello] inited
[INFO][2025-02-26 14:54:23][finish.py:23] - [Finish] inited
http://0.0.0.0:80/
@lanruixiang
Copy link

类似的问题

Alibaba Cloud Linux 3.2104 LTS 64位
python 3.8
Latest Release
企微自建应用

config 按照此处配置:https://docs.link-ai.tech/cow/multi-platform/wechat-com

[3] 9757
nohup: ignoring input and appending output to 'nohup.out'
[INFO][2025-02-26 22:54:16][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
[INFO][2025-02-26 22:54:16][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2025-02-26 22:54:16][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为3642。
[INFO][2025-02-26 22:54:16][godcmd.py:210] - [Godcmd] inited
[INFO][2025-02-26 22:54:16][keyword.py:40] - [keyword] {}
[INFO][2025-02-26 22:54:16][keyword.py:42] - [keyword] inited.
[INFO][2025-02-26 22:54:16][role.py:69] - [Role] inited
[INFO][2025-02-26 22:54:16][dungeon.py:56] - [Dungeon] inited
[INFO][2025-02-26 22:54:16][hello.py:38] - [Hello] inited
[INFO][2025-02-26 22:54:16][finish.py:23] - [Finish] inited
[INFO][2025-02-26 23:00:45][config.py:300] - [INIT] load config: {'channel_type': 'wechatcom_app', 'model': 'deepseek-chat', 'open_ai_api_base': 'https://api.deepseek.com/v1', 'open_ai_api_key': 'sk-*****7dd', 'temperature': 1.8, 'single_chat_reply_prefix': '', 'character_desc': '', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ALL_GROUP'], 'single_chat_prefix': [''], 'wechatcom_corp_id': '********', 'wechatcomapp_token': '********', 'wechatcomapp_secret': '********', 'wechatcomapp_agent_id': '********, 'wechatcomapp_aes_key': '********', 'wechatcomapp_port': 9898}
[INFO][2025-02-26 23:00:45][config.py:226] - [Config] User datas file not found, ignore.
************************
[INFO][2025-02-26 23:00:45][wechatcomapp_channel.py:39] - [wechatcom] init: corp_id: w********b0, secret: VU********72w, agent_id: 1000002, token: ********, aes_key: ********
[INFO][2025-02-26 23:00:45][plugin_manager.py:50] - Loading plugins config...
[INFO][2025-02-26 23:00:45][plugin_manager.py:88] - Scaning plugins ...
[INFO][2025-02-26 23:00:45][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
chatgpt-tool-hub version: 0.5.0
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin tool_v0.5 registered, path=./plugins/tool
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
[INFO][2025-02-26 23:00:46][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2025-02-26 23:00:46][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为5231。
[INFO][2025-02-26 23:00:46][godcmd.py:210] - [Godcmd] inited
[INFO][2025-02-26 23:00:46][keyword.py:40] - [keyword] {}
[INFO][2025-02-26 23:00:46][keyword.py:42] - [keyword] inited.
[INFO][2025-02-26 23:00:46][role.py:69] - [Role] inited
[INFO][2025-02-26 23:00:46][dungeon.py:56] - [Dungeon] inited
[INFO][2025-02-26 23:00:46][hello.py:38] - [Hello] inited
[INFO][2025-02-26 23:00:46][finish.py:23] - [Finish] inited

然后就没有任何输出了,没有二维码

@lanruixiang
Copy link

企业微信是不是不需要二维码

@Goldenbwuoy
Copy link

I am having the same problem here. I'm on Ubuntu 22.04 using Python 3.11

@lanruixiang
Copy link

我的问题已经解决,企业微信不需要扫二维码,直接配置就好了。

飞书建议也看看是不是不用扫码

@6vision
Copy link
Collaborator

6vision commented Mar 10, 2025

只有wx 通道是扫码,其他都不是,

@6vision 6vision closed this as completed Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants