NLTK error while executing streamlit run

Hi,

I’m getting NLTK error each time I execute the streamlit run locally and I have to do pip install nltk.

AttributeError: 'WordNetCorpusReader' object has no attribute '_LazyCorpusLoader__args'
[nltk_data] Error loading wordnet: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed:
[nltk_data]     unable to get local issuer certificate (_ssl.c:997)>

Any suggestions to avoid these?

Thanks,
Deepa Sarojam

Hey @Deepa_Sarojam :wave:

Did you update the Certifi Package?

pip install --upgrade certifi

Best,
Charly

1 Like

No, I didn’t. Let me try that. Thanks for your input @Charly_Wargnier

No worries, and let me know how you go with it! :hugs:

Best,
Charly

1 Like

Hi @Charly_Wargnier It worked :slight_smile: Thanks a ton!.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.