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

9 months 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

$20 Bounty

14 Replies

9 months ago

Is your repository public so I could take a look?


timeattackwtf
PROOP

9 months ago

my github repo? like my source code?


9 months ago

Correct


timeattackwtf
PROOP

9 months 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

9 months ago

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


9 months 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

9 months ago

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


timeattackwtf
PROOP

9 months ago

like theres no possible way its mycode thats the issue


timeattackwtf
PROOP

9 months ago

it works fine on my compute


timeattackwtf
PROOP

9 months ago

computer


9 months ago

Are you building with a Dockerfile?


timeattackwtf
PROOP

9 months ago

ye


9 months 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.


9 months 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...