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

plugins.xxx文件夹下文件对PluginManager不暴露 #2376

Open
2 tasks done
augustus0508 opened this issue Nov 7, 2024 · 1 comment
Open
2 tasks done

plugins.xxx文件夹下文件对PluginManager不暴露 #2376

augustus0508 opened this issue Nov 7, 2024 · 1 comment

Comments

@augustus0508
Copy link

augustus0508 commented Nov 7, 2024

前置确认

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

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

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

操作系统类型?

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'

@augustus0508
Copy link
Author

#2377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant