Problem creating a add-on package

I followed Classic UI theming with Diazo — Plone Documentation v6 to create a diazo theme add-on.
When starting the plone server with the add-on I get a "ModuleNotFoundError: No module named 'z3c.jbot'" error. Adding z3c.jbot to the instance eggs config does not help. Also following DEVELOP.rst for a development buildout leads to the same error.
How to debug/fix the problem?

Thanks!

Hi Marek,

I ran into the very same problem. My temporary solution was to down-pin z3c.jbot from 3.0 to 2.2.

Your buildout.cfg or local.cfg should contain these lines:

[versions]
z3c.jbot = 2.2

The original error may stem from mixing native/implicit packages (see this issue). z3c.jbot v3.0 replaced the pkg_resources namespace with PEP 420 native namespace.

best

1 Like

Hi Paul,

many thanks. That fixed it. The line

z3c.jbot = 3.0

gets added to the test_plone60.cfg when running buildout. Not nice...

Best

Just a note: the official pin here https://dist.plone.org/release/6.1.1/versions-ecosystem.cfg is z3c.jbot = 2.0 ... you can always check where the versionpins in a buildout are defined with buildout annotate

1 Like

Maybe off topic, but I had something similar in 6.1.0 , but not in 6.1.1