stripe-samples / saving-card-without-payment

How to build a form to save a credit card without taking a payment.
https://stripe.com/docs/payments/save-and-reuse
MIT License
127 stars 68 forks source link

Following README exactly, Python server pip install raises error #22

Closed AaronBeaudoin closed 2 years ago

AaronBeaudoin commented 2 years ago

Bug report

Describe the bug

When running as instructed:

pip install -r requirements.txt

I get this error:

ERROR: Cannot install -r requirements.txt (line 10) and urllib3==1.26.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested urllib3==1.26.5
    requests 2.22.0 depends on urllib3!=1.25.0, !=1.25.1, <1.26 and >=1.21.1

To Reproduce

Follow the README for the Python server.

AaronBeaudoin commented 2 years ago

To resolve this issue, I removed the explicit version number for the requests library.

charliegerard-stripe commented 2 years ago

Hey @AaronBeaudoin 👋

Thanks for opening this issue! Turns out the versions of all packages used in the Python version of this sample were outdated so I updated everything in #24 and it fixed the issue so I'll merge that now and close this 😃. Thanks again!