SNIMissingWarning & InsecurePlatformAviso em Python no Bash Windows 10 Subsistema

1

Gosto muito de rodar o Bash no Ubuntu no Windows 10, mas notei que o Python geralmente exibe avisos. Como faço para resolver esses avisos? Obrigado

A propósito, os links dos avisos apenas informam o que esses avisos significam, mas existem instruções sobre como resolvê-los adequadamente. A documentação realmente mostra que você pode disable_warnings (), mas não acho que seja a melhor prática.

(cv) antony@ThinkPad:~$ pip freeze
backports.shutil-get-terminal-size==1.0.0
decorator==4.0.10
enum34==1.1.6
ipython==5.1.0
ipython-genutils==0.1.0
numpy==1.11.3
pathlib2==2.1.0
pexpect==4.2.1
pickleshare==0.7.4
prompt-toolkit==1.0.9
ptyprocess==0.5.1
Pygments==2.1.3
simplegeneric==0.8.1
six==1.10.0
traitlets==4.3.1
wcwidth==0.1.7
/home/antony/.virtualenvs/cv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/antony/.virtualenvs/cv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
    
por Antony 13.01.2017 / 18:50

0 respostas