Can't upgrade from 5.1.6 to 5.2

Hello guys, first timer here.

I've got some problem on upgrading the plone to 5.1.6 to 5.2,

here is my error

Installing instance.
Generated script '/var/www/plone/zinstance/bin/instance'.
Generated interpreter '/var/www/plone/zinstance/parts/instance/bin/interpreter'.
Generated script '/var/www/plone/zinstance/bin/update_locale'.
Installing repozo.
Generated script '/var/www/plone/zinstance/bin/repozo'.
Updating backup.
Installing zopepy.
Generated interpreter '/var/www/plone/zinstance/bin/zopepy'.
Installing unifiedinstaller.
Installing precompiler.
Compiling Python files.
File "/var/www/plone/buildout-cache/eggs/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 "/var/www/plone/buildout-cache/eggs/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 "/var/www/plone/buildout-cache/eggs/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

Compiling locale files.
Error while compiling /var/www/plone/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test_escape.po
Error while compiling /var/www/plone/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test5.po
Installing setpermissions.
setpermissions: Running '# Dummy references to force this to execute after referenced parts
echo /var/www/plone/zinstance/var/backups yes > /dev/null
chmod 600 .installed.cfg

Make sure anything we've created in var is r/w by our group

find /var/www/plone/zinstance/var -type d -exec chmod 770 {} ; 2> /dev/null
find /var/www/plone/zinstance/var -type f -exec chmod 660 {} ; 2> /dev/null
find /var/www/plone/zinstance/var -type d -exec chmod 770 {} ; 2> /dev/null
find /var/www/plone/zinstance/var -type f -exec chmod 660 {} ; 2> /dev/null
chmod 754 /var/www/plone/zinstance/bin/*'
^CTraceback (most recent call last):
File "bin/buildout", line 10, in
sys.exit(main())
File "/var/www/plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2128, in main
getattr(buildout, command)(args)
File "/var/www/plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 798, in install
installed_files = self[part]._call(recipe.install)
File "/var/www/plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1558, in _call
return f()
File "/var/www/plone/buildout-cache/eggs/plone.recipe.command-1.1-py2.7.egg/plone/recipe/command/init.py", line 35, in install
self._execute(command)
File "/var/www/plone/buildout-cache/eggs/plone.recipe.command-1.1-py2.7.egg/plone/recipe/command/init.py", line 21, in _execute
retcode = call(command, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 1099, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.7/subprocess.py", line 125, in _eintr_retry_call
return func(*args)
KeyboardInterrupt
seanhui@pc-stf-portal01:/var/www/plone/zinstance$ sudo bin/plonectl start instance: daemon process already running; pid=337600
seanhui@pc-stf-portal01:/var/www/plone/zinstance$ cd var
-bash: cd: var: Permission denied
seanhui@pc-stf-portal01:/var/www/plone/zinstance$ sudo vi buildout.cfg seanhui@pc-stf-portal01:/var/www/plone/zinstance$ sudo bin/plonectl stop
instance: .
daemon process stopped
seanhui@pc-stf-portal01:/var/www/plone/zinstance$ sudo -u plone_buildout bin/buildout
Getting distribution for 'zope.security==4.3.1'.
/tmp/easy_install-GHqijv/zope.security-4.3.1/setup.py:102: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See Deprecate and remove 'Features' · Issue #65 · pypa/setuptools · GitHub.
"_zope_security_checker.c")]
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
src/zope/proxy/_zope_proxy_proxy.c: In function ‘wrap_getattro’:
src/zope/proxy/_zope_proxy_proxy.c:211:22: warning: implicit declaration of function ‘PyUnicode_AsUTF8’; did you mean ‘PyUnicode_EncodeUTF7’? [-Wimplicit-function-declaration]
211 | name_as_string = PyUnicode_AsUTF8(name);
| ^~~~~~~~~~~~~~~~
| PyUnicode_EncodeUTF7
src/zope/proxy/_zope_proxy_proxy.c:211:20: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
211 | name_as_string = PyUnicode_AsUTF8(name);
| ^
src/zope/proxy/_zope_proxy_proxy.c: In function ‘wrap_setattro’:
src/zope/proxy/_zope_proxy_proxy.c:275:20: warning: assignment to ‘const char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
275 | name_as_string = PyUnicode_AsUTF8(name);
| ^
src/zope/proxy/_zope_proxy_proxy.c: At top level:
src/zope/proxy/_zope_proxy_proxy.c:314:8: error: unknown type name ‘Py_hash_t’
314 | static Py_hash_t
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:581:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object *, struct _object )’} [-Wincompatible-pointer-types]
581 | wrap_pow, /
nb_power /
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:581:5: note: (near initialization for ‘wrap_as_number.nb_divmod’)
src/zope/proxy/_zope_proxy_proxy.c:582:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object )’} [-Wincompatible-pointer-types]
582 | wrap_neg, /
nb_negative /
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:582:5: note: (near initialization for ‘wrap_as_number.nb_power’)
src/zope/proxy/_zope_proxy_proxy.c:585:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘int ()(PyObject )’ {aka ‘int ()(struct _object )’} [-Wincompatible-pointer-types]
585 | wrap_bool, /
nb_bool, formerly nb_nonzero /
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:585:5: note: (near initialization for ‘wrap_as_number.nb_absolute’)
src/zope/proxy/_zope_proxy_proxy.c:586:5: warning: initialization of ‘int (
)(PyObject )’ {aka ‘int ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object )’} [-Wincompatible-pointer-types]
586 | wrap_invert, /
nb_invert /
| ^~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:586:5: note: (near initialization for ‘wrap_as_number.nb_nonzero’)
src/zope/proxy/_zope_proxy_proxy.c:587:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
587 | wrap_lshift, /
nb_lshift /
| ^~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:587:5: note: (near initialization for ‘wrap_as_number.nb_invert’)
src/zope/proxy/_zope_proxy_proxy.c:592:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object )’} [-Wincompatible-pointer-types]
592 | wrap_int, /
nb_int /
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:592:5: note: (near initialization for ‘wrap_as_number.nb_or’)
src/zope/proxy/_zope_proxy_proxy.c:598:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
598 | wrap_iadd, /
nb_inplace_add /
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:598:5: note: (near initialization for ‘wrap_as_number.nb_long’)
src/zope/proxy/_zope_proxy_proxy.c:599:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
599 | wrap_isub, /
nb_inplace_subtract /
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:599:5: note: (near initialization for ‘wrap_as_number.nb_float’)
src/zope/proxy/_zope_proxy_proxy.c:600:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
600 | wrap_imul, /
nb_inplace_multiply /
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:600:5: note: (near initialization for ‘wrap_as_number.nb_oct’)
src/zope/proxy/_zope_proxy_proxy.c:601:5: warning: initialization of ‘PyObject * (
)(PyObject )’ {aka ‘struct _object * ()(struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
601 | wrap_imod, /
nb_inplace_remainder /
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:601:5: note: (near initialization for ‘wrap_as_number.nb_hex’)
src/zope/proxy/_zope_proxy_proxy.c:602:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object *, struct _object )’} [-Wincompatible-pointer-types]
602 | (ternaryfunc)wrap_ipow, /
nb_inplace_power /
| ^
src/zope/proxy/_zope_proxy_proxy.c:602:5: note: (near initialization for ‘wrap_as_number.nb_inplace_add’)
src/zope/proxy/_zope_proxy_proxy.c:607:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} [-Wincompatible-pointer-types]
607 | wrap_ior, /
nb_inplace_or /
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:607:5: note: (near initialization for ‘wrap_as_number.nb_inplace_power’)
src/zope/proxy/_zope_proxy_proxy.c:615:5: warning: initialization of ‘PyObject * (
)(PyObject *, PyObject )’ {aka ‘struct _object * ()(struct _object *, struct _object )’} from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object )’} [-Wincompatible-pointer-types]
615 | wrap_index, /
nb_index /
| ^~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:615:5: note: (near initialization for ‘wrap_as_number.nb_inplace_or’)
src/zope/proxy/_zope_proxy_proxy.c:669:5: warning: initialization of ‘long int (
)(PyObject )’ {aka ‘long int ()(struct _object )’} from incompatible pointer type ‘int ()(PyObject )’ {aka ‘int ()(struct _object )’} [-Wincompatible-pointer-types]
669 | wrap_hash, /
tp_hash */
| ^~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:669:5: note: (near initialization for ‘ProxyType.tp_hash’)
src/zope/proxy/_zope_proxy_proxy.c: In function ‘PyInit__zope_proxy_proxy’:
src/zope/proxy/_zope_proxy_proxy.c:48:23: error: variable ‘moduledef’ has initializer but incomplete type
48 | static struct PyModuleDef moduledef = {
| ^~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:11: error: ‘PyModuleDef_HEAD_INIT’ undeclared (first use in this function)
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~~~~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:11: note: each undeclared identifier is reported only once for each function it appears in
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~~~~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:11: warning: excess elements in struct initializer
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~~~~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:11: note: (near initialization for ‘moduledef’)
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~~~~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:16: warning: excess elements in struct initializer
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:34: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~
src/zope/proxy/zope_proxy_proxy.c:981:16: note: (near initialization for ‘moduledef’)
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:34: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~
src/zope/proxy/zope_proxy_proxy.c:981:37: warning: excess elements in struct initializer
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:40: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~
src/zope/proxy/zope_proxy_proxy.c:981:37: note: (near initialization for ‘moduledef’)
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:40: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~
src/zope/proxy/_zope_proxy_proxy.c:49:45: warning: excess elements in struct initializer
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:45: note: (near initialization for ‘moduledef’)
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:53: warning: excess elements in struct initializer
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:49: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:53: note: (near initialization for ‘moduledef’)
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~~~~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:49:49: note: in definition of macro ‘MOD_DEF’
49 | PyModuleDef_HEAD_INIT, name, doc, -1, methods, };
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:48:35: error: storage size of ‘moduledef’ isn’t known
48 | static struct PyModuleDef moduledef = {
| ^~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:50:14: warning: implicit declaration of function ‘PyModule_Create’; did you mean ‘PyModule_Check’? [-Wimplicit-function-declaration]
50 | ob = PyModule_Create(&moduledef);
| ^~~~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:981:5: note: in expansion of macro ‘MOD_DEF’
981 | MOD_DEF(m, "zope_proxy_proxy", module___doc
, module_functions)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:984:16: warning: ‘return’ with a value, in function returning void
984 | return MOD_ERROR_VAL;
| ^~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:45:39: note: declared here
45 | #define MOD_INIT(name) PyMODINIT_FUNC PyInit
##name(void)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:977:1: note: in expansion of macro ‘MOD_INIT’
977 | MOD_INIT(_zope_proxy_proxy)
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:992:16: warning: ‘return’ with a value, in function returning void
992 | return MOD_ERROR_VAL;
| ^~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:45:39: note: declared here
45 | #define MOD_INIT(name) PyMODINIT_FUNC PyInit
##name(void)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:977:1: note: in expansion of macro ‘MOD_INIT’
977 | MOD_INIT(_zope_proxy_proxy)
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:1000:16: warning: ‘return’ with a value, in function returning void
1000 | return MOD_ERROR_VAL;
| ^~~~~~~~~~~~~
src/zope/proxy/zope_proxy_proxy.c:45:39: note: declared here
45 | #define MOD_INIT(name) PyMODINIT_FUNC PyInit
##name(void)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:977:1: note: in expansion of macro ‘MOD_INIT’
977 | MOD_INIT(_zope_proxy_proxy)
| ^~~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:1005:28: warning: ‘return’ with a value, in function returning void
1005 | return MOD_SUCCESS_VAL(m);
| ^
src/zope/proxy/_zope_proxy_proxy.c:43:30: note: in definition of macro ‘MOD_SUCCESS_VAL’
43 | #define MOD_SUCCESS_VAL(val) val
| ^~~
src/zope/proxy/zope_proxy_proxy.c:45:39: note: declared here
45 | #define MOD_INIT(name) PyMODINIT_FUNC PyInit
##name(void)
| ^~~~~~~
src/zope/proxy/_zope_proxy_proxy.c:977:1: note: in expansion of macro ‘MOD_INIT’
977 | MOD_INIT(_zope_proxy_proxy)
| ^~~~~~~~


WARNING:
An optional code optimization (C extension) could not be compiled.
Optimizations for this package will not be available!
()
command 'x86_64-linux-gnu-gcc' failed with exit status 1


File "build/bdist.linux-x86_64/egg/zope/proxy/tests/test_proxy.py", line 522
self.assertEqual(z, y, f'x={x!r}; expr={expr!r}')
^
SyntaxError: invalid syntax

File "/tmp/easy_install-GHqijv/zope.security-4.3.1/.eggs/zope.proxy-5.3-py2.7-linux-x86_64.egg/zope/proxy/tests/test_proxy.py", line 522
self.assertEqual(z, y, f'x={x!r}; expr={expr!r}')
^
SyntaxError: invalid syntax

https://docs.google.com/document/d/16_4NX88ToHF-bSOF2zsnTFf23ue-pk-w7h-f9MwAPZs/edit?usp=sharing

the whole error

did you see this upgrade guide: Upgrading Plone 5.1 to 5.2 — Plone Documentation v6

especially when upgrading py2 -> py3 you need to do extra work on the database: Migrating Plone 5.2 to Python 3 — Plone Documentation v6

so first 5.1 -> 5.2 in python 2, then 5.2py2 -> 5.2py3

It shows that it was trying to build zope.proxy 5.3, but Plone 5.2 uses zope.proxy 4.6.1. It seems you haven't pinned the versions for Plone 5.2 successfully, and the newer version of zope.proxy isn't compatible with Python 2.

what if i don't want to upgrade from python2 to python3, i just need to upgrade the plone from 5.1.6 to 5.2? may be greatly to 5.2.15

Getting distribution for 'zope.security==4.3.1'.
/tmp/easy_install-xGmP16/zope.security-4.3.1/setup.py:102: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.

Getting distribution for 'zope.security==4.2.2'.
/tmp/easy_install-Xnmbxa/zope.security-4.2.2/setup.py:102: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.

new error, i try 4.3.5, it said can't find the root@pc-stf-portal01:/var/www/plone/zinstance# sudo -u plone_buildout bin/buildout
Getting distribution for 'zope.security==4.3.5'.
While:
Installing.
Getting section instance.
Initializing section instance.
Installing recipe plone.recipe.zope2instance.
Getting distribution for 'zope.security==4.3.5'.
Error: Couldn't find a distribution for 'zope.security==4.3.5'.

i tried to upgrade it to 5.2.15

here is the error

Getting distribution for 'zope.security==5.8'.
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.

here is the whole error:

https://docs.google.com/document/d/11JlBSFDlAAFlv2VLhk2cMRcRh8F51RR2ZVKtR2AFgUE/edit?usp=sharing

What steps did you take to upgrade to 5.2.15?

First, i change the bin/buildout.cfg

inside, that's a place called:

extends =
     base.cfg
#   versions.cfg
#   http://dist.plone.org/release/5.1.6/versions.cfg
     https://dist.plone.org/release/5.2.15/versions.cfg

i changed it to that, and then i save and quit

after that, i type on the terminal, under the directory zinstance, i type sudo -u plone_buildout bin/buildout

and it start buildout, and it prompt out these error

https://dist.plone.org/release/5.2.15/requirements.txt

did you try to do a pip install -r https://dist.plone.org/release/5.2.15/requirements.txt?

Other worth reading posts:

https://plone.org/download/releases/5.2.11

just tried, same error, :smiling_face_with_tear:

Try to set this in your buildout.cfg:

[buildout]
show-picked-versions = true
allow-picked-versions = false

and investigate with bin/buildout annotate which versions are pinned and where.

If you then run bin/buildout -Nv you may see which dependency tries to pull newer (unpinned) versions of packages to your buildout.

And if you stay in py2.7 check the version pins here: buildout.coredev/versions.cfg at 5.2 · plone/buildout.coredev · GitHub and keep them in sync with requirements.txt

1 Like

i write these line to the buildout.cfg, same error.

when i ran bin/buildout -Nv, it showed these follow:

root@pc-stf-portal01:/var/www/plone/zinstance# sudo -u plone_buildout bin/buildout -Nv
Installing 'buildout.sanitycheck'.
We have the distribution that satisfies 'buildout.sanitycheck==1.0.2'.
Installing 'plone.recipe.zope2instance'.
We have the distribution that satisfies 'plone.recipe.zope2instance==6.13.0'.
Getting required 'zc.recipe.egg==2.0.7'
We have the distribution that satisfies 'zc.recipe.egg==2.0.7'.
Getting required 'waitress==1.4.4'
We have the distribution that satisfies 'waitress==1.4.4'.
Getting required 'six==1.16.0'
We have the distribution that satisfies 'six==1.16.0'.
Getting required 'python-dotenv==0.18.0'
We have the distribution that satisfies 'python-dotenv==0.18.0'.
Getting required 'Zope==4.8.10'
We have the distribution that satisfies 'Zope==4.8.10'.
Getting required 'ZODB==5.8.0'
We have the distribution that satisfies 'ZODB==5.8.0'.
Getting required 'ZEO==5.3.0'
We have the distribution that satisfies 'ZEO==5.3.0'.
Getting required 'Paste==3.5.2'
We have the distribution that satisfies 'Paste==3.5.2'.
Getting required 'typing==3.10.0.0'
We have the distribution that satisfies 'typing==3.10.0.0'.
Getting required 'zope.viewlet==4.3'
We have the distribution that satisfies 'zope.viewlet==4.3'.
Getting required 'zope.traversing==4.4.1'
We have the distribution that satisfies 'zope.traversing==4.4.1'.
Getting required 'zope.testing==4.10'
We have the distribution that satisfies 'zope.testing==4.10'.
Getting required 'zope.testbrowser==5.6.1'
We have the distribution that satisfies 'zope.testbrowser==5.6.1'.
Getting required 'zope.tales==5.2'
We have the distribution that satisfies 'zope.tales==5.2'.
Getting required 'zope.tal==4.5'
We have the distribution that satisfies 'zope.tal==4.5'.
Getting required 'zope.size==4.4'
We have the distribution that satisfies 'zope.size==4.4'.
Getting required 'zope.site==4.6.1'
We have the distribution that satisfies 'zope.site==4.6.1'.
Getting required 'zope.sequencesort==4.2'
We have the distribution that satisfies 'zope.sequencesort==4.2'.
Getting required 'zope.security==5.8'
We have no distributions for zope.security that satisfies 'zope.security==5.8'.
Getting distribution for 'zope.security==5.8'.
Download cache has zope.security 5.8 at: /var/www/plone/buildout-cache/downloads/dist/zope.security-5.8.tar.gz
Running easy_install:
"/var/www/plone/zinstance/bin/python2.7" "-c" "import sys; sys.path[0:0] = ['/var/www/plone/zinstance/lib/python2.7/site-packages']; from setuptools.command.easy_install import main; main()" "-mZUNxd" "/var/www/plone/buildout-cache/eggs/tmpJ16A38" "-q" "/var/www/plone/buildout-cache/downloads/dist/zope.security-5.8.tar.gz"

More things you can try to fix this:

  • recreate your python2.7 virtualenv
  • remove everything inside download-cache (we occasionally had problems with corrupted downloads)
  • clear eggs-directory
  • paste the output of bin/buildout annotate here, so there might be more pointers for solutions.
  • try to (shallow) clone and build the coredev GitHub - plone/buildout.coredev at 5.2 with your python

i found out that when i limit the zope.security to 5.1.1, i run the following code properly, however, when i start the plone, it won't start properly, it will shut down automatically.

Getting distribution for 'zope.schema==4.9.3'.
Got zope.schema 4.9.3.
Getting distribution for 'zope.publisher==5.0.1'.
Got zope.publisher 5.0.1.
Getting distribution for 'zope.ptresource==4.2.0'.
Got zope.ptresource 4.2.0.
Getting distribution for 'zope.processlifetime==2.3.0'.
Got zope.processlifetime 2.3.0.
Getting distribution for 'zope.pagetemplate==4.4.1'.
Got zope.pagetemplate 4.4.1.
Getting distribution for 'zope.location==4.2'.
Got zope.location 4.2.
Getting distribution for 'zope.lifecycleevent==4.3.0'.
Got zope.lifecycleevent 4.3.
Getting distribution for 'zope.interface==4.6.0'.
Got zope.interface 4.6.0.
Getting distribution for 'zope.i18nmessageid==4.3.1'.
/tmp/easy_install-ktzNMW/zope.i18nmessageid-4.3.1/setup.py:43: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
  [os.path.normcase(codeoptimization_c)]
/usr/lib/python2.7/distutils/core.py:111: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
  _setup_distribution = dist = klass(attrs)
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
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got zope.i18nmessageid 4.3.1.
Getting distribution for 'zope.i18n[zcml]==4.6.2'.
Got zope.i18n 4.6.2.
Getting distribution for 'zope.globalrequest==1.5'.
warning: no files found matching '*.txt'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got zope.globalrequest 1.5.
Getting distribution for 'zope.exceptions==4.3'.
Got zope.exceptions 4.3.
Getting distribution for 'zope.event==4.4'.
Got zope.event 4.4.
Getting distribution for 'zope.deferredimport==4.3'.
Got zope.deferredimport 4.3.
Getting distribution for 'zope.contenttype==4.4'.
Got zope.contenttype 4.4.
Getting distribution for 'zope.configuration==4.3.1'.
Got zope.configuration 4.3.1.
Getting distribution for 'zope.component==4.5'.
Got zope.component 4.5.
Getting distribution for 'zope.browserresource==4.3'.
Got zope.browserresource 4.3.
Getting distribution for 'zope.browser==2.3'.
Got zope.browser 2.3.
Getting distribution for 'zExceptions==4.1'.
Got zExceptions 4.1.
Getting distribution for 'z3c.pt==3.2.0'.
Got z3c.pt 3.2.0.
Getting distribution for 'transaction==2.4.0'.
Got transaction 2.4.0.
Getting distribution for 'ipaddress==1.0.22'.
Got ipaddress 1.0.22.
Getting distribution for 'ZConfig==3.5.0'.
Got ZConfig 3.5.0.
Getting distribution for 'RestrictedPython==4.0'.
Got RestrictedPython 4.0.
Getting distribution for 'Persistence==3.0'.
warning: no files found matching 'appveyor.yml'
warning: no previously-included files found matching 'appveyor.yml'
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
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got Persistence 3.0.
Getting distribution for 'PasteDeploy==2.0.1'.
Got PasteDeploy 2.0.1.
Getting distribution for 'ExtensionClass==4.4'.
warning: no files found matching 'bootstrap.py'
warning: no previously-included files found matching 'bootstrap.py'
warning: no files found matching '*.yml'
warning: no previously-included files found matching '*.yml'
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
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got ExtensionClass 4.4.
Getting distribution for 'DocumentTemplate==3.1b2'.
Got DocumentTemplate 3.1b2.
Getting distribution for 'DateTime==4.3'.
Got DateTime 4.3.
Getting distribution for 'Acquisition==4.6'.
warning: no files found matching 'bootstrap.py'
warning: no previously-included files found matching 'bootstrap.py'
warning: no files found matching '*.yml'
warning: no previously-included files found matching '*.yml'
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
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got Acquisition 4.6.
Getting distribution for 'AccessControl==4.0'.
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got AccessControl 4.0.
Getting distribution for 'zodbpickle==1.0.4'.
Got zodbpickle 1.0.4.
Getting distribution for 'zc.lockfile==1.4'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zc.lockfile 1.4.
Getting distribution for 'trollius==2.2'.
Got trollius 2.2.
Getting distribution for 'futures==3.2.0'.
Got futures 3.2.0.
Getting distribution for 'zdaemon==4.3'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got zdaemon 4.3.
Getting distribution for 'SoupSieve==1.9.2'.
Got soupsieve 1.9.2.
Getting distribution for 'BeautifulSoup4==4.7.1'.
Got beautifulsoup4 4.7.1.
Getting distribution for 'WebTest==2.0.33'.
Got WebTest 2.0.33.
Getting distribution for 'pytz==2019.1'.
Got pytz 2019.1.
Getting distribution for 'zope.cachedescriptors==4.3.1'.
Got zope.cachedescriptors 4.3.1.
Getting distribution for 'zope.annotation==4.7.0'.
Got zope.annotation 4.7.0.
Getting distribution for 'python-gettext==4.0'.
warning: no files found matching '*.txt'
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 '.DS_Store' found anywhere in distribution
Got python-gettext 4.0.
Getting distribution for 'zope.filerepresentation==4.2.0'.
Got zope.filerepresentation 4.2.0.
Getting distribution for 'zope.hookable==4.2.0'.
/tmp/easy_install-2CLF1l/zope.hookable-4.2.0/setup.py:70: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
  [os.path.join('src', 'zope', 'hookable', "_zope_hookable.c")],
/usr/lib/python2.7/distutils/core.py:111: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
  _setup_distribution = dist = klass(attrs)
warning: no previously-included files matching '*.pyc' found anywhere in distribution
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
Got zope.hookable 4.2.0.
Getting distribution for 'Chameleon==3.6.2'.
Got Chameleon 3.6.2.
Getting distribution for 'zope.structuredtext==4.3'.
Got zope.structuredtext 4.3.
Getting distribution for 'roman==3.2'.
Got roman 3.2.
Getting distribution for 'AuthEncoding==4.1'.
Got AuthEncoding 4.1.
Getting distribution for 'cffi==1.12.3'.
Got cffi 1.12.3.
Getting distribution for 'webob==1.8.5'.
Got WebOb 1.8.5.
Getting distribution for 'backports.functools-lru-cache==1.5'.
Got backports.functools-lru-cache 1.5.
Getting distribution for 'pycparser==2.19'.
warning: no previously-included files found matching 'setup.pyc'
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.lex: module references __file__
pycparser.ply.lex: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module references __file__
pycparser.ply.yacc: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module MAY be using inspect.stack
pycparser.ply.ygen: module references __file__
Got pycparser 2.19.
Getting distribution for 'plone.recipe.precompiler==0.7.1'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got plone.recipe.precompiler 0.7.1.
Uninstalling precompiler.
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling repozo.
Uninstalling instance.
Unused options for buildout: 'allow-picked-version' 'show-picked-version'.
Installing instance.
Getting distribution for 'Plone==5.2.0'.
Got Plone 5.2.0.
Getting distribution for 'plone.rest==1.4.0'.
warning: no directories found matching 'docs'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching 'bootstrap-buildout.py'
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'requirements.txt'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got plone.rest 1.4.0.
Getting distribution for 'jsonschema==3.0.1'.
Got jsonschema 3.0.1.
Getting distribution for 'Products.PluggableAuthService==2.0'.
Got Products.PluggableAuthService 2.0.
Getting distribution for 'Products.PlonePAS==6.0.2'.
Got Products.PlonePAS 6.0.2.
Getting distribution for 'Products.GenericSetup==2.0'.
Got Products.GenericSetup 2.0.
Getting distribution for 'Products.CMFCore==2.4.0'.
Got Products.CMFCore 2.4.0.
Getting distribution for 'zope.formlib==4.6.0'.
warning: no files found matching 'Makefile' under directory 'docs'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
Got zope.formlib 4.6.0.
Getting distribution for 'plone.app.portlets==4.4.2'.
Got plone.app.portlets 4.4.2.
Getting distribution for 'plone.app.layout==3.2.1'.
Got plone.app.layout 3.2.1.
Getting distribution for 'plone.app.controlpanel==4.0.0'.
Got plone.app.controlpanel 4.0.0.
Getting distribution for 'z3c.jbot==0.8'.
Got z3c.jbot 0.8.
Getting distribution for 'plone.app.upgrade==2.0.27'.
Got plone.app.upgrade 2.0.27.
Getting distribution for 'plone.app.caching==2.0.2'.
Got plone.app.caching 2.0.2.
Getting distribution for 'Products.CMFPlacefulWorkflow==2.0.0'.
Got Products.CMFPlacefulWorkflow 2.0.0.
Getting distribution for 'pyrsistent==0.15.2'.
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
zip_safe flag not set; analyzing archive contents...
Got pyrsistent 0.15.2.
Getting distribution for 'attrs==19.1.0'.
Got attrs 19.1.0.
Getting distribution for 'plone.app.uuid==2.0.0'.
Got plone.app.uuid 2.0.0.
Getting distribution for 'decorator==4.4.0'.
Got decorator 4.4.0.
Getting distribution for 'Products.StandardCacheManagers==4.0.2'.
Got Products.StandardCacheManagers 4.0.2.
Getting distribution for 'Products.Sessions==4.5'.
Got Products.Sessions 4.5.
Getting distribution for 'Products.PluginRegistry==1.7'.
Got Products.PluginRegistry 1.7.
Getting distribution for 'plone.protect==4.1.2'.
Got plone.protect 4.1.2.
Getting distribution for 'plone.i18n==4.0.5'.
Got plone.i18n 4.0.5.
Getting distribution for 'five.localsitemanager==3.2.2'.
Got five.localsitemanager 3.2.2.
Getting distribution for 'Products.ZCatalog==5.0.1'.
Got Products.ZCatalog 5.0.1.
Getting distribution for 'Products.PythonScripts==4.7'.
Got Products.PythonScripts 4.7.
Getting distribution for 'Products.MailHost==4.7'.
Got Products.MailHost 4.7.
Getting distribution for 'Products.BTreeFolder2==4.2'.
Got Products.BTreeFolder2 4.2.
Getting distribution for 'zope.datetime==4.2.0'.
Got zope.datetime 4.2.0.
Getting distribution for 'zope.app.locales==4.0.1'.
Got zope.app.locales 4.0.1.
Getting distribution for 'plone.subrequest==1.9.1'.
Got plone.subrequest 1.9.1.
Getting distribution for 'plone.staticresources==1.1.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*' found under directory 'news'
warning: no previously-included files found matching 'news'
Got plone.staticresources 1.1.0.
Getting distribution for 'plone.outputfilters==3.1.2'.
Got plone.outputfilters 3.1.2.
Getting distribution for 'plone.folder==3.0.0'.
Got plone.folder 3.0.0.
Getting distribution for 'plone.app.workflow==4.0.1'.
Got plone.app.workflow 4.0.1.
Getting distribution for 'plone.app.vocabularies==4.1.0'.
Got plone.app.vocabularies 4.1.0.
Getting distribution for 'plone.app.viewletmanager==3.1.0'.
Got plone.app.viewletmanager 3.1.0.
Getting distribution for 'plone.app.users==2.6.0'.
Got plone.app.users 2.6.0.
Getting distribution for 'plone.app.theming==4.0.1'.
Got plone.app.theming 4.0.1.
Getting distribution for 'plone.app.redirector==2.1.0'.
Got plone.app.redirector 2.1.0.
Getting distribution for 'plone.app.multilingual==5.3.5'.
Got plone.app.multilingual 5.3.5.
Getting distribution for 'plone.app.discussion==3.2.1'.
Got plone.app.discussion 3.2.1.
Getting distribution for 'plone.app.contenttypes==2.1.2'.
Got plone.app.contenttypes 2.1.2.
Getting distribution for 'plone.app.contentrules==4.1.1'.
Got plone.app.contentrules 4.1.1.
Getting distribution for 'plone.app.contentlisting==2.0.0'.
Got plone.app.contentlisting 2.0.0.
Getting distribution for 'plone.app.content==3.7.0'.
Got plone.app.content 3.7.0.
Getting distribution for 'mockup==3.0.2'.
Got mockup 3.0.2.
Getting distribution for 'five.customerize==2.0.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got five.customerize 2.0.0.
Getting distribution for 'calmjs.parse==1.1.3'.
Got calmjs.parse 1.1.3.
Getting distribution for 'ZServer==4.0.1'.
Got ZServer 4.0.1.
Getting distribution for 'Products.SiteErrorLog==5.3'.
Got Products.SiteErrorLog 5.3.
Getting distribution for 'Products.ExternalEditor==3.0'.
Got Products.ExternalEditor 3.0.
Getting distribution for 'Products.DCWorkflow==2.4.0b3'.
Got Products.DCWorkflow 2.4.0b3.
Getting distribution for 'Products.CMFUid==3.0.1'.
Got Products.CMFUid 3.0.1.
Getting distribution for 'Products.CMFQuickInstallerTool==4.0.1'.
Got Products.CMFQuickInstallerTool 4.0.1.
Getting distribution for 'Products.CMFFormController==4.1.0'.
Got Products.CMFFormController 4.1.0.
Getting distribution for 'Products.CMFEditions==3.3.2'.
Got Products.CMFEditions 3.3.2.
Getting distribution for 'Products.CMFDynamicViewFTI==6.0.2'.
Got Products.CMFDynamicViewFTI 6.0.2.
Getting distribution for 'zope.ramcache==2.3'.
Got zope.ramcache 2.3.
Getting distribution for 'plone.app.z3cform==3.1.1'.
Got plone.app.z3cform 3.1.1.
Getting distribution for 'z3c.form==3.7.0'.
Got z3c.form 3.7.0.
Getting distribution for 'plone.z3cform==1.1.0'.
Got plone.z3cform 1.1.0.
Getting distribution for 'plone.rfc822==2.0.1'.
Got plone.rfc822 2.0.1.
Getting distribution for 'plone.namedfile[scales]==5.0.4'.
Got plone.namedfile 5.0.4.
Getting distribution for 'plone.dexterity==2.9.1'.
Got plone.dexterity 2.9.1.
Getting distribution for 'plone.app.textfield==1.3.1'.
Got plone.app.textfield 1.3.1.
Getting distribution for 'lxml==4.3.4'.
Got lxml 4.3.4.
Getting distribution for 'python-dateutil==2.8.0'.
Got python-dateutil 2.8.0.
Getting distribution for 'plone.cachepurging==2.0.1'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.cachepurging 2.0.1.
Getting distribution for 'plone.app.relationfield==2.0.1'.
Got plone.app.relationfield 2.0.1.
Getting distribution for 'Record==3.5'.
Got Record 3.5.
Getting distribution for 'Missing==4.1'.
Got Missing 4.1.
Getting distribution for 'zope.sendmail==5.0'.
Got zope.sendmail 5.0.
Getting distribution for 'future==0.17.1'.
warning: no files found matching '*.au' under directory 'tests'
warning: no files found matching '*.gif' under directory 'tests'
warning: no files found matching '*.txt' under directory 'tests'
zip_safe flag not set; analyzing archive contents...
future.backports.test.ssl_servers: module references __file__
future.backports.test.support: module references __file__
future.standard_library.__init__: module references __file__
future.standard_library.__init__: module references __path__
future.utils.__init__: module MAY be using inspect.stack
past.builtins.misc: module MAY be using inspect.stack
past.translation.__init__: module references __file__
past.translation.__init__: module references __path__
Got future 0.17.1.
Getting distribution for 'plone.resource==2.1.1'.
Got plone.resource 2.1.1.
Getting distribution for 'zope.componentvocabulary==2.2.0'.
Got zope.componentvocabulary 2.2.0.
Getting distribution for 'plone.resourceeditor==3.0.0'.
Got plone.resourceeditor 3.0.0.
Getting distribution for 'z3c.relationfield==0.8.0'.
Got z3c.relationfield 0.8.0.
Getting distribution for 'simplejson==3.16.0'.
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
zip_safe flag not set; analyzing archive contents...
simplejson.tests.__init__: module references __file__
Got simplejson 3.16.0.
Getting distribution for 'plone.app.widgets==3.0.2'.
Got plone.app.widgets 3.0.2.
Getting distribution for 'tempstorage==5.0'.
Got tempstorage 5.0.
Getting distribution for 'Products.ExternalMethod==4.3'.
Got Products.ExternalMethod 4.3.
Getting distribution for 'zope.copy==4.2'.
Got zope.copy 4.2.
Getting distribution for 'piexif==1.1.2'.
Got piexif 1.1.2.
Getting distribution for 'z3c.caching[zcml]==2.1'.
Got z3c.caching 2.1.
Getting distribution for 'zope.intid==4.3.0'.
Got zope.intid 4.3.0.
Getting distribution for 'five.intid==1.2.3'.
Got five.intid 1.2.3.
Getting distribution for 'cssselect==1.0.3'.
Got cssselect 1.0.3.
Getting distribution for 'z3c.objpath==1.2'.
Got z3c.objpath 1.2.
Getting distribution for 'Products.DateRecurringIndex==3.0.0'.
Got Products.DateRecurringIndex 3.0.0.
Getting distribution for 'urllib3==1.25.3'.
Got urllib3 1.25.3.
Getting distribution for 'certifi==2019.6.16'.
Got certifi 2019.6.16.
Generated script '/var/www/plone/zinstance/bin/instance'.
Generated interpreter '/var/www/plone/zinstance/parts/instance/bin/interpreter'.
Generated script '/var/www/plone/zinstance/bin/update_locale'.
Installing repozo.
Generated script '/var/www/plone/zinstance/bin/repozo'.
Updating backup.
Installing zopepy.
Generated interpreter '/var/www/plone/zinstance/bin/zopepy'.
Installing unifiedinstaller.
Installing precompiler.
Compiling Python files.
  File "/var/www/plone/buildout-cache/eggs/zodbpickle-1.0.4-py2.7-linux-x86_64.egg/zodbpickle/pickletools_3.py", line 2049
    print("%5d:" % pos, end=' ', file=out)
                           ^
SyntaxError: invalid syntax

  File "/var/www/plone/buildout-cache/eggs/zodbpickle-1.0.4-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 "/var/www/plone/buildout-cache/eggs/zodbpickle-1.0.4-py2.7-linux-x86_64.egg/zodbpickle/tests/pickletester_3.py", line 142
    class use_metaclass(object, metaclass=metaclass):
                                         ^
SyntaxError: invalid syntax

Compiling locale files.
Updating setpermissions.
setpermissions: Running # Dummy references to force this to execute after referenced parts
echo /var/www/plone/zinstance/var/backups yes > /dev/null
chmod 600 .installed.cfg
# Make sure anything we've created in var is r/w by our group
find /var/www/plone/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /var/www/plone/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
find /var/www/plone/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /var/www/plone/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
chmod 754 /var/www/plone/zinstance/bin/*
Versions had to be automatically picked.
The following part definition lists the versions picked:
[versions]
collective.autoscaling = 1.1.2
collective.impersonate = 1.2
node.ext.ldap = 1.0b10
node.ext.ugm = 0.9.9
pas.plugins.ldap = 1.6.1
plumber = 1.5
pyasn1 = 0.4.5
pyasn1-modules = 0.2.5
webcouturier.dropdownmenu = 3.0.2
yafowil = 2.3.1
yafowil.plone = 3.0.0

# Required by:
# yafowil.yaml==1.3
PyYAML = 5.4.1

# Required by:
# node.ext.ldap==1.0b10
argparse = 1.4.0

# Required by:
# node.ext.ldap==1.0b10
# pas.plugins.ldap==1.6.1
bda.cache = 1.3.0

# Required by:
# collective.exportimport==1.2
hurry.filesize = 0.9

# Required by:
# collective.exportimport==1.2
ijson = 2.6.0

# Required by:
# pas.plugins.ldap==1.6.1
node = 0.9.24

# Required by:
# pas.plugins.ldap==1.6.1
odict = 1.7.0

# Required by:
# node.ext.ldap==1.0b10
passlib = 1.7.1

# Required by:
# pas.plugins.ldap==1.6.1
python-ldap = 3.2.0

# Required by:
# bda.cache==1.3.0
python-memcached = 1.59

# Required by:
# pas.plugins.ldap==1.6.1
yafowil.widget.array = 1.5

# Required by:
# pas.plugins.ldap==1.6.1
yafowil.widget.dict = 1.7

# Required by:
# pas.plugins.ldap==1.6.1
yafowil.yaml = 1.3

i do face the 'products' issue, however, i comment it out like the post said, but the system just won't start, and the log doesn't pop out any useful log

Could you try to install a new Plone 5.2 site and if it runs: modify that buildout.cfg to have the same eggs etc. as the other.
If that works too: stop it, replace the 'var' folder with a copy of the var folder of the old site, run bin/buildout and start again.

The new site with the egg, can't even start