Fresh install 5.1.6 error

Installing precompiler.
Compiling Python files.
File "/opt/plone5/buildout-cache/eggs/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/", line 178
def init(self, file, protocol=None, *, fix_imports=True):
SyntaxError: invalid syntax

File "/opt/plone5/buildout-cache/eggs/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/", line 2049
print("%5d:" % pos, end=' ', file=out)
SyntaxError: invalid syntax

File "/opt/plone5/buildout-cache/eggs/zodbpickle-0.7.0-py2.7-linux-x86_64.egg/zodbpickle/tests/", line 145
class use_metaclass(object, metaclass=metaclass):
SyntaxError: invalid syntax

Any idea to fix?

Just try 5.2.1 same error... which version should I use?? :frowning:

Hi mactrash,
it would be easier to read the traceback when you format it properly, either by clicking the code button in the editor or using triple backticks before and after the traceback.

I am no Plone user, but what I can see is you use Python 2 and some Python 3 code gets executed. This can't work.

Which os do you use? How did you try to install Plone?


Thanks for your quick reply... I am centos 7.7 and installer with the installer ... try both python 2 and 3 method just bare plone to add-on the install was success... then if run buildout it show such error in the middle

As the installer documentation notes, you may ignore syntax errors during the precompile phase.