Could not build wheels for Kivy, which is required to install pyproject.toml-based projects
nithin1729s
TRIALOP

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

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

21 Replies

brody
EMPLOYEE

2 years ago

How have you confirmed that the build is now running with python 3.10?


nithin1729s
TRIALOP

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"]


brody
EMPLOYEE

2 years ago

Right but how have you confirmed that the build is now running with python 3.10?


nithin1729s
TRIALOP

2 years ago

Ok I will do that and get back to you


nithin1729s
TRIALOP

2 years ago

The packages were successfully downloaded but there are issues in deployment section like this Traceback (most recent call last):

Jun 09 21:31:07

File "/app/main.py", line 43, in <module>

Jun 09 21:31:07

from baseline import Baseline as Baseline

Jun 09 21:31:07

File "/app/baseline.py", line 1, in <module>

Jun 09 21:31:07

import os, math, random, pdb, time, timeit, cv2

Jun 09 21:31:07

File "/opt/venv/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>

Jun 09 21:31:07

bootstrap()

Jun 09 21:31:07

I dont know whats the issue . Please help me out here


brody
EMPLOYEE

2 years ago

Please send your full build and deploy logs -<https://bookmarklets.up.railway.app/log-downloader/>


nithin1729s
TRIALOP

2 years ago

Here they are


brody
EMPLOYEE

2 years ago

Please attach your requirements.txt file.


nithin1729s
TRIALOP

2 years ago

Here it is.

Attachments


brody
EMPLOYEE

2 years ago

You have far too many dependencies here, please reduce that file to only the dependencies your app uses.


nithin1729s
TRIALOP

2 years ago

oh..I'll doing that ..Thanks a lot


nithin1729s
TRIALOP

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


nithin1729s
TRIALOP

2 years ago

The virtual env created was 5.8 gb in size ..Is this the issue ?


brody
EMPLOYEE

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


nithin1729s
TRIALOP

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


brody
EMPLOYEE

2 years ago

You would want to deploy to a hosting service that provides GPU, does your app actually need GPU though?


nithin1729s
TRIALOP

2 years ago

It uses VGG 16 model to apply style to a content image . It used torch a lot


brody
EMPLOYEE

2 years ago

Could that be ran in CPU mode?


nithin1729s
TRIALOP

2 years ago

hmm...I am not sure about that ..Mostly Its not possible..


brody
EMPLOYEE

2 years ago

Then unfortunately you will not be able to run your app on Railway.


nithin1729s
TRIALOP

2 years ago

Ok..Thanks a lot ..


Loading...