I am very new to this, so keep that in mind.
Every time i try to run/execute the file it just closes straight away.
This is what it says before it closes The screenshot
I am very new to this, so keep that in mind.
Every time i try to run/execute the file it just closes straight away.
This is what it says before it closes The screenshot
Right Click your python file and Click Edit -> Edit with IDLE
F5 to run the code in IDLE
Then you can see the error and try to debug it.
It seems to be an SSL Error. So I guess you try to connect to a server. YOu might try to connexct to taht se cer manually (perhaps with a browser) to see wheter the certificate is correct.
Do you have more information about your program? Is it online avaible?
If you dont want to have the Pyhtonshell avaible after the crash, you can run python3 -i yourprogram.py
.
It seems that SSL certificates have not been installed on your system. You can try execute Install Certificates.command
, located at /Applications/Python\ 3.x/ (or OS-specific location)
If that fails, you may manually copy certificates to the required location. This may be possible by following steps enumerated by Ken in this post
Hope it solves your problem