How to install pas.plugins.ldap on Plone 5.0.8

Hello, i want to install pas.plugins.ldap on Plone 5.0.8. What are the best practices and do you have a step by step ?

Thank you in advance.

I suggest you follow the documentation and ask again if you encounter any issues not described there:

there is also an intro available here

Yes i followed the documentation but now in can't acces to plone site.
But i could restart without problem the plone deamon.

Here is the output :

root@plone:/opt/plone/zinstance#  sudo -u plone_buildout bin/buildout
Uninstalling setpermissions.
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 'pas.plugins.ldap'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got pas.plugins.ldap 1.5.3.
Getting distribution for 'yafowil.yaml'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got yafowil.yaml 1.2.
Getting distribution for 'yafowil.widget.dict'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got yafowil.widget.dict 1.6.
Getting distribution for 'yafowil.widget.array'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got yafowil.widget.array 1.4.
Getting distribution for 'yafowil.plone>=1.3'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got yafowil.plone 2.4.1.
Getting distribution for 'yafowil>=2.2b2'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got yafowil 2.2.4.
Getting distribution for 'python-ldap'.
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/ldapobject.py (for module ldap.ldapobject) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/ldapobject.py (for module ldap.ldapobject) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/ldapobject.py (for module ldap.ldapobject) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
Modules/constants.c: In function ‘LDAPinit_constants’:
Modules/constants.c:31:20: warning: unused variable ‘author’ [-Wunused-variable]
   PyObject *zero, *author,*obj;
                    ^
Got python-ldap 2.5.2.
Getting distribution for 'odict'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got odict 1.6.2.
Getting distribution for 'node.ext.ldap>=1.0b7'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got node.ext.ldap 1.0b7.
Getting distribution for 'node'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got node 0.9.22.
Getting distribution for 'bda.cache'.
Got bda.cache 1.2.0.
Getting distribution for 'PyYAML'.
build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h: Aucun fichier ou dossier de ce type
 #include <yaml.h>
                  ^
compilation terminated.

libyaml is not found or a compiler error: forcing --without-libyaml
(if libyaml is installed correctly, you may need to
 specify the option --include-dirs or uncomment and
 modify the parameter include_dirs in setup.cfg)
zip_safe flag not set; analyzing archive contents...
Got PyYAML 3.12.
Getting distribution for 'plumber>=1.3'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got plumber 1.5.
Getting distribution for 'node.ext.ugm>=0.9.9'.
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*.pyo' found under directory 'src'
Got node.ext.ugm 0.9.9.
Getting distribution for 'argparse==1.4.0'.
Got argparse 1.4.0.
Getting distribution for 'smbpasswd'.
smbpasswd.c: In function ‘lmhash’:
smbpasswd.c:100:18: warning: pointer targets in passing argument 2 of ‘E_P16’ differ in signedness [-Wpointer-sign]
     E_P16(lmpwd, hashout);
                  ^
smbpasswd.c:35:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
 void E_P16(unsigned char *p14,unsigned char *p16);
      ^
smbpasswd.c: In function ‘nthash’:
smbpasswd.c:125:12: warning: pointer targets in passing argument 1 of ‘mdfour’ differ in signedness [-Wpointer-sign]
     mdfour(hashout, pwd, pwd_len);
            ^
smbpasswd.c:34:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
 void mdfour(unsigned char *out, unsigned char *in, int n);
      ^
smbpasswd.c:125:21: warning: pointer targets in passing argument 2 of ‘mdfour’ differ in signedness [-Wpointer-sign]
     mdfour(hashout, pwd, pwd_len);
                     ^
smbpasswd.c:34:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
 void mdfour(unsigned char *out, unsigned char *in, int n);
      ^
