[Setup] Policy product test fails - error

afewtips.com afewtips at gmail.com
Sat Sep 13 14:05:15 UTC 2008


Hi,
I am trying to create and install a policy product based off Martin's and I
can't get it to run. I removed the extra test.py file in the folder.
Here is the message - enjoy
webmaster at webmaster-laptop:~/afewtips$ ./bin/instance test -s
afewtips.policy
Running tests at level 1
Installing CMFCore ... done (0.305s)
Installing CMFDefault ... done (0.235s)
Installing CMFCalendar ... done (0.043s)
Installing CMFTopic ... done (0.021s)
Installing DCWorkflow ... done (0.059s)
Installing CMFActionIcons ... done (0.024s)
Installing CMFQuickInstallerTool ... done (0.064s)
Installing CMFFormController ... done (0.356s)
Installing GroupUserFolder ... done (0.404s)
Installing ZCTextIndex ... done (0.058s)
Installing CMFPlone ... done (2.305s)
Installing Archetypes ... done (0.113s)
Installing ATContentTypes ... done (0.045s)
Installing ATReferenceBrowserWidget ... done (0.014s)
Installing CMFDynamicViewFTI ... done (0.012s)
Installing ExternalEditor ... done (0.018s)
Installing ExtendedPathIndex ... done (0.015s)
Installing ResourceRegistries ... done (0.015s)
Installing SecureMailHost ... done (0.013s)
Installing CMFPlacefulWorkflow ... done (0.061s)
Installing PasswordResetTool ... done (0.019s)
Installing PluggableAuthService ...
/home/webmaster/afewtips/parts/plone/GenericSetup/registry.py:744:
DeprecationWarning: Version for profile PluggableAuthService:simple taken
from version.txt. This is deprecated behaviour and will be removed in
GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/home/webmaster/afewtips/parts/plone/GenericSetup/registry.py:744:
DeprecationWarning: Version for profile PluggableAuthService:empty taken
from version.txt. This is deprecated behaviour and will be removed in
GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
done (0.023s)
Installing PluginRegistry ... done (0.019s)
Installing PlonePAS ... done (0.024s)
Installing kupu ... done (0.264s)
Installing CMFEditions ... done (0.026s)
Installing CMFDiffTool ... done (0.023s)
Installing PloneLanguageTool ... done (0.023s)
Running Products.PloneTestCase.layer.PloneSite tests:
  Set up Products.PloneTestCase.layer.ZCML
Traceback (most recent call last):
  File "./bin/instance", line 58, in ?
    plone.recipe.zope2instance.ctl.main(
  File
"/home/webmaster/afewtips/eggs/plone.recipe.zope2instance-2.4-py2.4.egg/plone/recipe/zope2instance/ctl.py",
line 235, in main
    c.onecmd(" ".join(options.args))
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File
"/home/webmaster/afewtips/eggs/plone.recipe.zope2instance-2.4-py2.4.egg/plone/recipe/zope2instance/ctl.py",
line 202, in do_test
    zope.testing.testrunner.run(defaults, args)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/testing/testrunner.py",
line 271, in run
    failed = not run_with_options(options)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/testing/testrunner.py",
line 433, in run_with_options
    setup_layers, failures, errors)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/testing/testrunner.py",
line 604, in run_layer
    setup_layer(layer, setup_layers)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/testing/testrunner.py",
line 688, in setup_layer
    setup_layer(base, setup_layers)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/testing/testrunner.py",
line 692, in setup_layer
    layer.setUp()
  File "/home/webmaster/afewtips/parts/plone/PloneTestCase/layer.py", line
17, in setUp
    five.safe_load_site()
  File "/home/webmaster/afewtips/parts/plone/PloneTestCase/five.py", line
39, in safe_load_site
    zcml.load_site()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/Products/Five/zcml.py",
line 53, in load_site
    _context = xmlconfig.file(file)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 579, in file
    include(context, name, package)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 692, in finish
    actions = self.handler(context, **args)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 692, in finish
    actions = self.handler(context, **args)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 691, in finish
    args = toargs(context, *self.argdata)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/config.py",
line 1383, in toargs
    args[str(name)] = field.fromUnicode(s)
  File
"/home/webmaster/afewtips/parts/zope2/lib/python/zope/configuration/fields.py",
line 141, in fromUnicode
    raise schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/webmaster/afewtips/parts/instance/etc/site.zcml", line 14.2-14.55
    ZopeXMLConfigurationError: File
"/home/webmaster/afewtips/parts/instance/etc/package-includes/001-afewtips.policy-configure.zcml",
line 1.0-1.59
    ZopeXMLConfigurationError: File
"/home/webmaster/afewtips/src/afewtips.policy/afewtips/policy/configure.zcml",
line 7.4-7.65
    ConfigurationError: ('Invalid value for', 'initialize', 'ImportError:
Module afewtips.policy has no global initialize')
 
Any help would great 

thanks
-- 
View this message in context: http://n2.nabble.com/Policy-product-test-fails---error-tp1087379p1087379.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.




More information about the Setup mailing list