/opt/venv/bin/python: No module named "projectname"
ganesh2257767
HOBBYOP

10 months ago

Hey guys, I'm trying to deploy a fastapi app but the deployment crashes with the error in the title.
I'm fairly new to deploying stuff, I've deployed a couple of simple apps without much issues, but this is a big one first for me.
The error says it "/opt/venv/bin/python: No module named xyz" where xyz is my project name/root folder name.
I'm not sure what the Project ID is but I see this ID on the crash screen: 4bc8565
Any help appreciated.

Solved

6 Replies

ganesh2257767
HOBBYOP

10 months ago

80f06928-1a37-405b-93d3-051f45abf715


adam
MODERATOR

10 months ago

Seems like you're attempting to import a folder in your project. Please send your project folder structure, as well as what folder you run your project from when you run it locally


ganesh2257767
HOBBYOP

10 months ago

I don't know what the issue was, but passing a start command in the settings seems to have worked.
Thanks for your reply!


ganesh2257767
HOBBYOP

10 months ago

Do you happen to know how to run alembic commands in railway? I tried the CLI, linked the project and opened a bash terminal, I was expecting alembic to be installed as it was in the pyproject.toml, but it just says not found. I don't know what I did wrong and I didn't want to install something without understanding the issue


brody
EMPLOYEE

9 months ago

are you using railway ssh ?


adam
MODERATOR

9 months ago

!s


Status changed to Solved adam 9 months ago


Loading...