-->

Welcome to our Coding with python Page!!! hier you find various code with PHP, Python, AI, Cyber, etc ... Electricity, Energy, Nuclear Power

Showing posts with label Jupyter. Show all posts
Showing posts with label Jupyter. Show all posts

Friday, 5 May 2023

urllib3 v2.0 only supports OpenSSL 1.1.1+

Error

lib\site-packages\urllib3\__init__.py in <module>
38 raise ImportError(
---> 39 "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
40 f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION}. " ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.1.0h 27 Mar 2018. See: https://github.com/urllib3/urllib3/issues/2168

Solution

This error message is indicating that the version of OpenSSL installed on your system is too old to work with the version of urllib3 you are using. To fix this issue, you can either upgrade OpenSSL to version 1.1.1 or newer, or downgrade urllib3 to a version that is compatible with your current version of OpenSSL.

To upgrade OpenSSL, you can download and install the latest version of OpenSSL for your operating system from the OpenSSL website: https://www.openssl.org/source/

To downgrade urllib3, you can run the following command in your terminal or command prompt:

pip install urllib3==1.26.6

This will install version 1.26.6 of urllib3, which is compatible with OpenSSL 1.1.0.

Error installing Jupyter & pywinpty (Python)

Error installing Jupyter & pywinpty (Python) resolved

I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;

winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

I get the same error when attempting to install pywinpty via pip.

I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?

UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.


  Missing build time requirements in pyproject.toml for pywinpty>=1.1.0; os_name
 == "nt" from https://files.pythonhosted.org/packages/d3/89/2b9113eabacfe3bbebcd
f95c24772e2267c7b6b9fed6e35bffba2080a4c1/pywinpty-2.0.10.tar.gz#sha256=cdbb5694c
f8c7242c2ecfaca35c545d31fa5d5814c3d67a4e628f803f680ebea (from terminado>=0.8.3->
notebook->jupyter): 'setuptools' and 'wheel'.
  This version of pip does not implement PEP 517 so it cannot build a wheel with
out 'setuptools' and 'wheel'.
  Cache entry deserialization failed, entry ignored


Solution:

Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.

To install manually (from cmd or Powershell) use:  pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl


Rank

seo