collective / collective.volto.cookieconsent

Add-on for Volto to manage cookieconsent banner
GNU General Public License v2.0
0 stars 0 forks source link

errore durante buildout #5

Open fsacchi74 opened 3 years ago

fsacchi74 commented 3 years ago

We would like to use the add-on. Returns error during buildout

File "/opt/plone/zinstance/eggs/zope.schema-6.0.0-py2.7.egg/zope/schema/_bootstrapfields.py", line 338, in _validate raise WrongType(value, self._type, self.name).with_field_and_value(self, value) zope.configuration.exceptions.ConfigurationError: Invalid value for 'layer' File "/opt/plone/zinstance/parts/instance/etc/site.zcml", line 16.2-16.23 File "/opt/plone/zinstance/eggs/Products.CMFPlone-5.2.3-py2.7.egg/Products/CMFPlone/configure.zcml", line 110.2-114.8 File "/opt/plone/zinstance/eggs/collective.volto.cookieconsent-1.0.0-py2.7.egg/collective/volto/cookieconsent/configure.zcml", line 16.2-16.32 File "/opt/plone/zinstance/eggs/collective.volto.cookieconsent-1.0.0-py2.7.egg/collective/volto/cookieconsent/browser/configure.zcml", line 7.2-13.4 WrongType: ('{}', <type 'unicode'>, '')

We have Plone 5.2. with Phyton 2.7. The add-on also supports this version ?

Thanks

cekk commented 3 years ago

It's not tested with python2.7 because this is developed to work with Volto, so we're only using it with Python3.

But the error seems easy to fix: could be only because we don't prepend "u" before the strings (in controlpanel fields defaults).

Can you try it and maybe open a pull-request with that?