I'm getting this error on an simple buildout for upgrading Plone from 4.3.14 to 4.3.15:
# sudo -u plone_buildout bin/buildout
Develop: '/opt/Plone/zeocluster/src/sb.exergo'
Getting distribution for 'plone.recipe.zeoserver==1.3.1'.
While:
Installing.
Getting section zeoserver.
Initializing section zeoserver.
Installing recipe plone.recipe.zeoserver.
Getting distribution for 'plone.recipe.zeoserver==1.3.1'.
Error: Couldn't find a distribution for 'plone.recipe.zeoserver==1.3.1'.
*************** PICKED VERSIONS ****************
[versions]
*************** /PICKED VERSIONS ***************
What is the problem? My buildout.cfg should be fine and ready to upgrade:
extends =
base.cfg
# versions.cfg
# http://dist.plone.org/release/4.3.3/versions.cfg
http://dist.plone.org/release/4.3-latest/versions.cfg
# If you change your Plone version, you'll also need to update
# the repository link below.
find-links +=
# http://dist.plone.org/release/4.3.3
http://dist.plone.org/release/4.3-latest
I added the index value but now I got some other errrors:
# sudo -u plone_buildout bin/buildout
Develop: '/opt/Plone/zeocluster/src/sb.exergo'
Getting distribution for 'plone.recipe.zeoserver==1.3.1'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.recipe.zeoserver 1.3.1.
Getting distribution for 'plone.recipe.zope2instance==4.3'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.recipe.zope2instance 4.3.
Uninstalling precompiler.
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling backup.
Uninstalling client2.
Uninstalling client1.
Uninstalling zeoserver.
Installing zeoserver.
Created directory /opt/Plone/zeocluster/parts/zeoserver
Created directory /opt/Plone/zeocluster/parts/zeoserver/etc
Created directory /opt/Plone/zeocluster/parts/zeoserver/var
Created directory /opt/Plone/zeocluster/parts/zeoserver/log
Created directory /opt/Plone/zeocluster/parts/zeoserver/bin
Wrote file /opt/Plone/zeocluster/parts/zeoserver/etc/zeo.conf
Wrote file /opt/Plone/zeocluster/parts/zeoserver/bin/zeoctl
Changed mode for /opt/Plone/zeocluster/parts/zeoserver/bin/zeoctl to 755
Wrote file /opt/Plone/zeocluster/parts/zeoserver/bin/runzeo
Changed mode for /opt/Plone/zeocluster/parts/zeoserver/bin/runzeo to 755
Generated script '/opt/Plone/zeocluster/bin/zeoserver'.
Generated script '/opt/Plone/zeocluster/bin/zeopack'.
Generated script '/opt/Plone/zeocluster/bin/repozo'.
Installing client1.
Getting distribution for 'Plone==4.3.15'.
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
Got Plone 4.3.15.
Getting distribution for 'plone.app.jquerytools==1.9.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.jar' found anywhere in distribution
warning: no previously-included files matching 'jslint.js' found anywhere in distribution
warning: no previously-included files matching 'jqt_checkout_build' found anywhere in distribution
Got plone.app.jquerytools 1.9.2.
Getting distribution for 'Products.Archetypes==1.9.17'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files found matching '.installed.cfg'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'bootstrap.py'
warning: no previously-included files found matching 'buidlout.cfg'
File "build/bdist.linux-i686/egg/Products/Archetypes/skins/archetypes/lookupMime.py", line 19
return mimetypes[0].name()
SyntaxError: 'return' outside function
...
Got Products.Archetypes 1.9.17.
Getting distribution for 'plone.app.caching==1.1.12'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.app.caching 1.1.12.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Couldn't find index page for 'eggtestinfo' (maybe misspelled?)
No local packages or download links found for eggtestinfo
error: Could not find suitable distribution for Requirement.parse('eggtestinfo')
An error occurred when trying to install Products.GenericSetup 1.8.8. Look above this message for any errors that were output by easy_install.
While:
Installing client1.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Error: Couldn't install: Products.GenericSetup 1.8.8
# sudo -u plone_buildout bin/buildout
Develop: '/opt/Plone/zeocluster/src/sb.exergo'
Updating zeoserver.
Installing client1.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Couldn't find index page for 'eggtestinfo' (maybe misspelled?)
No local packages or download links found for eggtestinfo
error: Could not find suitable distribution for Requirement.parse('eggtestinfo')
An error occurred when trying to install Products.GenericSetup 1.8.8. Look above this message for any errors that were output by easy_install.
While:
Installing client1.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Error: Couldn't install: Products.GenericSetup 1.8.8
I'm so disappointed by Plone and its update process (by the way, the update process is not one of the easiest I know). Sorry, but I cannot understand why a simple patch update from version 4.3.14 to 4.3.15 brings so many problems? I have to add a new configuration option (index = https://pypi.python.org/simple/) and still got errors. For what do I need 'Products.GenericSetup==1.8.8' and why does it have package errors? Has anyone tried an update before publishing the new version?
your problem has nothing to do with Plone or its update process; the first problem was due to changes on PyPI scheme; the second, I have no idea: it works perfectly for me.
thanks for answer, but the download isn't really my problem. In the update process y got this error:
# sudo -u plone_buildout bin/buildout
Develop: '/opt/Plone/zeocluster/src/sb.exergo'
Uninstalling precompiler.
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling backup.
Uninstalling client2.
Uninstalling client1.
Uninstalling zeoserver.
Installing zeoserver.
Created directory /opt/Plone/zeocluster/parts/zeoserver
Created directory /opt/Plone/zeocluster/parts/zeoserver/etc
Created directory /opt/Plone/zeocluster/parts/zeoserver/var
Created directory /opt/Plone/zeocluster/parts/zeoserver/log
Created directory /opt/Plone/zeocluster/parts/zeoserver/bin
Wrote file /opt/Plone/zeocluster/parts/zeoserver/etc/zeo.conf
Wrote file /opt/Plone/zeocluster/parts/zeoserver/bin/zeoctl
Changed mode for /opt/Plone/zeocluster/parts/zeoserver/bin/zeoctl to 755
Wrote file /opt/Plone/zeocluster/parts/zeoserver/bin/runzeo
Changed mode for /opt/Plone/zeocluster/parts/zeoserver/bin/runzeo to 755
Generated script '/opt/Plone/zeocluster/bin/zeoserver'.
Generated script '/opt/Plone/zeocluster/bin/zeopack'.
Generated script '/opt/Plone/zeocluster/bin/repozo'.
Installing client1.
The constraint, 2.0.3, is not consistent with the requirement, 'plone.protect>=3.1.1'.
While:
Installing client1.
Error: Bad constraint 2.0.3 plone.protect>=3.1.1
*************** PICKED VERSIONS ****************
[versions]
Products.EasyNewsletter = 3.0.4
Products.PloneFormGen = 1.7.12
*************** /PICKED VERSIONS ***************
Then correcting in buildout.cfg:
[versions]
...
plone.protect =
Now I got this error:
# sudo -u plone_buildout bin/buildout
Develop: '/opt/Plone/zeocluster/src/sb.exergo'
Updating zeoserver.
Installing client1.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Couldn't find index page for 'eggtestinfo' (maybe misspelled?)
No local packages or download links found for eggtestinfo
error: Could not find suitable distribution for Requirement.parse('eggtestinfo')
An error occurred when trying to install Products.GenericSetup 1.8.8. Look above this message for any errors that were output by easy_install.
While:
Installing client1.
Getting distribution for 'Products.GenericSetup==1.8.8'.
Error: Couldn't install: Products.GenericSetup 1.8.8
So if the automatic update of GenericSetup not works, how can I do it manually? Because the curl download and the "python setup.py build" works.
I share your pain - to a certain degree. In most cases the issues are related to setuptools, invalid or insufficent pinng of versions. My major is the bootstrap process with virtualenv, setuptools and zc.buildout. In particular the behaviour differs from Linux distro to Linux distro and lots of fun with testing Plone buildouts on Travis and with Docker...Plone is usually not part of the problem...it is the bootstrapping process that is fragile.
@zopyx I'd say buildout/setuptools and us having so many packages is partly to blame. If something does wrong it has the possibility to break everything. You can't add a single package, even your own dev plugin, without running the risk of something breaking. And then you are faced with learning a lot quickly to get yourself out of that mess, which is scary for someone who just wants a website.
I'm not sure there is a simple way out of it though.
Part of this is due to the flexibility of buildout. A long time ago, Tres Seavers had proposed meta eggs as an alternative to describe the requirements of an application: a meta egg is an essentially empty package which consists just of the application's list of requirements (usually version pinned).
thanks, I don't get the point on using it and seems to be pretty old and probably useless now; I think we need to get rid of that dependency.
and yes, I have to agree that the installation process is quite fragile at the moment: I had to help @agnogueira last week because of the latest issue related with setuptools, buildout and wheels:
seems we need to update more frequently our versions to avoid further issues.