NLTK SSL Errors loading...

See original GitHub issue

I didn’t see this directly addressed earlier, but please correct me if I missed it.

I’m receiving these NLTK related errors when running ChatBot (but no issues when I’m coding up NLTK separately on another project.

Any guidance would be wonderful. Thanks guys.

[nltk_data] Error loading stopwords: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data]     (_ssl.c:749)>
[nltk_data] Error loading wordnet: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data]     (_ssl.c:749)>
[nltk_data] Error loading punkt: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data]     (_ssl.c:749)>
[nltk_data] Error loading vader_lexicon: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data]     (_ssl.c:749)>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

31reactions
vkosuricommented, Aug 14, 2017

@sedemmler I don’t see any issues on my machine hp pro-book 440 g3

I googled your issue found some answer, i think this could help solve your problem

https://stackoverflow.com/a/41692664/358458 https://stackoverflow.com/a/39142816/358458

However the post suggested workaround related to SSL , i am not sure how this will effect on other platforms? @gunthercox any comments?

import nltk
import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    pass
else:
    ssl._create_default_https_context = _create_unverified_https_context

nltk.download()
0reactions
lock[bot]commented, May 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NLTK download SSL: Certificate verify failed - Stack Overflow
I navigated, via the GUI to the Python 3.7 folder, opened the 'Certificates.command' file in terminal and the SSL issue was immediately ...
Read more >
when nltk failed to download nltk-data, it outputs error info to ...
my nltk version is 3.2.5. and I put a code of nltk.download('punkt') # if already exist, it will return True. to let the...
Read more >
PYTHON : NLTK download SSL: Certificate verify failed
PYTHON : NLTK download SSL : Certificate verify failed [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON ...
Read more >
SSL: CERTIFICATE_VERIFY_FAILED Error in Python (2022)
In this video I will be showing you how you can solve the SSL : CERTIFICATE_VERIFY_FAILED Error in any Python version.
Read more >
trouble downloading nltk files : r/learnpython - Reddit
So I've installed nltk, but when I try to download the files, I get an error message: python3 -m nltk.downloader all…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found