plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
243 stars 186 forks source link

upgrade issue #3888

Open m7mdlotfy opened 8 months ago

m7mdlotfy commented 8 months ago

Kindly support as I have the following error while upgrading from version 5.0.5 to 5.1-latest :

Error: Couldn't find a distribution for 'plone.recipe.zeoserver==1.3.1'

here's the buildout:

[buildout]
############################################
# Plone Component Versions

extends =
    base.cfg
#   versions.cfg
    https://dist.plone.org/release/5.1-latest/versions.cfg

# If you change your Plone version, you'll also need to update
# the repository link below.
find-links +=
    https://dist.plone.org/release/5.1-latest

find-links += https://pypi.python.org/project/functools32

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

# If you try to start Zope as root, it will change user id to run as
# the effective user specified here. This user id must own the var directory
# of your buildout.
effective-user = plone_daemon
# This user will own the rest of the installation, and should be used to
# run buildout.
buildout-user = plone_buildout
# A flag to tell the Unified Installer whether or not to document sudo use.
need-sudo = yes

############################################
wesleybl commented 8 months ago

@m7mdlotfy I edited the description so that the buildout doesn't appear formatted in it

wesleybl commented 8 months ago

@m7mdlotfy try removing index and find-links:

find-links +=
    https://dist.plone.org/release/5.1-latest

find-links += https://pypi.python.org/project/functools32

index = https://pypi.python.org/simple/
m7mdlotfy commented 8 months ago

@wesleybl thank you for your support. I've tried to remove the index and find links but the same error still exist. actually I've added these lines as recommendations after some search.

I think the point is that plone.recipe.zeoserver==1.3.1 doesn't exist in plone dist https://dist.plone.org/release/5.1-latest

I've tried to update to different versions but I've the same error and when I search for "plone.recipe.zeoserver" , I don't find it in plone dist for all the versions.

wesleybl commented 8 months ago

This minimal buildout worked for me:

[buildout]
parts =
    instance
    zeoserver
extends =
    https://dist.plone.org/release/5.1-latest/versions.cfg
versions = versions

[instance]
recipe = plone.recipe.zope2instance
eggs =
    Plone
    Pillow
user = admin:admin
shared-blob = on
zeo-client = True 

[zeoserver]
recipe = plone.recipe.zeoserver
mauritsvanrees commented 8 months ago

I have transferred this from buildout.coredev to Products.CMFPlone which is the recommended place for general issues. (Or you can try https://community.plone.org.)

One idea: the index you have in your buildout config points to an older PyPI url. I don't know if it helps, but it should be this one:

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

You could run Buildout in very verbose mode (bin/buildout -vvv) to get more information out of it.