Havent changed anything but get this python error when restarting
timeattackwtf
PROOP

a year ago

File "/app/modules/stripe/init.py", line 2, in

from stripe import stripe

ImportError: cannot import name 'stripe' from 'stripe' (/opt/venv/lib/python3.12/site-packages/stripe/init.py)

Literally all i did was change one line totally irrelevant to this import and now my deployments keep crashing

Closed$20 Bounty

14 Replies

a year ago

Is your repository public so I could take a look?


timeattackwtf
PROOP

a year ago

my github repo? like my source code?


a year ago

Correct


timeattackwtf
PROOP

a year ago

im curious why thats neccasry as it wouldnt be the issue with the code, it was working fine until i restarted the deployment


timeattackwtf
PROOP

a year ago

i feel like the answer woul dbe with something railway changed to the python confgiurations


a year ago

It is very likely something that can't be diagnosed only with what you shared.

But if your repo is private no worries, I was just asking


timeattackwtf
PROOP

a year ago

yeah its private but has there been no updates to railways python configurations?


timeattackwtf
PROOP

a year ago

like theres no possible way its mycode thats the issue


timeattackwtf
PROOP

a year ago

it works fine on my compute


timeattackwtf
PROOP

a year ago

computer


a year ago

Are you building with a Dockerfile?


timeattackwtf
PROOP

a year ago

ye


a year ago

If you changed one line and are building with a dockerfile I can fairly confidentally say that this isn't on Railway and is a service related issue.


a year ago

That being said, I am curious if you possibly bumped a version or had some mismatch.

Are you able to try and run this on your local machine to see if the same issue appears?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...