Havent changed anything but get this python error when restarting

timeattackwtf
PROOP

a month 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

0 Replies

Is your repository public so I could take a look?


timeattackwtf
PROOP

a month ago

my github repo? like my source code?



timeattackwtf
PROOP

a month 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 month ago

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


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 month ago

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


timeattackwtf
PROOP

a month ago

like theres no possible way its mycode thats the issue


timeattackwtf
PROOP

a month ago

it works fine on my compute


timeattackwtf
PROOP

a month ago

computer


Are you building with a Dockerfile?


timeattackwtf
PROOP

a month ago

ye


a month 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 month 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?