I need to upgrade my development environment from Plone 5.0.7 to Plone 5.1.0 to match the production version.
System: Debian 9 (Stretch)
I checked that python2.7 is the default version with: update-alternatives --config python
I changed extends= in buildout.cfg to:
extends =
base.cfg
# versions.cfg
http://dist.plone.org/release/5.1.0/versions.cfg
Here's the output of sudo -u plone_buildout bin/buildout
:
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.
Getting distribution for 'ZODB3==3.11.0'.
warning: no files found matching '*.rst'
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install
Got ZODB3 3.11.0.
Getting distribution for 'zc.recipe.egg==2.0.4'.
Got zc.recipe.egg 2.0.4.
Getting distribution for 'transaction==2.1.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got transaction 2.1.2.
Getting distribution for 'BTrees==4.4.1'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'persistent/__pycache__'
Installed /tmp/easy_install-1REenJ/BTrees-4.4.1/.eggs/persistent-4.2.4.2-py2.7-linux-x86_64.egg
Searching for zope.interface
Reading https://pypi.python.org/simple/zope.interface/
Downloading https://pypi.python.org/packages/bd/d2/25349ed41f9dcff7b3baf87bd88a4c82396cf6e02f1f42bb68657a3132af/zope.interface-4.4.3.tar.gz#md5=8700a4f527c1203b34b10c2b4e7a6912
Best match: zope.interface 4.4.3
Processing zope.interface-4.4.3.tar.gz
Writing /tmp/easy_install-1REenJ/BTrees-4.4.1/temp/easy_install-_ZxS5P/zope.interface-4.4.3/setup.cfg
Running zope.interface-4.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1REenJ/BTrees-4.4.1/temp/easy_install-_ZxS5P/zope.interface-4.4.3/egg-dist-tmp-fGNZLB
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
creating /tmp/easy_install-1REenJ/BTrees-4.4.1/.eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg
Extracting zope.interface-4.4.3-py2.7-linux-x86_64.egg to /tmp/easy_install-1REenJ/BTrees-4.4.1/.eggs
Installed /tmp/easy_install-1REenJ/BTrees-4.4.1/.eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*#' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got BTrees 4.4.1.
Getting distribution for 'persistent==4.2.4.2'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'persistent/__pycache__'
Got persistent 4.2.4.2.
Getting distribution for 'ZODB==5.3.0'.
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'buildout.cfg'
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
Got ZODB 5.3.0.
Getting distribution for 'ZEO==5.1.1'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got ZEO 5.1.1.
Getting distribution for 'Products.ZCatalog==3.0.3'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got Products.ZCatalog 3.0.3.
Getting distribution for 'initgroups==4.0'.
Got initgroups 4.0.
Getting distribution for 'zope.traversing==4.1.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.traversing 4.1.0.
Getting distribution for 'zope.security==4.1.1'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Installed /tmp/easy_install-SXOsMd/zope.security-4.1.1/.eggs/zope.proxy-4.3.0-py2.7-linux-x86_64.egg
Searching for zope.interface
Reading https://pypi.python.org/simple/zope.interface/
Downloading https://pypi.python.org/packages/bd/d2/25349ed41f9dcff7b3baf87bd88a4c82396cf6e02f1f42bb68657a3132af/zope.interface-4.4.3.tar.gz#md5=8700a4f527c1203b34b10c2b4e7a6912
Best match: zope.interface 4.4.3
Processing zope.interface-4.4.3.tar.gz
Writing /tmp/easy_install-SXOsMd/zope.security-4.1.1/temp/easy_install-gxVuMH/zope.interface-4.4.3/setup.cfg
Running zope.interface-4.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-SXOsMd/zope.security-4.1.1/temp/easy_install-gxVuMH/zope.interface-4.4.3/egg-dist-tmp-Ou_S90
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
creating /tmp/easy_install-SXOsMd/zope.security-4.1.1/.eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg
Extracting zope.interface-4.4.3-py2.7-linux-x86_64.egg to /tmp/easy_install-SXOsMd/zope.security-4.1.1/.eggs
Installed /tmp/easy_install-SXOsMd/zope.security-4.1.1/.eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got zope.security 4.1.1.
Getting distribution for 'zope.schema==4.5.0'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got zope.schema 4.5.0.
Getting distribution for 'zope.publisher==4.3.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.publisher 4.3.2.
Getting distribution for 'zope.proxy==4.3.0'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got zope.proxy 4.3.0.
Getting distribution for 'zope.pagetemplate==4.2.1'.
warning: no files found matching '*.pt' under directory 'src'
Got zope.pagetemplate 4.2.1.
Getting distribution for 'zope.interface==4.4.3'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got zope.interface 4.4.3.
Getting distribution for 'zope.i18nmessageid==4.1.0'.
warning: no files found matching '*.zcml' under directory 'src'
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got zope.i18nmessageid 4.1.0.
Getting distribution for 'zope.i18n[zcml]==4.2.0'.
Got zope.i18n 4.2.0.
Getting distribution for 'zope.contenttype==4.2.0'.
warning: no previously-included files found matching 'coverage.xml'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.contenttype 4.2.0.
Getting distribution for 'zope.component==4.4.1'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got zope.component 4.4.1.
Getting distribution for 'zope.browserresource==4.1.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.browserresource 4.1.0.
Getting distribution for 'zope.browserpage==4.1.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.browserpage 4.1.0.
Getting distribution for 'zope.browsermenu==4.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.browsermenu 4.2.
Getting distribution for 'zope.browser==2.1.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.browser 2.1.0.
Getting distribution for 'zLOG==3.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got zLOG 3.0.
Getting distribution for 'zdaemon==4.2.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zdaemon 4.2.0.
Getting distribution for 'tempstorage==4.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got tempstorage 4.0.
Getting distribution for 'pytz==2017.3'.
Got pytz 2017.3.
Getting distribution for 'docutils==0.14'.
warning: no files found matching 'MANIFEST'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*~' found under directory '*'
warning: no previously-included files matching '.DS_Store' found under directory '*'
zip_safe flag not set; analyzing archive contents...
docutils.parsers.rst.directives.misc: module references __file__
docutils.writers.docutils_xml: module references __path__
docutils.writers.html4css1.__init__: module references __file__
docutils.writers.html5_polyglot.__init__: module references __file__
docutils.writers.latex2e.__init__: module references __file__
docutils.writers.odf_odt.__init__: module references __file__
docutils.writers.pep_html.__init__: module references __file__
docutils.writers.s5_html.__init__: module references __file__
Got docutils 0.14.
Getting distribution for 'ZopeUndo==4.3'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got ZopeUndo 4.3.
Getting distribution for 'ZConfig==3.1.0'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got ZConfig 3.1.0.
Getting distribution for 'MultiMapping==3.1'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got MultiMapping 3.1.
Getting distribution for 'Missing==3.2'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got Missing 3.2.
Getting distribution for 'ExtensionClass==4.3.0'.
warning: no previously-included files found matching 'src/coverage.xml'
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got ExtensionClass 4.3.0.
Getting distribution for 'DateTime==4.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got DateTime 4.2.
Getting distribution for 'Acquisition==4.4.2'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got Acquisition 4.4.2.
Getting distribution for 'AccessControl==3.0.14'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got AccessControl 3.0.14.
Getting distribution for 'zodbpickle==0.7.0'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
File "build/bdist.linux-x86_64/egg/zodbpickle/tests/pickletester_3.py", line 145
class use_metaclass(object, metaclass=metaclass):
^
SyntaxError: invalid syntax
File "build/bdist.linux-x86_64/egg/zodbpickle/pickletools_3.py", line 2049
print("%5d:" % pos, end=' ', file=out)
^
SyntaxError: invalid syntax
File "build/bdist.linux-x86_64/egg/zodbpickle/pickle_3.py", line 178
def __init__(self, file, protocol=None, *, fix_imports=True):
^
SyntaxError: invalid syntax
File "/opt/plone/buildout-cache/eggs/tmpMVB2nP/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/pickle_3.py", line 178
def __init__(self, file, protocol=None, *, fix_imports=True):
^
SyntaxError: invalid syntax
File "/opt/plone/buildout-cache/eggs/tmpMVB2nP/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/pickletools_3.py", line 2049
print("%5d:" % pos, end=' ', file=out)
^
SyntaxError: invalid syntax
File "/opt/plone/buildout-cache/eggs/tmpMVB2nP/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/tests/pickletester_3.py", line 145
class use_metaclass(object, metaclass=metaclass):
^
SyntaxError: invalid syntax
Got zodbpickle 0.7.0.
Getting distribution for 'zc.lockfile==1.2.1'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zc.lockfile 1.2.1.
Getting distribution for 'trollius==2.1'.
!!! WARNING !!! The Trollius project is now deprecated!
warning: no files found matching 'release.py'
zip_safe flag not set; analyzing archive contents...
trollius.test_utils: module references __file__
!!! WARNING !!! The Trollius project is now deprecated!
Got trollius 2.1.
Getting distribution for 'futures==3.1.1'.
Got futures 3.1.1.
Getting distribution for 'zope.dottedname==4.2'.
Got zope.dottedname 4.2.
Getting distribution for 'zope.untrustedpython==4.0.0'.
warning: no files found matching '*.txt'
warning: no files found matching '*' under directory 'doc'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zope.untrustedpython 4.0.0.
Uninstalling precompiler.
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling backup.
Uninstalling repozo.
Uninstalling instance.
Installing instance.
/opt/plone/zinstance/local/lib/python2.7/site-packages/pkg_resources/__init__.py:193: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need.
stacklevel=1,
Getting distribution for 'Plone==5.1.0'.
While:
Installing instance.
Getting distribution for 'Plone==5.1.0'.
Error: Couldn't find a distribution for 'Plone==5.1.0'
You can probably ignore all the warnings. However the syntax error is something that cannot be ignored:
sudo bin/plonectl start
instance: Traceback (most recent call last):
File "bin/plonectl", line 13, in <module>
sys.exit(plone.recipe.unifiedinstaller.ctl.main(server=None, clients=['instance'], location=r'/opt/plone/zinstance', binDirectory=r'/opt/plone/zinstance/bin', fileStorage=r'/opt/plone/zinstance/var/filestorage/Data.fs'))
File "/opt/plone/buildout-cache/eggs/plone.recipe.unifiedinstaller-4.3.2-py2.7.egg/plone/recipe/unifiedinstaller/ctl.py", line 120, in main
returncode = controller.runCommand(component, command)
File "/opt/plone/buildout-cache/eggs/plone.recipe.unifiedinstaller-4.3.2-py2.7.egg/plone/recipe/unifiedinstaller/ctl.py", line 83, in runCommand
po = subprocess.Popen(args)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
So, how to proceed from here?
Btw: what is this deprecated Trollius project and how to handle that?