Plone 4.2.5 do not start with s&d

Bug #1164486 reported by Andrey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Singing & Dancing
Invalid
Undecided
Unassigned

Bug Description

Plone 4.2.5 with Singing and Dancing do not start.

*************** PICKED VERSIONS ****************
[versions]
Products.AddRemoveWidget = 1.5.0
Products.DataGridField = 1.8.4
collective.dancing = 0.9.10
collective.singing = 0.7.1
collective.watcherlist = 1.1

#Required by:
#collective.dancing 0.9.10
BeautifulSoup = 3.2.1

#Required by:
#collective.dancing 0.9.10
StoneageHTML = 0.2.1

#Required by:
#StoneageHTML 0.2.1
cssutils = 0.9.10

#Required by:
#collective.singing 0.7.1
zc.queue = 1.3

*************** /PICKED VERSIONS ***************

Debug from 'instance debug' start

$ ./client1 fg
2013-04-04 18:42:16 INFO ZServer HTTP server started at Thu Apr 4 18:42:16 2013
        Hostname: 0.0.0.0
        Port: 8080
2013-04-04 18:42:18 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=1614) created RW/normal for storage: '1'
2013-04-04 18:42:18 INFO ZEO.cache created temporary cache file '<fdopen>'
2013-04-04 18:42:18 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 8100)>
2013-04-04 18:42:18 INFO ZEO.zrpc.Connection(C) (127.0.0.1:8100) received handshake 'Z3101'
2013-04-04 18:42:19 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-04-04 18:42:19 INFO ZEO.ClientStorage zeostorage Connected to storage: ('localhost', 8100)
2013-04-04 18:42:19 INFO ZEO.ClientStorage zeostorage No verification necessary -- empty cache
2013-04-04 18:42:21 INFO ZEO.ClientStorage zeostorage Disconnected from storage: "('localhost', 8100)"
Traceback (most recent call last):
  File "/parts/client1/bin/interpreter", line 283, in <module>
    execfile(__file__)
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/Startup/run.py", line 22, in run
    starter.prepare()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/Startup/__init__.py", line 86, in prepare
    self.startZope()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/Startup/__init__.py", line 262, in startZope
    Zope2.startup()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/__init__.py", line 47, in startup
    _startup()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/App/startup.py", line 118, in startup
    load_zcml()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
    load_site()
  File "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
    _context = xmlconfig.file(site_zcml)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 649, in file
    include(context, name, package)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "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 "buildout-cache/eggs/Zope2-2.13.19-py2.7.egg/OFS/metaconfigure.py", line 46, in loadProducts
    xmlconfig.include(_context, zcml, package=product)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "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 "buildout-cache/eggs/z3c.autoinclude-0.3.4-py2.7.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
    includeZCMLGroup(_context, info, filename)
  File "buildout-cache/eggs/z3c.autoinclude-0.3.4-py2.7.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
    include(_context, filename, includable_package)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "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 "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
    processxmlfile(f, context)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
    parser.parse(src)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
    self.context.end()
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
    self.stack.pop().finish()
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 705, in finish
    args = toargs(context, *self.argdata)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 1397, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/fields.py", line 137, in fromUnicode
    value = self.context.resolve(name)
  File "buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 179, in resolve
    mod = __import__(mname, *_import_chickens)
  File "buildout-cache/eggs/collective.dancing-0.9.10-py2.7.egg/collective/dancing/composer.py", line 32, in <module>
    from collective.dancing import transform
  File "buildout-cache/eggs/collective.dancing-0.9.10-py2.7.egg/collective/dancing/transform.py", line 11, in <module>
    from collective.dancing import utils
  File "buildout-cache/eggs/collective.dancing-0.9.10-py2.7.egg/collective/dancing/utils.py", line 6, in <module>
    import stoneagehtml
  File "buildout-cache/eggs/StoneageHTML-0.2.1-py2.7.egg/stoneagehtml/__init__.py", line 1, in <module>
    from stoneagehtml import compactify
  File "buildout-cache/eggs/StoneageHTML-0.2.1-py2.7.egg/stoneagehtml/stoneagehtml.py", line 31, in <module>
    import cssutils
  File "buildout-cache/eggs/cssutils-0.9.10-py2.7.egg/cssutils/__init__.py", line 111, in <module>
    from . import util
  File "buildout-cache/eggs/cssutils-0.9.10-py2.7.egg/cssutils/util.py", line 7, in <module>
    from .helper import normalize
  File "buildout-cache/eggs/cssutils-0.9.10-py2.7.egg/cssutils/helper.py", line 9, in <module>
    import urllib.request, urllib.parse, urllib.error
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "parts/client1/etc/site.zcml", line 16.2-16.23
    ZopeXMLConfigurationError: File "buildout-cache/eggs/Products.CMFPlone-4.2.5-py2.7.egg/Products/CMFPlone/configure.zcml", line 102.4-106.10
    ZopeXMLConfigurationError: File "buildout-cache/eggs/collective.dancing-0.9.10-py2.7.egg/collective/dancing/configure.zcml", line 15.2-15.30
    ZopeXMLConfigurationError: File "buildout-cache/eggs/collective.dancing-0.9.10-py2.7.egg/collective/dancing/mail.zcml", line 16.2-16.62
    ImportError: No module named request

Revision history for this message
Andrey (andreevanmail) wrote :

Also according to https://bugs.launchpad.net/singing-dancing/+bug/910323 I have tried
eggs =
    five.intid
    zope.intid
    collective.dancing

and
eggs =
...
    plone.app.intid
...

with no success

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :

According to the traceback it goes wrong in cssutils when it tries to 'import urllib.request'.

cssutils 0.9.10 is only a few days old and it looks like does not work with python2.7. Pinning cssutils to an earlier version should do the trick. The latest version that I have on my laptop is 0.9.7b3.
Or look in the css utils change log to check for other versions:
http://pythonhosted.org/cssutils/CHANGELOG.html

Revision history for this message
Andrey (andreevanmail) wrote :

how to downgrade cssutils to 0.9.7 ?
I tried in python-2.7/bin/easy_install cssutils==0.9.7
deleted cssutils-0.9.10 from buildout-cache/eggs and run buildout for my site instance
but in buildout-cache I can see 0.9.10
What i did wrong?

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :

You need to pin the version in your buildout config. Look at the 'PICKED VERSIONS' that get printed when you run bin/buildout and that you pasted above. Open buildout.cfg in your editor and look for a [versions] line. If you do not see it, then add a [versions] line yourself at the bottom of the file. Paste the list of picked versions there, change the cssutils line to refer to version 0.9.7b3, and run bin/buildout again. The result should be that buildout does not print any picked versions anymore, because you have now pinned them in your buildout.cfg, and 'bin/instance fg' should start up correctly now.

Revision history for this message
Andrey (andreevanmail) wrote :

Yes, everything is working fine now.
Thank you very much!

Changed in singing-dancing:
status: New → Invalid
Revision history for this message
Daniel Widerin (saily) wrote :

A little bit more information here, cssutils 0.9.10 is the problem. you could use 0.9.9.

on urllib 0.9.10 development focused on pyhton 3 which uses urllib2 as default urrlib.
In python 2.7 urllib has no module request, therefore you get the error: ``ImportError: No module named request``.

cssutils author broke python2.7 support with his latest release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.