AW: [Zope3-dev] apidoc is crowling outside my Zope3 root?

Roger ineichen dev at projekt01.ch
Fri Apr 2 02:22:18 EST 2004


Thanks

I think it was my(configuration) problem of getting the wrong python.
After installing Plone 2 apidoc was using the Python (expathreader) 
of the plone installation.
The PYTHONPATH is correct and don't include this Plone Python version. 
I don't know how this could crawl my Plone in a different folder.
I explicit start the Zope3 with a fresh 2.3.3 Py like:
c:\Python23\python.exe z3.py 
Perhaps this has something to do with dll's and I was using a wrong dll
after installing Plone???

I uninstalled Plone and then a py23.dll was missing.

After installing a fesh py 2.3.3, I get another ERROR, see below.

If I exclude apidoc from the configure.zcml Zope3 ist starting ok.


C:\projektCompiler\current>c:\Python23\python.exe z3.py
Traceback (most recent call last):
  File "z3.py", line 65, in ?
    run()
  File "z3.py", line 61, in run
    main(argv[1:])
  File "C:\projektCompiler\current\src\zope\app\process\main.py", line 56,
in main
    setup(args)
  File "C:\projektCompiler\current\src\zope\app\process\main.py", line 89,
in setup
    config(options.site_definition)
  File "C:\projektCompiler\current\src\zope\app\_app.py", line 43, in config
    context = xmlconfig.file(file, execute=execute)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 449, in file
    include(context, name, package)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 376, in include
    processxmlfile(f, context)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 244, in processxmlfile
    parser.parse(src)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\xmlreader.py", line 123,
in parse
    self.feed(buffer)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
216, in feed
    self._parser.Parse(data, isFinal)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
364, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 224, in endElementNS
    self.context.end()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
476, in end
    self.stack.pop().finish()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
623, in finish
    actions = self.handler(context, **args)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 376, in include
    processxmlfile(f, context)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 244, in processxmlfile
    parser.parse(src)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\xmlreader.py", line 123,
in parse
    self.feed(buffer)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
216, in feed
    self._parser.Parse(data, isFinal)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
364, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 224, in endElementNS
    self.context.end()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
476, in end
    self.stack.pop().finish()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
623, in finish
    actions = self.handler(context, **args)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 376, in include
    processxmlfile(f, context)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 244, in processxmlfile
    parser.parse(src)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\xmlreader.py", line 123,
in parse
    self.feed(buffer)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
216, in feed
    self._parser.Parse(data, isFinal)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
364, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 224, in endElementNS
    self.context.end()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
476, in end
    self.stack.pop().finish()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
623, in finish
    actions = self.handler(context, **args)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 376, in include
    processxmlfile(f, context)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 244, in processxmlfile
    parser.parse(src)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\xmlreader.py", line 123,
in parse
    self.feed(buffer)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
216, in feed
    self._parser.Parse(data, isFinal)
  File "c:\Python23\lib\site-packages\_xmlplus\sax\expatreader.py", line
364, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "C:\projektCompiler\current\src\zope\configuration\xmlconfig.py",
line 224, in endElementNS
    self.context.end()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
476, in end
    self.stack.pop().finish()
  File "C:\projektCompiler\current\src\zope\configuration\config.py", line
623, in finish
    actions = self.handler(context, **args)
  File "C:\projektCompiler\current\src\zope\app\component\metaconfigure.py",
line 183, in utility
    component = factory()
  File
"C:\projektCompiler\current\src\zope\app\apidoc\classmodule\__init__.py",
line 539, in __init__
    self.__setup()
  File
"C:\projektCompiler\current\src\zope\app\apidoc\classmodule\__init__.py",
line 544, in __setup
    self._Module__children[name] = Module(self, name, safe_import(name))
  File
"C:\projektCompiler\current\src\zope\app\apidoc\classmodule\__init__.py",
line 185, in __init__
    self.__setup()
  File
"C:\projektCompiler\current\src\zope\app\apidoc\classmodule\__init__.py",
line 214, in __setup
    for name in self.__module.__dict__.keys():
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"C:\projektCompiler\current\site.zcml", line 3.2-3.32
    ZopeXMLConfigurationError: File
"C:\projektCompiler\current\src\zope\app\configure.zcml", line 122.2-122.39
    ZopeXMLConfigurationError: File
"C:\projektCompiler\current\src\zope\app\apidoc\configure.zcml", line
19.2-19.36
    ZopeXMLConfigurationError: File
"C:\projektCompiler\current\src\zope\app\apidoc\classmodule\configure.zcml",
line 23.2-26.19
    AttributeError: 'NoneType' object has no attribute '__dict__'


Regards
Roger Ineichen
_____________________________
END OF MESSAGE 

> -----Ursprüngliche Nachricht-----
> Von: zope3-dev-bounces+dev=projekt01.ch at zope.org 
> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] Im 
> Auftrag von Stephan Richter
> Gesendet: Freitag, 2. April 2004 02:59
> An: zope3-dev at zope.org
> Cc: r.ineichen at projekt01.ch
> Betreff: Re: [Zope3-dev] apidoc is crowling outside my Zope3 root?
> 
> 
> On Thursday 01 April 2004 19:42, Stephan Richter wrote:
> > On Thursday 01 April 2004 15:41, Roger Ineichen wrote:
> > > 
> "C:\projektCompiler\current\src\zope\app\apidoc\classmodule\__init__
> > > .py",
> > > line 654, in safe_import
> > >     module = __import__(path, {}, {}, ('*',))
> > >   File "C:\projektCompiler\current\src\ZODB\Mount.py", 
> line 47, in ?
> > >     class MountPoint(persistent.Persistent, Acquisition.Implicit):
> >
> > This is because Mount.py requires Acquisition to be there. 
> Shrug. Why 
> > in the world is this there? I noticed it before, but was 
> able to work 
> > around.
> >
> > Once zope.app.advanced is removed, I will tell the code 
> crawler not to 
> > look at Mount.py.
> 
> Okay, I told the crawler to avoid that file.
> 
> Regards,
> Stephan
> -- 
> Stephan Richter
> CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. 
> student) Web2k - Web Software Design, Development and Training
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org http://mail.zope.org/mailman/listinfo/zope3-dev
> 




More information about the Zope3-dev mailing list