Opened 6 years ago

Closed 5 years ago

#567 closed defect (fixed)

python2 update required

Reported by: ndawson Owned by: osgeo4w-dev@…
Priority: critical Component: Package
Version: Keywords: python
Cc:

Description

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 versions: )"

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 version.

Change History (10)

comment:1 by martinl, 6 years ago

Priority: majorcritical

comment:2 by chau, 6 years ago

I do have python 2.7.5-3 from OSGeo4W, but still have the same issue blocking my installs.

comment:3 by Andreas Müller, 6 years ago

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?

comment:4 by Andreas Müller, 6 years ago

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 python3-pkg)

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. So fine so far...

Someone who can tell me how to upload the packages?

Last edited 6 years ago by Andreas Müller (previous) (diff)

comment:5 by Andreas Müller, 6 years ago

I made a repository for the packages under https://github.com/amr66/python-osgeo4w. If anybody is willing to upload.

comment:6 by hmercier, 6 years ago

FWIW, I've also python 2.7.15 packages (x64) available from our repository http://osgeo4w-oslandia.com/extra.test

Sources available here https://gitlab.com/Oslandia/osgeo4w/tree/master/packages/python (script adapted from src package found on the main osgeo4w repo)

comment:7 by Andreas Müller, 6 years ago

Hi hmercier, 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!

comment:8 by jef, 6 years ago

Updated python to 2.7.14 as experimental in x86 and x86_64 (pip.exe should now work)

comment:9 by hmercier, 6 years ago

Thank you Jürgen :)

comment:10 by jef, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.