b3nab / instapy-cli

:sparkles: Python library and CLI to upload photo and video on Instagram. W/o a phone!
MIT License
601 stars 98 forks source link

[BUG] Certificate verify failed: unable to get local issuer certificate (_ssl.c:1076) #72

Closed Marma92 closed 5 years ago

Marma92 commented 5 years ago

Hello, when I run my script, using instapy-cli on my PC I don't encounter any issue. However, on my mac, here is the error thrown:

ClientError URLError <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> (Code: 0, Response: )

To Reproduce Code to reproduce the behavior is a classic one:

with client(username, password) as cli:    cli.upload(filepath, text)

(Entire code can be seen here )

Env :

Marma92 commented 5 years ago

Since it seems more related to the requests package, I'm closing this issue, suggesting to anyone encountering a similar issue to look for it, it's fairly documented.

gogs85 commented 4 years ago

Hi I have the same issue and use Python 3.8