langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.76k stars 6.61k forks source link

For path has requests dependency, why can't import, sandbox image: langgenius/dify-sandbox:latest #8722

Closed rosehuynh92 closed 4 days ago

rosehuynh92 commented 4 days ago

For path has requests dependency, why can't import, sandbox image: langgenius/dify-sandbox:latest image

image

Originally posted by @EvanGerry in https://github.com/langgenius/dify/discussions/4854

dosubot[bot] commented 4 days ago

Hey @rosehuynh92! 👋 I'm here to help you with any bugs, questions, and to guide you on becoming a contributor. I'm Dosu, and I'm here to assist you while you wait for a human maintainer.

I found a similar unsolved discussion regarding the ModuleNotFoundError: No module named 'requests' error in the Dify sandbox environment [1].

The Dify sandbox environment has known limitations that restrict making network requests, which includes the use of the requests module. This is due to the sandboxed execution environment being strictly isolated to ensure security, preventing functions that may pose security risks, such as making network requests [2].

If you need to use the requests module or make network requests, you might need to consider alternative approaches or configurations outside the sandbox environment.

To continue talking to Dosu, mention @dosu.

crazywoola commented 4 days ago

Please use 0.2.9, please open an issue in dify-sandbox instead