2 years ago
My flask application is built on Python 3.10 so I have specified it on nix toml file but still is gives an errror.. The project runs fine on local machine
ⓘ Deployment information is only viewable by project members and Railway employees.
21 Replies
2 years ago
How have you confirmed that the build is now running with python 3.10?
I found a thread mentioning that I can use python 3.10 if i write the below text in nixpacks.toml file [phases.setup]
pkgs = ["...", "python310"]
2 years ago
Right but how have you confirmed that the build is now running with python 3.10?
2 years ago
Ok I will do that and get back to you
2 years ago
The packages were successfully downloaded but there are issues in deployment section like this Traceback (most recent call last):
File "/app/main.py", line 43, in <module>
from baseline import Baseline as Baseline
File "/app/baseline.py", line 1, in <module>
import os, math, random, pdb, time, timeit, cv2
File "/opt/venv/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
I dont know whats the issue . Please help me out here
2 years ago
Please send your full build and deploy logs -<https://bookmarklets.up.railway.app/log-downloader/>
2 years ago
You have far too many dependencies here, please reduce that file to only the dependencies your app uses.
2 years ago
oh..I'll doing that ..Thanks a lot
2 years ago
I altered the requirements.txt file to only contain necessary dependencies.. It has almost 50 lines . But still the same above issue persists. Is there an issue with the file structuring . This is the git repo of the project . app.py should be executed to run the project https://github.com/Nithin1729S/ImageStyleTransfer
Attachments
2 years ago
The virtual env created was 5.8 gb in size ..Is this the issue ?
2 years ago
That's the image size, nothing to do with a virtual environment, but yes 5.8GB is a problem and that's why i asked you to remove the unneeded dependencies.Are you aware that Railway does not support GPU? none of the nvidia stuff is going to work, your application should not be using such dependencies when on Railway.
Status changed to Solved Railway • over 1 year ago
2 years ago
No I wasnt aware of that ? Can you please recommend me any hosting service where I can deploy this.. I have tried Vercel, Railway, Pythonanywhere, Render nothing worked
2 years ago
You would want to deploy to a hosting service that provides GPU, does your app actually need GPU though?
2 years ago
It uses VGG 16 model to apply style to a content image . It used torch a lot
2 years ago
hmm...I am not sure about that ..Mostly Its not possible..
2 years ago
Ok..Thanks a lot ..