[Legacy] Issue with Plone 4.3, Python 2.7 buildout

Legacy alert:

A customer has an old Plone 4.3.17 site which needs to be migrated to Plone 6.

The buildout configuration is

[buildout]
parts =
    instance
    zeo
    zopepy
    tests
#    code-analysis


index = https://pypi.python.org/simple

show-picked-versions = true

extends =
        https://dist.plone.org/release/4.3.18/versions.cfg

versions = versions


find-links =
    https://dist.plone.org/release/4.3.18
    https://dist.plone.org/thirdparty

which causes this error:

Got zc.recipe.egg 1.3.2.
Installing 'plone.recipe.zope2instance'.
We have no distributions for plone.recipe.zope2instance that satisfies 'plone.recipe.zope2instance==4.2.22'.
Getting distribution for 'plone.recipe.zope2instance==4.2.22'.
Could't load zc.buildout entry point default
from plone.recipe.zope2instance:
Couldn't find a distribution for 'plone.recipe.zope2instance==4.2.22'..
While:
  Installing.
  Getting section instance.
  Initializing section instance.
  Installing recipe plone.recipe.zope2instance.
  Getting distribution for 'plone.recipe.zope2instance==4.2.22'.
Error: Couldn't find a distribution for 'plone.recipe.zope2instance==4.2.22'.

plone.recipe.zope2instance==4.2.22 is clearly available on PyPI. Also the index URL is up-to-date. Any idea?

setuptools==36.6.0
zc.buildout==2.8.0

Download manually and add it to the egg Folder

I have seen this when python 2.7 has been built without SSL support.

FWIW, in our latest Plone 4.3.x-s that we have migrated to Plone 6, the mix of setuptools and zc.buildout used has been the following:

setuptools==38.7.0
zc.buildout==2.12.1

We also had the same problems because of missing SSL support in python2. You can quickly check if there's a SSL problem with

python -c "import ssl; print(ssl.OPENSSL_VERSION)"

Nope, already verified

plone-test@www:~/zchl_buildout> bin/python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2p-fips  14 Aug 2018

I think you have to check some custom version pins, because the original version of plone.recipe.zope2instance in https://dist.plone.org/release/4.3.18/versions.cfg is 4.4.0 ... I always use bin/buildout annotate to check ...

I could partly solve this issue because the customer found another machine with a setup where the same setup is for whatever reason working - without my error above :slight_smile: Problem solved so far.