#567: python2 update required
Reporter: ndawson | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: major | Component: Package
Version: | Keywords: python
The current version of Python 2 in osgeo4w (2.7.4) is no longer compatible
with the pip repository - trying to run pip install under osgeo4w python
results in errors "SNIMissingWarning: An HTTPS request has been made, but
the SNI (Subject Name Indication) extension to TLS is not available on
this platform." and "Could not fetch URL
https://pypi.python.org/simple/pint/: There was a problem confirming the
ssl certificate: [Errno 1] _ssl.c:504: error:1407742E:SSL
routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
Could not find a version that satisfies the requirement pint (from
As a result it's no longer possible to install Python2 packages using pip
on osgeo4w. There's no reliable workarounds which users can do to avoid
this - the only solution is to update the Python library to a more recent
It seems, there must be a reason, nobody comes with a new package? So, why
is there no update to python? As described in pkg-python/Python27 there is
a lot of manual work to do, extracting and mergin the files for osgeo4w
packages. I just tried it for python27, 32bit-and i am very unsure in what
i'm doing. Is there some information why the packages are as they are? Do
other packages made with 2.7.4 exist that would need to be updated too?
How was it done for python3, do any automatisms/scripts exist?
i now have two fresh packages python and python-core which, i think, need
further testing. Python is 32bit and 2.7.14.
Here is a short description of what i did:
- install python27-msi-file (current user!)
- create a folder named python-core
- unzip python-skeleton.zip in python-core
- copy python27 folder to python-core/apps
- uninstall python27 (if you like)
- copy python.exe, python27.dll, pythonw.exe and w9xpopen.exe to bin
- tar cvjf apps bin etc to python-core-version.tar.gz like here:
https://trac.osgeo.org/osgeo4w/wiki/pkg-python/Python27 - used and modified the python meta package
(there are no further packaged like python-help python-tcltk python-
testsuite needed anymore, its all inclusive. it is just like the
My Tests: start python shell, import gdal, start idle, start qgis-ltr,
install pip with pkg setuptools installed. Someone interested and willing
to test? Both packages are in tar.gz format with a setup.hint file.
Someone who can tell me how to upload the packages?
Good to see, someone else cares and works on a solution. By the way, under
the given link I can't find a package with that particular version
number... Do the older python packages work under the new subversion? I
never had a chance to test!