#SNR-connectionerror

1 messages · Page 1 of 1 (latest)

red lintel
#

Hello! Have you checked that you have a ca-certificates.crt file?

quick wigeon
#

Anywhere on my PC?

#

im not sure what ca-certificates.crt is needed

red lintel
#

My guess is that either you have the file, but it's not in the correct place or the file was accidentally removed at some point - it should have been included when you installed the stripe library

quick wigeon
#

when i pip install it, it should be in here somewhere?

#

ah i have found it

#

but how do i make it so it works in the APP too?

#

shall i add a path to crt within APP Dir

red lintel
#

if you add the ca-certificates.crt file to the path specified in the error C:\Users\Noah\AppData\Local\Temp\_MEI429922\stripe\data\ca-certificates.crt that should work

quick wigeon
#

hmm

#
  1. i dont seem to have the path

and 2) will it work for other users too?

#

maybe ill make the folder

#

the _MEI429922 part changes each time

red lintel
#

lets back up for a minute - how did you install stripe, and how are you running your code

quick wigeon
#

sure,

i did pip install stripe and i am running my code through the terminal, when i run on terminal it works

however when i compile to exe, it throws that connection error

red lintel
#

What command are you using to compile to exe?

quick wigeon
#

pyarmor pack -s main.spec -e " --onefile --icon favicon.ico" --with-license licenses\main\license.lic main.py

red lintel
#

Yeah so this must be something specific to how pyarmor works - it's not copying over the package_data that stripe needs to the correct place. I don't know enough about pyarmor to give specific recommendations, but I'd recommend looking through their documentation to see if there's any information on working with dependencies / package_data

quick wigeon
#

ah fair enough, thank you for your help anyways

#

have a great day

red lintel
#

you too!