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

Error loading dependencies #25

Open
guillaumemeyer opened this issue Jul 26, 2024 · 1 comment
Open

Error loading dependencies #25

guillaumemeyer opened this issue Jul 26, 2024 · 1 comment

Comments

@guillaumemeyer
Copy link

Hi, I'm facing an issue when using the sandbox in Dify self-hosted mode:
The error is: No module named 'pandas'
The sandbox service is running and the dependencies from python-requirements.txt appear to be correctly installed on startup from the sandbox container logs.
Here's the content of our requirements file:

pandas
numpy
statsmodels
prophet
scikit-learn

But as far as I can see, no depency is available.

@Hanfee
Copy link
Contributor

Hanfee commented Aug 29, 2024

I changed it like this and it solved The error is: No module named ‘pandas’ problem, I guess it's because of the account authorisation issue, need recompile program

from base64 import b64decode
key = b64decode(key)

os.chdir(running_path)

{{preload}}

#lib.DifySeccomp({{uid}}, {{gid}}, {{enable_network}})

code = b64decode("{{code}}")```

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

2 participants