Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got "ImportError: No module named app.upgrade.utils" after adding unwicked to buildout #1

Open
gnafou opened this issue Sep 17, 2021 · 8 comments

Comments

@gnafou
Copy link

gnafou commented Sep 17, 2021

Hello

I have added
eggs= unwicked and
develop = src/unwicked to my plone site ; buildout went fine, but running the insatnce leads to a

  File "/opt/Plone-4.3.18/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/Plone-4.3.18/buildout-cache/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/zcml.py", line 119, in includePluginsDirective
    info = PluginFinder(dotted_name).includableInfo(zcml_to_look_for)
  File "/opt/Plone-4.3.18/buildout-cache/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/plugin.py", line 24, in includableInfo
    groups = zcml_to_include(plugin_dottedname, zcml_to_look_for)
  File "/opt/Plone-4.3.18/buildout-cache/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/plugin.py", line 52, in zcml_to_include
    filename = resource_filename(dotted_name, zcmlgroup)
  File "/opt/Plone-4.3.18/buildout-cache/eggs/setuptools-27.3.0-py2.7.egg/pkg_resources/__init__.py", line 1202, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/opt/Plone-4.3.18/buildout-cache/eggs/setuptools-27.3.0-py2.7.egg/pkg_resources/__init__.py", line 435, in get_provider
    __import__(moduleOrReq)
  File "/opt/Plone-4.3.18/zinstance/src/unwicked/unwicked/__init__.py", line 1, in 
    from plone.app.upgrade.utils import alias_module
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/Plone-4.3.18/zinstance/parts/instance/etc/site.zcml", line 12.2-12.39
    ZopeXMLConfigurationError: File "/opt/Plone-4.3.18/buildout-cache/eggs/Products.CMFPlone-4.3.20-py2.7.egg/Products/CMFPlone/meta.zcml", line 42.4-46.10
    ImportError: No module named app.upgrade.utils
@pbauer
Copy link
Member

pbauer commented Sep 21, 2021

plone.app.upgrade is a dependency of Plone, maybe your buildout only depends on Products.CMFPlone which does not depend on plone.app.upgrade. You could simply add plone.app.upgrade to your eggs and it should work.
I also added it to the dependencies of unwicked.

@pbauer pbauer closed this as completed Sep 21, 2021
@gnafou
Copy link
Author

gnafou commented Sep 23, 2021

sorry, maybe i did not understand, i tried to ( on plone 5.1 )

  • add the unwicked as an egg ( both in eggs= and develop = section ) in plone buildout
  • add it with python setup.py install

I still have the same error, it is weird that the plone.app.upgrade.utils is correct but somehow it s translated to app.upgrade.utils
The error occurs when i run the instance, not during buildout .

@pbauer
Copy link
Member

pbauer commented Sep 24, 2021

You need to pull your source-checkout of unwicked and re-run buildout. I added plone.app.upgrade as a dependency of unwicked. Alternatively you can add plone.app.upgrade to your eggs = and rerun buildout. Then it should work.

@gnafou
Copy link
Author

gnafou commented Sep 24, 2021

thank you, i ll try it again though i think i did these steps already ( when i added the plone.app.upgrade egg, the buildout did not do any action, meaning that the egg was already loaded )

@gnafou
Copy link
Author

gnafou commented Sep 24, 2021

Here what i have juste done :
reinstall fresh 5.1.6 from universalinstaller

eggs =
    Plone
    Pillow
    plone.app.upgrade
    unwicked
[...]
develop =
     src/unwicked

under the src i have unwicked such as

src/unwicked
src/unwicked/unwicked.egg-info
src/unwicked/unwicked.egg-info/dependency_links.txt
[ ...]
src/unwicked/setup.py
src/unwicked/.gitignore
src/unwicked/setup.pyc
src/unwicked/unwicked
src/unwicked/unwicked/__init__.py
src/unwicked/unwicked/configure.zcml
[...]

buildout goes fine

running the instance gives me the following error :

2021-09-24 14:49:55 INFO ZServer HTTP server started at Fri Sep 24 14:49:55 2021
	Hostname: 0.0.0.0
	Port: 8080
