Need support to deploy my app
arieha1995
FREEOP

24 days ago

I have a fastapi python project that i would like to deploy.

I did the setup for the variables but always after deployment it says

ModuleNotFoundError: No module named 'fastapi'

Solved$10 Bounty

Pinned Solution

diogoribeirodev
FREETop 5% Contributor

23 days ago

You need to install the dependencies before running the app https://docs.railway.com/guides/fastapi#use-a-dockerfile

4 Replies

guilhermebsantiago
PRO

24 days ago

Could you share a print?


arieha1995
FREEOP

23 days ago

from fastapi import FastAPI, HTTPException, Depends

ModuleNotFoundError: No module named 'fastapi'

Traceback (most recent call last):

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


diogoribeirodev
FREETop 5% Contributor

23 days ago

You need to install the dependencies before running the app https://docs.railway.com/guides/fastapi#use-a-dockerfile


arieha1995
FREEOP

23 days ago

I understood how to setup the requirements.txt file and then it worked, thank you


Status changed to Solved sam-a 23 days ago


Loading...