本地插件安装后,运行失败 #180

Closed
opened 2026-02-22 17:21:23 -05:00 by yindo · 4 comments
Owner

Originally created by @3099749306 on GitHub (Jul 20, 2025).

大佬你好,我在本地开发了一个插件,通过启动本地代码远程调试,是没有问题的。但是,当我打包好后,安装到dify上的时候,有一个地方一直报错,会不会是打包部署后,该有的依赖没有下载下来呢。
1.本地调试:

Image

2.打包后,本地安装的插件:

Image

检查了requirement.txt,没有问题

Originally created by @3099749306 on GitHub (Jul 20, 2025). 大佬你好,我在本地开发了一个插件,通过启动本地代码远程调试,是没有问题的。但是,当我打包好后,安装到dify上的时候,有一个地方一直报错,会不会是打包部署后,该有的依赖没有下载下来呢。 1.本地调试: <img width="2559" height="1348" alt="Image" src="https://github.com/user-attachments/assets/1900c417-589d-47c6-9278-bcdb783f041a" /> 2.打包后,本地安装的插件: <img width="2559" height="1348" alt="Image" src="https://github.com/user-attachments/assets/d1d9defc-c041-438f-8089-f84919f4b163" /> 检查了requirement.txt,没有问题
yindo added the bug label 2026-02-22 17:21:23 -05:00
yindo closed this issue 2026-02-22 17:21:23 -05:00
Author
Owner

@3099749306 commented on GitHub (Jul 20, 2025):

Image
@3099749306 commented on GitHub (Jul 20, 2025): <img width="751" height="403" alt="Image" src="https://github.com/user-attachments/assets/2f7f847c-65a4-45b8-86e5-197a5620115e" />
Author
Owner

@jingfelix commented on GitHub (Jul 21, 2025):

Based on your error message, I found this post: https://eco.dameng.com/community/question/ec52c8c5b36d5445db1ed8399728fb97

This post indicates that using the dm PyPI lib to connect to a Dameng database requires additional dependencies to be installed in the environment. The Community version of the Dify plugin runs within a Docker container, which lacks the necessary dependencies, causing the execution to fail.

@jingfelix commented on GitHub (Jul 21, 2025): Based on your error message, I found this post: https://eco.dameng.com/community/question/ec52c8c5b36d5445db1ed8399728fb97 This post indicates that using the `dm` PyPI lib to connect to a Dameng database requires additional dependencies to be installed in the environment. The Community version of the Dify plugin runs within a Docker container, which lacks the necessary dependencies, causing the execution to fail.
Author
Owner

@3099749306 commented on GitHub (Jul 21, 2025):

@jingfelix thanks,I will try this post which you offered。however,I have an idea:if this plugin installed,I can enter dify plugin_daemon container,and find the plugin's venv,Manually download dyPython dependencies, not sure if this will work。I tried,but can't find this plugin's vevn directory。

@3099749306 commented on GitHub (Jul 21, 2025): @jingfelix thanks,I will try this post which you offered。however,I have an idea:if this plugin installed,I can enter dify plugin_daemon container,and find the plugin's venv,Manually download dyPython dependencies, not sure if this will work。I tried,but can't find this plugin's vevn directory。
Author
Owner

@jingfelix commented on GitHub (Jul 22, 2025):

You can find venv for plugins at /app/storage/cwd in plugin_daemon.

Image
@jingfelix commented on GitHub (Jul 22, 2025): You can find venv for plugins at `/app/storage/cwd` in `plugin_daemon`. <img width="1136" height="760" alt="Image" src="https://github.com/user-attachments/assets/3687506e-3860-4948-9799-a8083b3d643d" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#180