ModuleNotFoundError: No module named 'zope.deferredimport'

I have a Plone 5.2.1 buildout with only add-on. The instance won't start although zope.deferredimport is included in the bin/instance script:

 bin/instance adduser admin admin
Traceback (most recent call last):
  File "/home/ajung/src/xmldirector.connector/parts/instance/bin/interpreter", line 285, in <module>
    exec(_val)
  File "<string>", line 1, in <module>
  File "/home/ajung/.buildout/eggs/Zope-4.4-py3.7.egg/Zope2/__init__.py", line 18, in <module>
    from zope.deferredimport import deprecated
ModuleNotFoundError: No module named 'zope.deferredimport'

 grep deferred bin/instance 
  '/home/ajung/.buildout/eggs/zope.deferredimport-4.3.1-py3.7.egg',

Cool stuff!
Is import zope working? is import zope.deferredimport working?
If not it might be a bad mix of buildout installed packages and virtualenv install packages (at least I saw something similar in the past).
If yes what happens if you put a pdb in the __init__.py of zope.deferredimport?

1 Like

Now having the same issue on a different Plone 5.2.1 site with bin/instance debug.

@alert I can use pdb inside the __init__.py but I don't see any error/issue here.

Plone Foundation Code of Conduct