R
Railway10mo ago
mattey

Deployment Failed during build process

Project Id: 0c7fec98-322c-4deb-ac9d-d61c6c0278bf With no issues I have been deploying to Railway, but today this error occurred, No package 'cairo' found ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects Why did this error come about, it was not there before, do i need to install pycairo mannally : railway run pip install pycairo to fix this issue, what was the reason this to come about now.
No description
Solution:
delete the Procfile and the nixpacks.toml file, then add this Dockerfile to your project
Jump to solution
50 Replies
Percy
Percy10mo ago
Project ID: 0c7fec98-322c-4deb-ac9d-d61c6c0278bf
Brody
Brody10mo ago
railway run pip install pycairo
this installs pycairo locally
With no issues I have been deploying to Railway, but today this error occurred
your last successfully deployment, what nixpacks version was in use?
mattey
mattey10mo ago
it does not state the version on nixpacks:
No description
mattey
mattey10mo ago
where can i find the version number?
Brody
Brody10mo ago
it would be printed in the build logs on the top of the build table
mattey
mattey10mo ago
thanks here it is: Nixpacks v1.17.0 the thing is my successful builds' Nixpacks version is also Nixpacks v1.17.0
Brody
Brody10mo ago
then it was something you added to your app add the missing module to your requirements.txt
mattey
mattey10mo ago
ok, m going through the changed i made recently.
Brody
Brody10mo ago
sounds good
mattey
mattey10mo ago
have tried reverting to a working git commit, which deployed successfully previously, However the Deployment still crashes with the same errors.
Brody
Brody10mo ago
nixpacks wasnt changed, so this was something youve changed, why not just try installing the module needed?
mattey
mattey10mo ago
have included in my requirements.text pycairo still the error persists or should I install it in the railway run pip install pycairo ?
Brody
Brody10mo ago
^
have included in my requirements.text pycairo still the error persists
was .text a typo? can you please share your repo
mattey
mattey10mo ago
ok, wait how do I share the repo. give me an email or an username pls to share the repo.
Brody
Brody10mo ago
brody192
Want results from more Discord servers?
Add your server