[Zope3-Users] Many problems with static-apidoc script...

KLEIN Stéphane klein.stephane at gmail.com
Fri Oct 27 19:18:26 EDT 2006


Hi,

I've one zope3 instance in : ~/zope/instance/2/

When I do :

cd ~/zope/instance/2/bin
./static-apidoc -d ~/zope/doc/

I've this error :

Traceback (most recent call last):
  File "./static-apidoc", line 31, in ?
    main()
  File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py",
line 504, in main
    maker.start()
  File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py",
line 193, in start
    self.browser = PublisherBrowser()
  File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py",
line 141, in __init__
    functional.Functional.setUp()
  File "/home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py",
line 198, in setUp
    FunctionalTestSetup(self.config_file)
  File "/home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py",
line 139, in __init__
    self.app = Debugger(self.db, config_file)
  File "/home/harobed/zope/opt2//lib/python/zope/app/debug/debug.py",
line 35, in __init__
    config(config_file)
  File "/home/harobed/zope/opt2//lib/python/zope/app/appsetup/appsetup.py",
line 110, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py",
line 579, in file
    include(context, name, package)
  File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py",
line 508, in include
    f = openInOrPlain(path)
  File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py",
line 419, in openInOrPlain
    fp = open(filename)
IOError: [Errno 2] No such file or directory:
'/home/harobed/zope/instances/2/bin/ftesting.zcml'

When I do :

cd ~/zope/instance/2/
bin/static-apidoc -d ~/zope/doc/

I've this error :

Traceback (most recent call last):
  File "bin/static-apidoc", line 31, in ?
    main()
  File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py",
line 504, in main
    maker.start()
  File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py",
line 200, in start
    self.browser._links_factory.urltags = urltags
  File "/home/harobed/zope/opt2//lib/python/mechanize/_mechanize.py",
line 505, in __getattr__
    raise AttributeError(
AttributeError: <class 'zope.app.apidoc.static.PublisherBrowser'>
instance has no attribute _links_factory (perhaps you forgot to
.select_form()?)

What is my mistake ? How can I use static-apidoc script ?

Thanks for your help
Stephane


More information about the Zope3-users mailing list