2021-09-24 14:49:55 INFO Zope Set effective user to "plone_daemon"
Traceback (most recent call last):
  File "/opt/UW516/zinstance/parts/instance/bin/interpreter", line 286, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/Startup/run.py", line 22, in run
    starter.prepare()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/Startup/__init__.py", line 92, in prepare
    self.startZope()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/Startup/__init__.py", line 268, in startZope
    Zope2.startup()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/App/startup.py", line 120, in startup
    load_zcml()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
    load_site()
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
    _context = xmlconfig.file(site_zcml)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 649, in file
    include(context, name, package)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 220, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 384, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg/OFS/metaconfigure.py", line 46, in loadProducts
    xmlconfig.include(_context, zcml, package=product)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 220, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 384, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/opt/UW516/buildout-cache/eggs/z3c.autoinclude-0.3.9-py2.7.egg/z3c/autoinclude/zcml.py", line 101, in includePluginsDirective
    info = PluginFinder(dotted_name).includableInfo(zcml_to_look_for)
  File "/opt/UW516/buildout-cache/eggs/z3c.autoinclude-0.3.9-py2.7.egg/z3c/autoinclude/plugin.py", line 18, in includableInfo
    groups = zcml_to_include(plugin_dottedname, zcml_to_look_for)
  File "/opt/UW516/buildout-cache/eggs/z3c.autoinclude-0.3.9-py2.7.egg/z3c/autoinclude/plugin.py", line 36, in zcml_to_include
    filename = resource_filename(dotted_name, zcmlgroup)
  File "/opt/UW516/zinstance/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1144, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/opt/UW516/zinstance/lib/python2.7/site-packages/pkg_resources/__init__.py", line 361, in get_provider
    __import__(moduleOrReq)
  File "/opt/UW516/zinstance/src/unwicked/unwicked/__init__.py", line 1, in <module>
    from plone.app.upgrade.utils import alias_module
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/UW516/zinstance/parts/instance/etc/site.zcml", line 12.2-12.39
    ZopeXMLConfigurationError: File "/opt/UW516/buildout-cache/eggs/Products.CMFPlone-5.1.6-py2.7.egg/Products/CMFPlone/meta.zcml", line 37.4-41.10
    ImportError: No module named app.upgrade.utils

@pbauer
Copy link
Member

pbauer commented Sep 24, 2021

Weird. Can you post the content of your /bin/instance script?

@gnafou
Copy link
Author

gnafou commented Sep 24, 2021

