Underc0de

Foros Generales => Dudas y pedidos generales => Mensaje iniciado por: OjoHalconero107 en Enero 15, 2021, 05:02:29 PM

Título: [SOLUCIONADO] Error SSL al querer hacer una instalacion con PIP
Publicado por: OjoHalconero107 en Enero 15, 2021, 05:02:29 PM
Hola buenas tardes a todos, hoy queria traerles un problema que no me estaria dejando instalar un script llamado EagleEye, al ejecutar: cd EagleEye && sudo pip3 install -r requirements.txt
Me sale este error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
Could not fetch URL https://pypi.org/simple/termcolor/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/termcolor/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement termcolor (from -r requirements.txt (line 1)) (from versions: none)                                   
ERROR: No matching distribution found for termcolor (from -r requirements.txt (line 1))                                                                               
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                                   
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Creo que es importante recalcar que mi Kali Linux no tiene el horario correcto, con el comando:
└─# sudo dpkg-reconfigure tzdata                                         
No me corrige el problema al darle mi ubicacion, si alguien puede darme una mano, de verdad se los agradeceria.
Muy bien finde para todos!!!!
Actualizo: modifique el horario con date mmddhhmmyyyy
Título: Re:Error SSL al querer hacer una instalacion con PIP
Publicado por: Pyth1 en Enero 15, 2021, 06:40:24 PM
Bueno, a simple vista podrías intentar actualizar el sistema y sus paquetes. (sudo apt-get update && apt-get upgrade) (Esto en caso de que haya algún fallo a nivel de sistema o de paquetes como pip).  De igual manera digo esto porque veo que hay una sección donde dice que no pudo encontrar una version que satisfaga los requerimientos. En caso de que no te funcione con ese paso, avísame, me quedo al pendiente. Un abrazo.
Título: Re:Error SSL al querer hacer una instalacion con PIP
Publicado por: OjoHalconero107 en Enero 15, 2021, 09:20:43 PM
Gracias por tomarte el tiempo compañero, realmente te lo agradezco.

Ejecute el comando que me recomendaste y al volver a instalar los requerimientos me sale esto:

ARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                                   
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/                                 
Could not fetch URL https://pypi.org/simple/termcolor/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/termcolor/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement termcolor (from -r requirements.txt (line 1)) (from versions: none)                                   
ERROR: No matching distribution found for termcolor (from -r requirements.txt (line 1))                                                                               
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                                   
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Título: Re:Error SSL al querer hacer una instalacion con PIP
Publicado por: Pyth1 en Enero 15, 2021, 09:58:42 PM
Vale, estuve googleando para empaparme del tema y me doy cuenta que al parecer es un problema con versiones de Python y en específico con pip. El proceso para solucionar el problema es un poco largo, por eso mejor te dejo aquí el enlace de donde saqué la información: https://www.programmersought.com/article/12942212998/

Avísame cómo te va con eso, espero que sirva. (Abriendo paréntesis, comprueba que tu version de python sea la misma con la que se desarrolló el script que quieres ejecutar, en caso de no ser las mismas, puedes intentar ver si tu versión de python tolera todas las dependencias del script, sino instalar otra versión que sí la tolere) (Otro paréntesis, si ninguna de estas soluciones te funcionan lo mejor es que abrar un "Issue" en el repositorio de Github de la herramienta para que los desarrolladores puedan revisar el problema de incompatibilidad de versiones)

Quedo atento,