Quantcast

ImportError: No module named layouts

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ImportError: No module named layouts

macagua
Hola Plonistas

Estoy creando un paquete para Plone 4.3.x usando plantilla "project" de ZopeSkell en su versión 2.21.2.

Al iniciar la instancia Zope muestra el siguiente error:

(python2.7)macagua@dacagua:~/proyectos/plone/git/Covantec/collective.cover.layouts$ ./bin/instance fg
2015-09-02 16:57:02 INFO ZServer HTTP server started at Wed Sep  2 16:57:02 2015
    Hostname: 0.0.0.0
    Port: 8080
2015-09-02 16:57:03 DEBUG PortalTransforms Unable to find binary "rtf-converter" in /home/macagua/virtualenv/python2.7/bin:/home/macagua/virtualenv/python2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
2015-09-02 16:57:03 DEBUG PortalTransforms Unable to find binary "rtf2xml" in /home/macagua/virtualenv/python2.7/bin:/home/macagua/virtualenv/python2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
2015-09-02 16:57:03 DEBUG PortalTransforms textile_to_html: Could not import textile.
Hold on to your hats folks, I'm a-patchin'
2015-09-02 16:57:03 WARNING PrintingMailHost

******************************************************************************

Monkey patching MailHosts to print emails to the terminal instead of
sending them.

NO MAIL WILL BE SENT FROM ZOPE AT ALL!

Turn off debug mode or remove PrintingMailHost from the Products
directory to turn this off.

******************************************************************************

2015-09-02 16:57:03 DEBUG ZODB.BaseStorage create storage /home/macagua/proyectos/plone/git/Covantec/collective.cover.layouts/var/filestorage/Data.fs
2015-09-02 16:57:03 DEBUG ZODB.blob (21508) Blob directory `/home/macagua/proyectos/plone/git/Covantec/collective.cover.layouts/var/blobstorage` has layout marker set. Selected `bushy` layout.
2015-09-02 16:57:03 DEBUG config include /home/macagua/proyectos/plone/git/Covantec/collective.cover.layouts/parts/instance/etc/site.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/exclude.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/AccessControl-3.0.8-py2.7-linux-i686.egg/AccessControl/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/zope.security-3.7.4-py2.7-linux-i686.egg/zope/security/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/zope.i18n-3.7.4-py2.7.egg/zope/i18n/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/AccessControl-3.0.8-py2.7-linux-i686.egg/AccessControl/permissions.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/traversing.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/deprecated.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/event.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/ZPublisher/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/ZPublisher/i18n.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/ZPublisher/publisher.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/browser/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/permissions.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/component/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/browser/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/absoluteurl.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/skin/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/utilities/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/utilities/browser/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/viewlet/configure.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Products/Five/viewlet/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Products.CMFCore-2.2.9-py2.7.egg/Products/CMFCore/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Products.CMFDefault-2.2.4-py2.7.egg/Products/CMFDefault/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/five.formlib-1.0.4-py2.7.egg/five/formlib/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Products.CMFPlone-4.3.6-py2.7.egg/Products/CMFPlone/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/Products.GenericSetup-1.7.5-py2.7.egg/Products/GenericSetup/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/plone.app.portlets-2.5.3-py2.7.egg/plone/app/portlets/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/wicked-1.1.12-py2.7.egg/wicked/fieldevent/meta.zcml
2015-09-02 16:57:03 DEBUG config include /home/macagua/.buildout/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/meta.zcml
Traceback (most recent call last):
  File "/home/macagua/proyectos/plone/git/Covantec/collective.cover.layouts/parts/instance/bin/interpreter", line 316, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 22, in run
    starter.prepare()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 86, in prepare
    self.startZope()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 262, in startZope
    Zope2.startup()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/startup.py", line 118, in startup
    load_zcml()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
    load_site()
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
    _context = xmlconfig.file(site_zcml)
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 649, in file
    include(context, name, package)
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/home/macagua/.buildout/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 107, 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 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/home/macagua/.buildout/eggs/Zope2-2.13.22-py2.7.egg/OFS/metaconfigure.py", line 46, in loadProducts
    xmlconfig.include(_context, zcml, package=product)
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "/home/macagua/.buildout/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 107, 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 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "/home/macagua/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
    actions = self.handler(context, **args)
  File "/home/macagua/.buildout/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/zcml.py", line 101, in includePluginsDirective
    info = PluginFinder(dotted_name).includableInfo(zcml_to_look_for)
  File "/home/macagua/.buildout/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/plugin.py", line 18, in includableInfo
    groups = zcml_to_include(plugin_dottedname, zcml_to_look_for)
  File "/home/macagua/.buildout/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/plugin.py", line 36, in zcml_to_include
    filename = resource_filename(dotted_name, zcmlgroup)
  File "/home/macagua/virtualenv/python2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1160, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/home/macagua/virtualenv/python2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 435, in get_provider
    __import__(moduleOrReq)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/macagua/proyectos/plone/git/Covantec/collective.cover.layouts/parts/instance/etc/site.zcml", line 12.2-12.39
    ZopeXMLConfigurationError: File "/home/macagua/.buildout/eggs/Products.CMFPlone-4.3.6-py2.7.egg/Products/CMFPlone/meta.zcml", line 42.4-46.10
    ImportError: No module named layouts

No logro desifrar que esta fallando y presiento que es algo simple de resolver mas quizás las horas Plonendo no me deja ver que error esta causando esto!


Quiera ayudarme puede intentar reproducir el error usando este repositorio https://github.com/Covantec/collective.cover.layouts

Espero sus comentarios!

--
Atentamente

Ing. Leonardo  J. Caballero G.
Linux Counter ID = https://linuxcounter.net/user/369081.html

_______________________________________________
Usuarios-Plone mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named layouts

hvelarde
no puedes tener um paquete llamado collective.cover.layouts porque entra
en conflicto con collective.cover.

saludos

Héctor Velarde

_______________________________________________
Usuarios-Plone mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named layouts

macagua
Muchas gracias Hector

Con razón creaste nombres distintos para extensiones de collective.cover,

Ya cambien el nombre del proyecto https://github.com/Covantec/covantec.cover.layouts

Saludos

2015-09-03 15:39 GMT-04:30 Héctor Velarde <[hidden email]>:
no puedes tener um paquete llamado collective.cover.layouts porque entra en conflicto con collective.cover.

saludos

Héctor Velarde

_______________________________________________
Usuarios-Plone mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-usuarios-plone



--
Atentamente

Ing. Leonardo  J. Caballero G.
Linux Counter ID = https://linuxcounter.net/user/369081.html

_______________________________________________
Usuarios-Plone mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
Loading...