Closed ktry closed 2 years ago
And with Python 2.7.18, I get syntax errors on python3 components:
plonesrc/Plone-5.2.7-UnifiedInstaller-1.0 # ./install.sh --with-python=/usr/bin/python --password=****** --instance=Wiki --daemon-user=plone --owner=plone --group=plone standalone
<snip/>
Compiling Python files.
File "/opt/plone/buildout-cache/eggs/cp27mu/attrs-21.2.0-py2.7.egg/attr/_next_gen.py", line 16
*,
^
SyntaxError: invalid syntax
File "/opt/plone/buildout-cache/eggs/cp27mu/zodbpickle-2.0.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/cp27mu/zodbpickle-2.0.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/cp27mu/zodbpickle-2.0.0-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.
Buildout completed
<snip/>
This would be code that is shipped in a package but is only loaded when starting Plone with a specific Python version.
Is it common for the unified installer to encounter python2 code as reported below when using Python 3.6.15?