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>
  File "<string>", line 1, in <module>
  File "/home/ajung/.buildout/eggs/Zope-4.4-py3.7.egg/Zope2/", line 18, in <module>
    from zope.deferredimport import deprecated
ModuleNotFoundError: No module named 'zope.deferredimport'

 grep deferred bin/instance 

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 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 but I don't see any error/issue here.

Plone Foundation Code of Conduct