Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pynlpir update error #108

Open
herrtao opened this issue Mar 8, 2018 · 2 comments
Open

pynlpir update error #108

herrtao opened this issue Mar 8, 2018 · 2 comments

Comments

@herrtao
Copy link

herrtao commented Mar 8, 2018

after i have pip install pynlpir sucessfully, i try to pynlpir update, but i got the following message
error: unable to fetch newest license.

i use python3.

@morinokami
Copy link

morinokami commented Mar 16, 2018

@herrtao
I also encountered the same issue and found a workaround for this. I'm using Python 3.6 on Mac and here are the steps for Mac users to eliminate the error:

  1. Open /Applications/Python 3.6.
  2. Double-click "Install Certificates.command".

(See: Mac OSX python ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749))

It seems that the cause of the issue is not pynlpir but Python itself. Python 3.6 on Mac no longer uses the system's trusted certificate, so when pynlpir tries to download the latest license through HTTPS, Python cannot establish a secure connection over TLS/SSL and fails as a result (See: Tell HN: Python 3.6 on OS X requires a post-install step for SSL to work | Hacker News).

I think this fact should be noted in README.

Hope this helps :)

@Rachel-Ma
Copy link

I have the same problem in windows system, do u have any idea? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants