[PR #130] [MERGED] fix(plugin-manager): log pre-compilation python errors instead of raises it outside to avoid plugins to broken #326

Closed
opened 2026-02-16 01:15:34 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/130
Author: @Yeuoly
Created: 3/20/2025
Status: Merged
Merged: 3/20/2025
Merged by: @Yeuoly

Base: mainHead: fix/graceful-precompile


📝 Commits (2)

  • 5faefaf fix(plugin-manager): log pre-compilation python errors instead of raises it outside to avoid plugins to broken
  • 7b9787b downgrade python preccompile error message to warning

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 internal/core/plugin_manager/local_runtime/environment_python.go (+6 -2)

📄 Description

Updated the error handling in the InitPythonEnvironment function to log pre-compilation errors instead of returning them. This change addresses issues with plugins referencing broken SDKs while still functioning correctly. Additionally, corrected the log message for pre-loading plugins to reflect the accurate state.

Fixes: https://github.com/langgenius/dify/issues/16292


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/130 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/graceful-precompile` --- ### 📝 Commits (2) - [`5faefaf`](https://github.com/langgenius/dify-plugin-daemon/commit/5faefaff82993bf561cffd6b6429abc347b7353e) fix(plugin-manager): log pre-compilation python errors instead of raises it outside to avoid plugins to broken - [`7b9787b`](https://github.com/langgenius/dify-plugin-daemon/commit/7b9787b45f3d0d6d1ceae72996c54517043d4d3c) downgrade python preccompile error message to warning ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/local_runtime/environment_python.go` (+6 -2) </details> ### 📄 Description Updated the error handling in the InitPythonEnvironment function to log pre-compilation errors instead of returning them. This change addresses issues with plugins referencing broken SDKs while still functioning correctly. Additionally, corrected the log message for pre-loading plugins to reflect the accurate state. Fixes: https://github.com/langgenius/dify/issues/16292 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:34 -05:00
yindo closed this issue 2026-02-16 01:15:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#326