[Grok-dev] music tutorial

Jose Galvez jose at cybergalvez.com
Fri Feb 11 21:00:49 EST 2011


tried changing it to zope.file and got a new error See below
Jose

Traceback (most recent call last):
   File "bin/paster", line 20, in <module>
     paste.script.command.run()
   File 
"/home/jc/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", 
line 84, in run
     invoke(command, command_name, options, args[1:])
   File 
"/home/jc/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", 
line 123, in invoke
     exit_code = runner.run(args)
   File 
"/home/jc/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", 
line 218, in run
     result = self.command()
   File 
"/home/jc/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", 
line 276, in command
     relative_to=base, global_conf=vars)
   File 
"/home/jc/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", 
line 313, in loadapp
     **kw)
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 203, in loadapp
     return loadobj(APP, uri, name=name, **kw)
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 224, in loadobj
     return context.create()
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 617, in create
     return self.object_type.invoke(self)
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 163, in invoke
     app = context.app_context.create()
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 617, in create
     return self.object_type.invoke(self)
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", 
line 109, in invoke
     return fix_call(context.object, context.global_conf, 
**context.local_conf)
   File 
"/home/jc/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", 
line 57, in fix_call
     val = callable(*args, **kw)
   File 
"/home/jc/.buildout/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/startup.py", 
line 19, in debug_application_factory
     app = application_factory(global_conf, **local_conf)
   File 
"/home/jc/.buildout/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/startup.py", 
line 14, in application_factory
     return zope.app.wsgi.getWSGIApplication(zope_conf)
   File 
"/home/jc/.buildout/eggs/zope.app.wsgi-3.10.0-py2.6.egg/zope/app/wsgi/__init__.py", 
line 162, in getWSGIApplication
     db = config(configfile, schemafile, features)
   File 
"/home/jc/.buildout/eggs/zope.app.wsgi-3.10.0-py2.6.egg/zope/app/wsgi/__init__.py", 
line 150, in config
     appsetup.config(options.site_definition, features=features)
   File 
"/home/jc/.buildout/eggs/zope.app.appsetup-3.15.0-py2.6.egg/zope/app/appsetup/appsetup.py", 
line 111, in config
     context = xmlconfig.file(file, context=context, execute=execute)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 651, in file
     include(context, name, package)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 550, in include
     processxmlfile(f, context)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 382, in processxmlfile
     parser.parse(src)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
     self.feed(buffer)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in 
end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 361, in endElementNS
     self.context.end()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 538, in end
     self.stack.pop().finish()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 686, in finish
     actions = self.handler(context, **args)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 550, in include
     processxmlfile(f, context)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 382, in processxmlfile
     parser.parse(src)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
     self.feed(buffer)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in 
end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 361, in endElementNS
     self.context.end()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 538, in end
     self.stack.pop().finish()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 686, in finish
     actions = self.handler(context, **args)
   File 
"/home/jc/.buildout/eggs/z3c.autoinclude-0.3.3-py2.6.egg/z3c/autoinclude/zcml.py", 
line 54, in includeDependenciesDirective
     includeZCMLGroup(_context, info, 'configure.zcml')
   File 
"/home/jc/.buildout/eggs/z3c.autoinclude-0.3.3-py2.6.egg/z3c/autoinclude/zcml.py", 
line 30, in includeZCMLGroup
     include(_context, filename, includable_package)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 550, in include
     processxmlfile(f, context)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 382, in processxmlfile
     parser.parse(src)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
     self.feed(buffer)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in 
end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 361, in endElementNS
     self.context.end()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 538, in end
     self.stack.pop().finish()
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 686, in finish
     actions = self.handler(context, **args)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 550, in include
     processxmlfile(f, context)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 382, in processxmlfile
     parser.parse(src)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
     self.feed(buffer)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
   File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in 
start_element_ns
     AttributesNSImpl(newattrs, qnames))
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", 
line 234, in startElementNS
     self.context.begin(name, data, info)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 535, in begin
     self.stack.append(self.stack[-1].contained(__name, __data, __info))
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 836, in contained
     return RootStackItem.contained(self, name, data, info)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 707, in contained
     adapter = factory(self.context, data, info)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 1204, in factory
     return ComplexStackItem(self, context, data, info)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 950, in __init__
     args = toargs(newcontext, meta.schema, data)
   File 
"/home/jc/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", 
line 1377, in toargs
     args[str(name)] = field.fromUnicode(s)
   File 
"/home/jc/.buildout/eggs/zope.browsermenu-3.9.1-py2.6.egg/zope/browsermenu/field.py", 
line 106, in fromUnicode
     raise ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/jc/pytest/music/parts/etc/site.zcml", line 4.2-4.29
     ZopeXMLConfigurationError: File 
"/home/jc/pytest/music/src/music/configure.zcml", line 4.2-4.37
     ZopeXMLConfigurationError: File 
"/home/jc/.buildout/eggs/zope.file-0.6.0-py2.6.egg/zope/file/configure.zcml", 
line 55.2-55.33
     ZopeXMLConfigurationError: File 
"/home/jc/.buildout/eggs/zope.file-0.6.0-py2.6.egg/zope/file/browser.zcml", 
line 28.2
     ConfigurationError: ('Invalid value for', 'menu', "ImportError: 
Couldn't import zmi_views, No module named zmi_views")


On 02/11/2011 04:40 PM, Jeffrey Peterson wrote:
> Without doing any research at all, I would guess you want zope.file rather than zope.app.file.
>
> I could be wrong, but something to try.
>
> Jeff.
>
> On Feb 11, 2011, at 3:45 PM, Jose Galvez wrote:
>
>> Hi all,
>>
>> I am working my way through the music tutorial, and I am on part 5 add a
>> song. the instructions state to add "zope.app.file" to the setup and run
>> buildout, which I did. now when I try to restart the app I get an error:
>>
>>      ZopeXMLConfigurationError: File
>> "/home/jc/.buildout/eggs/zope.app.file-3.6.1-py2.6.egg/zope/app/file/configure.zcml",
>> line 9.2-12.8
>>      ConfigurationError: ('Invalid value for', 'type', "ImportError:
>> Couldn't import zope.app.content.interfaces, No module named
>> content.interfaces")
>>
>>
>> adding zope.app.content does not fix the error but intrudes additional
>> errors.
>> Thanks in advance for any and all help
>> Jose
>>
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> https://mail.zope.org/mailman/listinfo/grok-dev
>
>


More information about the Grok-dev mailing list