We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Windows
python 3.8
Latest Release
channel
wx(个人微信, itchat)
plugins | -- plugin_name | ---- init.py | ---- plugin_name.py | ---- hello.py
[plugin_name.py]
import plugins.plugin_name.hello (✅) from .hello import * (✅) import hello(❌)
plugins.xxx文件夹下文件对PluginManager不暴露,PluginManager执行importlib.import_module时无法执行import+简略路径的导入。整了一会儿才发现,希望在文档里加一笔或者sys.append一下。
[WARNING][2024-11-07 21:16:51][plugin_manager.py:117] - Failed to import plugin tryy: spec not found for the module 'plugins.tryy.tryy2'
The text was updated successfully, but these errors were encountered:
#2377
Sorry, something went wrong.
No branches or pull requests
前置确认
操作系统类型?
Windows
运行的python版本是?
python 3.8
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
plugins
| -- plugin_name
| ---- init.py
| ---- plugin_name.py
| ---- hello.py
[plugin_name.py]
import plugins.plugin_name.hello (✅)
from .hello import * (✅)
import hello(❌)
问题描述 😯
plugins.xxx文件夹下文件对PluginManager不暴露,PluginManager执行importlib.import_module时无法执行import+简略路径的导入。整了一会儿才发现,希望在文档里加一笔或者sys.append一下。
终端日志 📒
[WARNING][2024-11-07 21:16:51][plugin_manager.py:117] - Failed to import plugin tryy: spec not found for the module 'plugins.tryy.tryy2'
The text was updated successfully, but these errors were encountered: