R
Railway10mo ago
yavuz

A lot of crashes deploying

Hello everyone. I have built a FastAPI and trying to deploy here on railway but I've been unşucky. I am getting a bunch of errors saying I cannot import Annotated from typing etc.. which is not problem locally ( running Python V 3.12. So what should I do? Try to deal with each error and somehow fix it or? any ideas?
4 Replies
Percy
Percy10mo ago
Project ID: N/A
yavuz
yavuzOP10mo ago
N/A
Buckethed
Buckethed10mo ago
I don't think nixpacks supports python 3.12 yet, to get around this you can deploy via a dockerfile instead Otherwise, assuming it's actually caused by python version incompatibilities, you can try downgrading to 3.11 and see if that works? If you haven't already, you'll want to set the NIXPACKS_PYTHON_VERSION env variable to 3.11 as well
yavuz
yavuzOP10mo ago
Thanks... I did try 3.11 and it worked so far :). I have not tried the docker package but I have seen a FastAPI template. May be I'll try that later. The only thing that is not working is I have admin panel made with SqlAdmin. It hass css files and js files that is not showing. Pages look unstyled. When I go into the page source though, links like http://<myFastAPI>.up.railway.app/admin/control_panel/statics/css/tabler.min.css work. They actually work but I don't understand why admin panel is not pulling them. I deployed from github I am also wondering if I can use my other server account. for video files?
Want results from more Discord servers?
Add your server