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

2 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

0 Replies

crisog
PRO

2 months ago

Is your repository public so I could take a look?


timeattackwtf
PROOP

2 months ago

my github repo? like my source code?


crisog
PRO

2 months ago

Correct


timeattackwtf
PROOP

2 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

2 months ago

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


crisog
PRO

2 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

2 months ago

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


timeattackwtf
PROOP

2 months ago

like theres no possible way its mycode thats the issue


timeattackwtf
PROOP

2 months ago

it works fine on my compute


timeattackwtf
PROOP

2 months ago

computer


crisog
PRO

2 months ago

Are you building with a Dockerfile?


timeattackwtf
PROOP

2 months ago

ye


noahd
EMPLOYEE

2 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.


noahd
EMPLOYEE

2 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?


Loading...