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

2009-02-05 Thread Massimiliano della Rovere
On Thu, Feb 5, 2009 at 00:07, Stephan Richter
 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:
ma...@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 pars

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

2009-02-05 Thread Tim Cook
On Wed, 2009-02-04 at 23:53 +0100, Massimiliano della Rovere wrote:
> After restarting the zope istance I receive the following error:
> ImportError: No module named interfacce
> 
> (from mabon.interfacce import IScheda)

If you cpoy/pasted that error (and it looks the same in two places in
your email) then you might want to check your spelling of
interface.note one 'c'.

HTH,
Tim



-- 
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**


signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2009-02-04 Thread Stephan Richter
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.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2009-02-04 Thread Massimiliano della Rovere
After restarting the zope istance I receive the following error:
ImportError: No module named interfacce

(from mabon.interfacce import IScheda)

Using the same layout of von Weitershausen book, I have a browser
package containing the equivalent of mabon.browser.recipe package.
When I import the equivalent of the IRecipe from the file interfacce
(interfaces) in the main package, I receive an error telling me that
the interfacce package does not exist!
File "/home/mader/Zope3/lib/python/mabon/browser/configure.zcml", line 14.1-19.3
from mabon.interfacce import IScheda
(...)
ImportError: No module named interfacce

I checked that both the browser and the mabon (main) packages contain
the __init__.py, but what is really strange is that I use that the
program was working, I hit CTRL-c to restart the zope istance and now
I get the error.

Can you all help me, please? What could be the cause of such an error?
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users