[Zope3-Users] Astonishing Error: "Import Error: No module named interfacce"

Massimiliano della Rovere massimiliano.dellarovere at gmail.com
Thu Feb 5 03:01:21 EST 2009


On Thu, Feb 5, 2009 at 00:07, Stephan Richter
<srichter at cosmos.phy.tufts.edu> wrote:
> On Wednesday 04 February 2009, Massimiliano della Rovere wrote:
>> Can you all help me, please? What could be the cause of such an error?
>
> I'd say it is a 99% probability that it is a circular import.

Do you mean that mabon.browser.scheda.py imports mabon.interfacce and
that mabon.interfacce imports mabon.browser.scheda?

I checked and this is not the case...

This is the full error:
mader at triskelion:~/Zope3$ runzope
------
2009-02-05T08:48:45 WARNING root Developer mode is enabled: this is a
security risk and should NOT be enabled on production servers.
Developer mode can be turned off in etc/zope.conf
Traceback (most recent call last):
  File "/home/mader/bin/runzope", line 48, in ?
    run()
  File "/home/mader/bin/runzope", line 44, in run
    main(["-C", CONFIG_FILE] + sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py",
line 73, in main
    service = setup(load_options(args))
  File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py",
line 140, in setup
    zope.app.appsetup.config(options.site_definition,
features=features)
  File "/usr/lib/python2.4/site-packages/zope/app/appsetup/appsetup.py",
line 110, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 579, in file
    include(context, name, package)
  File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File "/usr/lib/python2.4/site-packages/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 "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 692, in finish
    actions = self.handler(context, **args)
  File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File "/usr/lib/python2.4/site-packages/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 "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 692, in finish
    actions = self.handler(context, **args)
  File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File "/usr/lib/python2.4/site-packages/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 "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 692, in finish
    actions = self.handler(context, **args)
  File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 515, in include
    processxmlfile(f, context)
  File "/usr/lib/python2.4/site-packages/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 "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py",
line 349, in endElementNS
    self.context.end()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 691, in finish
    args = toargs(context, *self.argdata)
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 1383, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/usr/lib/python2.4/site-packages/zope/configuration/fields.py",
line 139, in fromUnicode
    value = self.context.resolve(name)
  File "/usr/lib/python2.4/site-packages/zope/configuration/config.py",
line 184, in resolve
    mod = __import__(mname, *_import_chickens)
  File "/home/mader/Zope3/lib/python/mabon/browser/scheda.py", line 19, in ?
    from mabon.interfacce import IScheda
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/mader/Zope3/etc/site.zcml", line 7.2-7.55
    ZopeXMLConfigurationError: File
"/home/mader/Zope3/etc/package-includes/mabon-configure.zcml", line
1.0-1.27
    ZopeXMLConfigurationError: File
"/home/mader/Zope3/lib/python/mabon/configure.zcml", line 402.1-402.31
    ZopeXMLConfigurationError: File
"/home/mader/Zope3/lib/python/mabon/browser/configure.zcml", line
14.1-19.3
    ImportError: No module named interfacce


More information about the Zope3-users mailing list