I am trying to make .py in .exe. In .py, the application works fine, but after creating it in .exe using py2exe, I get this error:
Traceback (most recent call last): File "filename.py", line 210, in <module> File "requests\api.pyc", line 55, in get File "requests\api.pyc", line 44, in requests File "requests\sessions.pyc", line 461, in request File "requests\sessions.pyc", line 567, in send File "requests\adapters.pyc", line 399, in send requests.exceptions.SLLError: [Errno 185090050] _ssl.c:344: error: 0B084002:x509 certificate routines: X509_load_cert_crl_file:system lib
And line 210 in the file is
r2 = requests.get('https://www.hitbox.tv/api/chat/servers', timeout=timeoutDefault)
This is setup.py:
from distutils.core import setup import py2exe setup(console=['filename.py'])
How can I solve this problem?
source share