zip_safe flag not set; analyzing archive contents...
Got smbpasswd 1.0.2.
Getting distribution for 'python-memcached'.
Got python-memcached 1.59.
Generated script '/opt/plone/zinstance/bin/instance'.
Generated interpreter '/opt/plone/zinstance/parts/instance/bin/interpreter'.
Installing repozo.
Generated script '/opt/plone/zinstance/bin/repozo'.
Installing backup.
Generated script '/opt/plone/zinstance/bin/backup'.
Generated script '/opt/plone/zinstance/bin/fullbackup'.
Generated script '/opt/plone/zinstance/bin/snapshotbackup'.
Generated script '/opt/plone/zinstance/bin/restore'.
Generated script '/opt/plone/zinstance/bin/snapshotrestore'.
Installing zopepy.
Generated interpreter '/opt/plone/zinstance/bin/zopepy'.
Installing unifiedinstaller.
Installing precompiler.
Compiling Python files.
Compiling locale files.
Error while compiling /opt/plone/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test5.po
Error while compiling /opt/plone/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test_escape.po
Installing setpermissions.
setpermissions: Running '# Dummy references to force this to execute after referenced parts
echo /opt/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 /opt/plone/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /opt/plone/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
find /opt/plone/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /opt/plone/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
chmod 754 /opt/plone/zinstance/bin/*'
chmod: modification des droits de « /opt/plone/zinstance/bin/buildout »: Opération non permise
Versions had to be automatically picked.
The following part definition lists the versions picked:
[versions]
node.ext.ldap = 1.0b7
node.ext.ugm = 0.9.9
pas.plugins.ldap = 1.5.3
plone.recipe.command = 1.1
plone.recipe.precompiler = 0.6
plumber = 1.5
yafowil = 2.2.4
yafowil.plone = 2.4.1

# Required by:
# yafowil.yaml==1.2
PyYAML = 3.12

# Required by:
# node.ext.ldap==1.0b7
# pas.plugins.ldap==1.5.3
bda.cache = 1.2.0

# Required by:
# pas.plugins.ldap==1.5.3
node = 0.9.22

# Required by:
# pas.plugins.ldap==1.5.3
odict = 1.6.2

# Required by:
# pas.plugins.ldap==1.5.3
python-ldap = 2.5.2

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

# Required by:
# node.ext.ldap==1.0b7
smbpasswd = 1.0.2

# Required by:
# pas.plugins.ldap==1.5.3
yafowil.widget.array = 1.4

# Required by:
# pas.plugins.ldap==1.5.3
yafowil.widget.dict = 1.6

# Required by:
# pas.plugins.ldap==1.5.3
yafowil.yaml = 1.2
root@plone:/opt/plone/zinstance# bin/plonectl restart
instance: .
daemon process restarted, pid=23531

this what i have below when i launch plone

bin/plonectl fg
instance: 2018-01-18 10:34:29 INFO ZServer HTTP server started at Thu Jan 18 10:                                                                             34:29 2018
        Hostname: 0.0.0.0
        Port: 8080
2018-01-18 10:34:29 INFO Zope Set effective user to "plone_daemon"
2018-01-18 10:34:31 WARNING ZODB.blob (27366) Blob dir /opt/plone/zinstance/var/                                                                             blobstorage/ has insecure mode setting
Traceback (most recent call last):
  File "/opt/plone/zinstance/parts/instance/bin/interpreter", line 278, in <modu                                                                             le>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/run                                                                             .py", line 76, in <module>
    run()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/run                                                                             .py", line 22, in run
    starter.prepare()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/__i                                                                             nit__.py", line 92, in prepare
    self.startZope()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/__i                                                                             nit__.py", line 268, in startZope
    Zope2.startup()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/__init__.py                                                                             ", line 47, in startup
    _startup()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/App/startup                                                                             .py", line 120, in startup
    load_zcml()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/App/startup                                                                             .py", line 52, in load_zcml
    load_site()
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/App/zcml.py                                                                             ", line 46, in load_site
    _context = xmlconfig.file(site_zcml)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 649, in file
    include(context, name, package)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 210, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 352, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/plone/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/OFS/metaconfigure                                                                             .py", line 46, in loadProducts
    xmlconfig.include(_context, zcml, package=product)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 210, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 352, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 210, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 352, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 210, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 352, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 705, in finish
    args = toargs(context, *self.argdata)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/config.py", line 1397, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/c                                                                             onfiguration/fields.py", line 139, in fromUnicode
    raise schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/plone/zinstan                                                                             ce/parts/instance/etc/site.zcml", line 16.2-16.23
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.CMF                                                                             Plone-5.0.8-py2.7.egg/Products/CMFPlone/configure.zcml", line 51.2-51.37
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.CMF                                                                             Plone-5.0.8-py2.7.egg/Products/CMFPlone/controlpanel/configure.zcml", line 8.2-8                                                                             .32
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.CMF                                                                             Plone-5.0.8-py2.7.egg/Products/CMFPlone/controlpanel/browser/configure.zcml", li                                                                             ne 6.2-6.41
    ConfigurationError: ('Invalid value for', 'package', 'ImportError: Module pl                                                                             one.app has no global imaging')

Your last traceback seems to indicate there is a problem with loading plone.app.imaging:

ConfigurationError: (‘Invalid value for’, ‘package’, ‘ImportError: Module pl one.app has no global imaging’)

You might not have the required imaging libraries/bindings compiled correctly. These are coming from the Pillow package. Can you verify that the python Pillow library installs correctly on your system and it can find all necessary system imaging libraries? (on top of my head libjpeg, libpng and 1-2 others).

If you want to test this separately: create a python virtualenv and do a "pip install Pillow" after you have activated the virtualenv.

Yes thanks for your help : i added plone.app.imaging in the instance section eggs.
And now it works like a charm.

[instance] :

eggs =

plone.app.imaging

pas.plugins.ldap

I got an "error while rendering plone.resourceregistries.scripts error while rendering plone.resourceregistries.styles"
Buildout returns:

plone510/zinstance]# sudo -u plone_buildout bin/buildout
Develop: '/opt/plone510/zinstance/src/ploneicas.site'
Develop: '/opt/plone510/zinstance/src/ploneicas.cine'
Develop: '/opt/plone510/zinstance/src/plone.importexport'
Develop: '/opt/plone510/zinstance/src/plone.app.querystring'
warning: no previously-included files matching '*pyc' found anywhere in distribution
Uninstalling precompiler.
Uninstalling zopepy.
Uninstalling instance.
Installing instance.
/opt/plone510/zinstance/local/lib/python2.7/site-packages/pkg_resources/__init__.py:208: 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,
Generated script '/opt/plone510/zinstance/bin/instance'.
Generated interpreter '/opt/plone510/zinstance/parts/instance/bin/interpreter'.
Generated script '/opt/plone510/zinstance/bin/enhancer.pyc'.
Generated script '/opt/plone510/zinstance/bin/thresholder.pyc'.
Generated script '/opt/plone510/zinstance/bin/pilfont.pyc'.
Generated script '/opt/plone510/zinstance/bin/thresholder.py'.
Generated script '/opt/plone510/zinstance/bin/pilconvert.py'.
Generated script '/opt/plone510/zinstance/bin/viewer.py'.
Generated script '/opt/plone510/zinstance/bin/pilconvert.pyc'.
Generated script '/opt/plone510/zinstance/bin/player.py'.
Generated script '/opt/plone510/zinstance/bin/pilfont.py'.
Generated script '/opt/plone510/zinstance/bin/gifmaker.pyc'.
Generated script '/opt/plone510/zinstance/bin/explode.py'.
Generated script '/opt/plone510/zinstance/bin/viewer.pyc'.
Generated script '/opt/plone510/zinstance/bin/gifmaker.py'.
Generated script '/opt/plone510/zinstance/bin/pilprint.py'.
Generated script '/opt/plone510/zinstance/bin/painter.py'.
Generated script '/opt/plone510/zinstance/bin/enhancer.py'.
Generated script '/opt/plone510/zinstance/bin/pilprint.pyc'.
Generated script '/opt/plone510/zinstance/bin/pilfile.py'.
Generated script '/opt/plone510/zinstance/bin/explode.pyc'.
Generated script '/opt/plone510/zinstance/bin/pildriver.pyc'.
Generated script '/opt/plone510/zinstance/bin/pildriver.py'.
Generated script '/opt/plone510/zinstance/bin/painter.pyc'.
Generated script '/opt/plone510/zinstance/bin/player.pyc'.
Generated script '/opt/plone510/zinstance/bin/pilfile.pyc'.
Updating repozo.
Updating backup.
Installing zopepy.
Generated interpreter '/opt/plone510/zinstance/bin/zopepy'.
Updating unifiedinstaller.
Installing precompiler.
Compiling Python files.
  File "/opt/plone510/buildout-cache/eggs/martian-0.15-py2.7.egg/martian/testing_compat3.py", line 26
    class FakeModuleObject(object, metaclass=FakeModuleObjectMetaclass):
                                            ^
SyntaxError: invalid syntax

  File "/opt/plone510/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 "/opt/plone510/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 "/opt/plone510/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 /opt/plone510/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test_escape.po
Error while compiling /opt/plone510/buildout-cache/eggs/python_gettext-3.0-py2.7.egg/pythongettext/tests/test5.po
Updating setpermissions.
setpermissions: Running # Dummy references to force this to execute after referenced parts
echo /opt/plone510/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 /opt/plone510/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /opt/plone510/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
find /opt/plone510/zinstance/var -type d -exec chmod 770 {} \; 2> /dev/null
find /opt/plone510/zinstance/var -type f -exec chmod 660 {} \; 2> /dev/null
chmod 754 /opt/plone510/zinstance/bin/*
Versions had to be automatically picked.
The following part definition lists the versions picked:
[versions]
collective.lineage = 2.1.1
plone.app.jquery = 1.11.2
plone.rest = 1.0.0

# Required by:
# plone.restapi==2.0.0
PyJWT = 1.6.4

# Required by:
# bs4==0.0.1
beautifulsoup4 = 4.6.0

# Required by:
# plone.importexport==0.1
bs4 = 0.0.1

# Required by:
# ploneicas.cine==1.0a1
collective.easyform = 2.0.0b5

# Required by:
# ploneicas.cine==1.0a1
collective.geolocationbehavior = 1.5.1

# Required by:
# medialog.iconpicker==0.6.3.2
collective.js.bootstrap = 3.3.6

# Required by:
# ploneicas.site==1.0a1
collective.rooter = 1.0

# Required by:
# ploneicas.cine==1.0a1
# ploneicas.site==1.0a1
collective.themefragments = 2.11.1

# Required by:
# ploneicas.site==1.0a1
lineage.controlpanels = 1.0a1

# Required by:
# medialog.iconpicker==0.6.3.2
lineage.registry = 1.4.0

# Required by:
# medialog.iconpicker==0.6.3.2
# ploneicas.site==1.0a1
medialog.controlpanel = 1.1.3

# Required by:
# ploneicas.cine==1.0a1
# ploneicas.site==1.0a1
medialog.iconpicker = 0.6.3.2

# Required by:
# ploneicas.cine==1.0a1
# ploneicas.site==1.0a1
plone.app.imagecropping = 2.0.1

# Required by:
# collective.geolocationbehavior==1.5.1
plone.formwidget.geolocation = 2.1.3

# Required by:
# plone.formwidget.geolocation==2.1.3
plone.patternslib = 1.0

# Required by:
# plone.importexport==0.1
plone.restapi = 2.0.0

# Required by:
# ploneicas.site==1.0a1
webcouturier.dropdownmenu = 3.0.2

# Required by:
# ploneicas.cine==1.0a1
wildcard.media = 2.0.4

I didn't thought that could affects my server but yesterday I installed locally "pas.plugins.ldap", may this be the origin?

Well, pas.plugins.ldap has really no dependencies to plone.app.imaging - I suppose this is completely unrelated.

1 Like

The buildout run states a lot of other add-ons. Maybe those interfere in some way with pas.plugins.ldap, which also adds entries to the resource registry? With a plain Plone and pas.plugins.ldap I never saw those.

Thanks for your answer @jensens!
I had to install my site again from the beginning. I've been testing some other addons locally, that's why my buildout has a lot of add-ons I haven't install on the server site.
Now my site is working.

Thank you anyway!