如何在本地加载此插件
#128
Replies: 3 comments 3 replies
-
无法获取的原因,主要是插件的模块名出了问题。你只需要直接
|
Beta Was this translation helpful? Give feedback.
0 replies
-
感觉和本地pip之前安的包有关,尝试卸载并使用
似乎是包路径的问题,但不知原因,凭感觉我先临时把
|
Beta Was this translation helpful? Give feedback.
3 replies
-
在 0.4.8(257fee7) 版本,修复了相对路径的报错。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
求问如何在本地加载此插件,
目录结构:
参考官网:load_plugins使用
nonebot.load_plugins("nonebot-plugin-wordcloud/nonebot_plugin_wordcloud")
或nonebot.load_plugin(Path(nonebot-plugin-wordcloud/nonebot_plugin_wordcloud))
都会出现获取不了插件名的报错:
看了下目录结构也差不多,俺其他几个本地插件都可以通过上面方法加载,只不过没有二级目录,比如
nonebot.load_plugin("nonebot_plugin_forwarder")
Beta Was this translation helpful? Give feedback.
All reactions