plone / plone.recipe.zope2instance

zc.buildout recipe to setup and configure a Zope 2 instance.
https://pypi.org/project/plone.recipe.zope2instance
7 stars 23 forks source link

Error: invalid module name: 'exceptions' #105

Closed datakurre closed 5 years ago

datakurre commented 5 years ago

I have no idea why, but on a Python 3.7 setup I just got a startup error

Error: invalid module name: 'exceptions' (line 18, in file:///.../parts/instance/etc/zope.conf)

that when away when I changed

<warnfilter>
  action ignore
  category exceptions.DeprecationWarning
</warnfilter>

to

<warnfilter>
  action ignore
  category DeprecationWarning
</warnfilter>
dataflake commented 5 years ago

That's not surprising. The recipe sets a bad import path there. I'm surprised no one has complained earlier, this has been in the code forever. PR on the way.