`#!/opt/UW516/zinstance/bin/python2

import sys
sys.path[0:0] = [
'/opt/UW516/zinstance/src/unwicked',
'/opt/UW516/buildout-cache/eggs/Plone-5.1.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Pillow-6.1.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.upgrade-2.0.28-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.recipe.zope2instance-4.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zc.recipe.egg-2.0.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/mailinglogger-3.8.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Zope2-2.13.29-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ZODB3-3.11.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.ramcache-2.2.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zope.component-4.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/transaction-2.1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/six-1.10.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.portlets-2.3.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.contentrules-2.0.9-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.viewletmanager-2.0.12-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.iterate-3.3.12-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ZCatalog-3.0.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PluggableAuthService-1.11.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PlonePAS-5.1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.GenericSetup-1.8.10-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFPlone-5.1.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFEditions-3.2.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFCore-2.2.13-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Acquisition-4.4.2-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.dexterity-2.6.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.caching-1.2.23-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/archetypes.multilingual-3.0.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFPlacefulWorkflow-1.7.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.Archetypes-1.15.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ATContentTypes-2.3.9-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ZServer-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Record-2.13.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/Products.ZCTextIndex-2.13.5-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/Products.TemporaryFolder-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.StandardCacheManagers-2.13.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.Sessions-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PythonScripts-2.13.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.MIMETools-2.13.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.MailHost-2.13.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ExternalMethod-2.13.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.BTreeFolder2-2.14.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/initgroups-4.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.viewlet-3.7.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.traversing-4.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.testing-3.9.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.testbrowser-3.11.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.structuredtext-3.5.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.size-3.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.site-3.9.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.sequencesort-3.4.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.sendmail-3.7.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.security-4.1.1-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zope.schema-4.5.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.publisher-4.3.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.ptresource-3.9.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.proxy-4.3.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zope.processlifetime-1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.pagetemplate-4.2.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.location-3.9.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.lifecycleevent-3.6.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.i18nmessageid-4.1.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zope.i18n-4.2.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.exceptions-3.6.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.event-3.5.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.deferredimport-3.5.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.contenttype-4.2.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.contentprovider-3.7.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.container-3.11.2-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.browserresource-4.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.browserpage-4.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.browsermenu-4.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.browser-2.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zLOG-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zExceptions-2.13.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zdaemon-4.2.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/tempstorage-4.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/pytz-2017.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/docutils-0.14-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ZopeUndo-4.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ZConfig-3.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/RestrictedPython-3.6.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.OFSP-2.13.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Persistence-2.13.2-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/MultiMapping-3.1-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/Missing-3.2-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/ExtensionClass-4.3.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/DocumentTemplate-2.13.4-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/DateTime-4.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/AccessControl-3.0.14-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/BTrees-4.4.1-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/persistent-4.2.4.2-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/ZODB-5.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ZEO-5.1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.annotation-3.5.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.memoize-2.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.componentvocabulary-1.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.vocabularies-4.0.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.locking-2.2.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.statusmessages-5.0.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.DCWorkflow-2.2.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.dottedname-4.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PluginRegistry-1.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.deprecation-4.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.session-3.7.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.protect-3.1.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.i18n-3.0.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/five.localsitemanager-2.0.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.cachedescriptors-3.5.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.app.locales-3.7.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.autoinclude-0.3.9-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/slimit-0.8.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/pyScss-1.3.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plonetheme.barceloneta-2.1.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.theme-3.0.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.subrequest-1.8.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.schema-1.2.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.registry-1.1.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.portlet.static-3.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.portlet.collection-3.3.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.outputfilters-3.0.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.intelligenttext-3.0.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.indexer-1.0.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.browserlayer-2.2.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.batching-1.1.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.workflow-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.uuid-1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.users-2.4.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.theming-2.0.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.registry-1.7.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.redirector-1.3.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.portlets-4.3.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.locales-5.1.18-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.linkintegrity-3.3.11-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.layout-2.8.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.multilingual-5.2.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.i18n-3.0.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.folder-1.2.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.discussion-3.0.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.customerize-1.3.10-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.controlpanel-3.0.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.contenttypes-1.4.16-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.contentrules-4.0.19-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.contentmenu-2.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.contentlisting-1.3.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.content-3.5.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.api-1.10.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/mockup-2.7.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/five.pt-2.2.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/five.customerize-1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/borg.localrole-3.1.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.contentmigration-2.1.19-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ResourceRegistries-3.0.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PortalTransforms-3.1.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.PlacelessTranslationService-2.0.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.MimetypesRegistry-2.1.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ExternalEditor-1.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ExtendedPathIndex-3.4.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFUid-2.2.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFQuickInstallerTool-3.0.16-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFFormController-3.1.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFDynamicViewFTI-5.0.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.CMFDiffTool-3.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.copy-3.5.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ZopeVersionControl-1.1.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.app.publication-3.12.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.ZSQLMethods-2.13.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.form-3.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.z3cform-0.9.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.supermodel-1.4.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.schemaeditor-2.1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.rfc822-1.1.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.namedfile-4.2.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.formwidget.namedfile-2.0.9-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.dexterity-2.6.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.behavior-1.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.autoform-1.8.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.z3cform-3.0.10-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.textfield-1.2.11-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/lxml-4.2.1-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/z3c.zcmlhook-1.0b1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/python_dateutil-2.7.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.caching-1.2.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.cachepurging-1.0.16-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/collective.monkeypatcher-1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.datetime-3.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.uuid-1.0.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.folder-2.0.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.widgets-2.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.validation-2.1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.imaging-2.0.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.collection-1.2.7-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.blob-1.7.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/mechanize-0.2.5-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.broken-3.6.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.filerepresentation-3.6.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zodbpickle-0.7.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/zc.lockfile-1.2.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/trollius-2.1.post2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/futures-3.1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.querystring-1.4.11-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.keyring-3.1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/repoze.xmliter-0.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.transformchain-2.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/five.globalrequest-1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Unidecode-0.4.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/ply-3.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/pathlib-1.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/enum34-1.1.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.globalrequest-1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/jsonschema-2.6.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/roman-1.4.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.resourceeditor-2.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.resource-2.0.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/diazo-1.3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/feedparser-5.2.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.relationfield-1.4.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.intid-1.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.relationfield-0.9.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.versioningbehavior-1.3.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.lockingbehavior-1.0.6-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.app.event-3.2.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.stringinterp-1.3.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/simplejson-3.12.0-py2.7-linux-x86_64.egg',
'/opt/UW516/buildout-cache/eggs/decorator-4.1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Chameleon-2.25-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.pt-3.0.0a1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/sourcecodegen-0.6.14-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Markdown-2.6.9-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/python_gettext-3.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.error-3.7.4-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.authentication-3.7.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.scale-3.0.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/piexif-1.0.13-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.synchronize-1.0.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.alterego-1.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.formwidget.query-0.17-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.caching-2.0a1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/archetypes.schemaextender-2.1.8-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.untrustedpython-4.0.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/future-0.16.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/functools32-3.2.3.post2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/cssselect-1.0.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.intid-3.7.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/five.intid-1.1.2-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zc.relation-1.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/z3c.objpath-1.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.formwidget.recurrence-2.1.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/plone.event-1.4.0-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/icalendar-4.0.3-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/Products.DateRecurringIndex-2.1-py2.7.egg',
'/opt/UW516/buildout-cache/eggs/zope.keyreference-3.6.4-py2.7.egg',
'/opt/UW516/zinstance/lib/python2.7/site-packages',
]

import plone.recipe.zope2instance.ctl

if name == 'main':
sys.exit(plone.recipe.zope2instance.ctl.main(
['-C', '/opt/UW516/zinstance/parts/instance/etc/zope.conf']
+ sys.argv[1:]))
`

@gnafou
Copy link
Author

gnafou commented Sep 27, 2021

what i understand is that the line 42 of
buildout-cache/eggs/Products.CMFPlone-5.1.6-py2.7.egg/Products/CMFPlone/meta.zcml
says

        zcml:condition="not-have disable-autoinclude"
        package="plone"
        file="meta.zcml"
        />

thus the plone.app.upgrade.utils becomes a app.upgrade.utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants