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

After importing a third-party library into the Python sandbox container, the execution results are inconsistent between the container and the web interface #4462

Closed
4 tasks done
115341chenzehao opened this issue May 17, 2024 · 2 comments

Comments

@115341chenzehao
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1.I successfully imported the third-party Python library 'mysql-connector-python' into the sandbox container, and the execution of 'import mysql.connector' was successful.
Uploading 4.jpg…

2.However, when executing the script in the web interface, the prompt states 'in ModuleNotFoundError: No module named 'mysql' error'
Uploading 5.jpg…

'dify-api'与‘sandbox’的网络是连通的,sandbox容器内会生成对应的py文件
Uploading 6.jpg…

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented May 17, 2024

Hey there, @115341chenzehao! 🚀 Looks like we're diving into another intriguing puzzle together. Good to see you back! I'm just going to take a closer look at this new twist you've found and will get back to you with a full answer shortly. Hang tight!

@115341chenzehao
Copy link
Author

图片有问题

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

No branches or pull requests

1 participant