Questions tagged [certifi]
27 questions
0
votes
1 answer
SSL Verification failed when trying to connect a Python Discord bot to Discord.com on MacOS PyInstaller compiled app
I wrote a simple Discord Bot in Python and I compiled it as an app for distribution on MacOS using PyInstaller. When my users ran it they got the following error:
An error occurred: Cannot connect to host discord.com:443 -…

e.bicharri
- 1
- 2
0
votes
0 answers
Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /pathtodownloadedfile/cacert.pem
This error occur when I want to install a package from Python 3.10. My operating system is…

Winston
- 5
- 3
0
votes
1 answer
HTTPSConnectionPool: Max retries exceeded with URL (Caused by SSLError)
I am trying to make an HTTPS request to a URL using Python requests library and certifi library as follows:
import certifi
url = 'https://10.0.0.39:4455/api/cars'
response = requests.get(url, verify=certifi.where())
if response.status_code ==…

gapanihu
- 1
- 1
- 1
0
votes
1 answer
Python requests not looking into /etc/ssl/certs for self-signed certificates
I'm trying to add a certificate into a Dockerfile, needed for Python requests package:
FROM python:3.9-slim-buster
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH="$PYTHONPATH:/app"
WORKDIR /app
COPY ./app .
COPY ./certs/*.crt…

Floren
- 113
- 11
0
votes
2 answers
cant install module named certifi
i tried to use this command in cmd to install module certifi:
pip install certifi
But it throws some warning like this:
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
How can i fix it and install certifi ? (Python 3.9.6…

Hoàng Huy
- 31
- 8
0
votes
1 answer
(ChatterBot) Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
I'm trying to use ChatterBot in PyCharm, but when running a simple example program:
from chatterbot import ChatBot
chatbot= ChatBot("Josie")
from chatterbot.trainers import ListTrainer
conversation = ["Hello","Hi There",
"How are…

baldwin
- 45
- 6
0
votes
1 answer
SeqLog unable to get local issuer certificate
I am trying to set up seqlog in python on a corporate environment, but getting
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076) with an internal certificate.
Apparently you can disable…

danielmcn
- 390
- 6
- 15
0
votes
2 answers
I import wikipedia, I get the error... AttributeError: module 'certifi' has no attribute 'where'
I type into a python 3 jupyter notebook...
import wikipedia as wp
I get a long error, the end of which reads...
c:\users\yishai and shira\appdata\local\programs\python\python37-32\certifi.py in
3 http = urllib3.PoolManager(
4 …

yishairasowsky
- 741
- 1
- 7
- 21
0
votes
0 answers
Permission denied when importing Tensorflow
On Windows Server 2016, after a conda update, I cannot import Tensorflow in Python anymore. I have tried reinstalling it and upgrading it to the latest version, but the Permission Denied error is still present. How can I solve this issue?
Traceback…

AlexGuevara
- 932
- 11
- 28
0
votes
1 answer
Where to find certifi folder in ubuntu 18
I just installed a new Ubuntu 18 machine. I use python 3.6 and openssl 1.1.0g for a program. I installed package name certifi which is necessary for certificate validation in openssl with python (I previously encountered problems where python could…

user9371654
- 2,160
- 16
- 45
- 78
0
votes
0 answers
Why does only one of two virtualenvs hit "OpenSSL.SSL.Error: 'PEM routines', 'PEM_read_bio',... 'SSL_CTX_use_PrivateKey_file'..."?
In the process of updating a virtualenv I seem to have gotten things out of whack in the ssl libraries or something. Code that previously worked in either of two virtualenvs now works in only one; in the one I changed the code shown below generates…

Scott
- 1,247
- 3
- 10
- 21
0
votes
1 answer
SSL Certificate Failure on Travis, but works fine locally (using Requests and Certifi)
I am scraping the following site using requests and certifi: https://ecf.ared.uscourts.gov/
When I scrape it on my local machine, it works fine, but when I run automated tests in Travis, it fails with:
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED]…

mlissner
- 17,359
- 18
- 106
- 169