You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR][2023-09-24 15:28:30][app.py:46] - App startup failed!
[ERROR][2023-09-24 15:28:30][app.py:47] - When using pyinstaller to package exe, you need to add the `--collect-data=ntchat` parameter
Traceback (most recent call last):
File "C:\WeChat-BOT\helper_WeChat-AIChatbot-WinOnly\app.py", line 39, in run
channel = channel_factory.create_channel(channel_name)
File "C:\WeChat-BOT\helper_WeChat-AIChatbot-WinOnly\channel\channel_factory.py", line 21, in create_channel
from channel.wechatnt.ntchat_channel import NtchatChannel
File "C:\WeChat-BOT\helper_WeChat-AIChatbot-WinOnly\channel\wechatnt\ntchat_channel.py", line 12, in <module>
from channel.wechatnt.ntchat_message import *
File "C:\WeChat-BOT\helper_WeChat-AIChatbot-WinOnly\channel\wechatnt\ntchat_message.py", line 9, in <module>
from channel.wechatnt.nt_run import wechatnt
File "C:\WeChat-BOT\helper_WeChat-AIChatbot-WinOnly\channel\wechatnt\nt_run.py", line 9, in <module>
wechatnt = ntchat.WeChat()
File "C:\Users\jiaweiyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ntchat\core\wechat.py", line 62, in __init__
WeChatMgr().append_instance(self)
File "C:\Users\jiaweiyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ntchat\utils\singleton.py", line 7, in __call__
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
File "C:\Users\jiaweiyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ntchat\core\mgr.py", line 19, in __init__
self.set_wechat_exe_path(conf.DEFAULT_WECHAT_EXE_PATH, conf.DEFAULT_WECHAT_VERSION)
File "C:\Users\jiaweiyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ntchat\core\mgr.py", line 38, in set_wechat_exe_path
raise WeChatRuntimeError('When using pyinstaller to package exe, you need to add the '
ntchat.exception.WeChatRuntimeError: When using pyinstaller to package exe, you need to add the `--collect-data=ntchat` parameter
The text was updated successfully, but these errors were encountered:
前置确认
操作系统类型?
Windows
运行的python版本是?
python 3.9
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
配置文件中使用 "channel_type": "ntchat"
python3 app.py
问题描述 😯
无法启动
终端日志 📒
The text was updated successfully, but these errors were encountered: