I am getting the following error when I am trying to import from g2p_en import G2p a server.
[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
[nltk_data] failed: EE certificate key too weak (_ssl.c:1131)>
[nltk_data] Error loading cmudict: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed:
[nltk_data] EE certificate key too weak (_ssl.c:1131)>
I am installed this module by the command pip install g2p_en. I am not getting what is causing the error as the same thing seems to run fine in the Jupyter notebook of my local machine but gives me the above error in a server.
Related
Python version: 3.9.12
nltk version: 3.8.1
OS: Windows
import nltk
nltk.download('stopwords')
Executing the above code results in below error
[nltk_data] Error loading all: <urlopen error [SSL] unknown error [nltk_data] (_ssl.c:1129)>
import nltk
nltk.download('punkt')
showing error:
[nltk_data] Error loading punkt: <urlopen error [WinError 10060] A
[nltk_data] connection attempt failed because the connected party
[nltk_data] did not properly respond after a period of time, or
[nltk_data] established connection failed because connected host
[nltk_data] has failed to respond>
I have pip installed nltk and tried downloading the full nltk version for my learning.
# I used this key to download full version
import nltk
nltk.download()
showing the error: WinError 10060
Changing the network to another wifi connection worked for me. The previous connection had some sort of blockers for me. Hope this helps.
I'm using Jupyter notebooks with 32-bit Python. I'm using pip 21.2.4 and Python 3.9. When I try to install sqlalchemy-access
pip install sqlalchemy-access
I get these errors,
Could not fetch URL https://pypi.org/simple/sqlalchemy-access/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/sqlalchemy-access/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
Note: you may need to restart the kernel to use updated packages.
One reccomendation I recieved was to try specifying the url using:
pip install --index-url=https://pypi.org/simple/sqlalchemy-access/
But then I just get another error
The current directory is invalid.
Any tips? Thanks!
First Issue:
I am using a MackBook Pro to run a python3 program in PyCharm that connects to MySQL ,when I run the program I receive
ModuleNotFoundError: No module named 'mysql
for line 1 which is
import mysql.connector
What i have tried:
I tried to install mysql using pip
pip3 install mysql-connector-python
new issue:
while executing
pip install mysql-connector-python
received:
Could not fetch URL https://pypi.org/simple/mysql-connector-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysql-connector-python/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping
Could not find a version that satisfies the requirement mysql-connector-python (from versions: )
No matching distribution found for mysql-connector-python
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping"
I'm having a problem with python package requests-html. When the package is trying to download chromium, I'm getting an error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate
(_ssl.c:1056)
It's the same problem as here and it has been resolved for Mac. Any idea how can I fix this on Windows? In case it matters, installing packages with PIP works fine. Windows 8, Python 3.7.
Have you tried using verify=False in your request args?
This should make the request ignore SSL Cerificate requirements.