-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Upgrade with docker-compose, execute database migration, PyTorch, TensorFlow >= 2.0, or flex not found. #3181
Comments
Hey @mwnu, great to see you back in the world of code and containers! 🚀 Based on the information you've provided and the context I've gathered, it seems that the Dockerfile for Dify v0.6.0-fix1 does not include specific scripts or commands for installing PyTorch, TensorFlow, or Flax during the Docker image build process. This could be the reason why these libraries are not found during the database migration process. To resolve this issue, you can modify your Dockerfile or Docker Compose setup to ensure these libraries are installed. Here are the steps you can follow:
After making these changes, rebuild your Docker images and run the containers to ensure that the issue is resolved. You can test the availability of these libraries by importing them in a Python shell or script running inside the container. Please note that the exact commands and versions may vary based on your specific project requirements and the base images you are using. Always refer to the official documentation of PyTorch, TensorFlow, and Flax for the most up-to-date installation instructions compatible with your project. For more information, you can refer to the Dockerfile and config.py in the Dify repository. I hope this helps! If you have any further questions or run into any issues, feel free to ask. Sources
|
It depends on your application type, but this is a warning, you could ignore it.
As this suggests, this execution has no errors. |
This is a warning message, you can ignore it. |
Self Checks
Dify version
v0.6.0-fix1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
docker-compose down
docker-compose pull
docker-compose up -d
2.
connect to PostgreSQL and execute the following SQL:
Execute the below script to complete the migrate:
✔️ Expected Behavior
complete the migrate
❌ Actual Behavior
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Start convert to agent apps.
Congratulations! Converted 0 agent apps.
The text was updated successfully, but these errors were encountered: