On Tue, Aug 26, 2008 at 4:01 AM, Christoph Haas <[EMAIL PROTECTED]> wrote: > Dear list... > > I'm on a documentation frenzy now in my current Pylons project. And I'm > using Sphinx for that purpose. All my controllers and helper functions are > documented automatically. Great. Unfortunately Sphinx fails to create > module documentation for my models. I'm staying close to the "Using > SQLAlchemy with Pylons" way as documented on the wiki. This is the output > on my console: > > ================================= > $> make html > mkdir -p _build/html _build/doctrees > sphinx-build -b html -d _build/doctrees . _build/html > Sphinx v0.4.2, building html > trying to load pickled env... not found > building [html]: targets for 4 source files that are out of date > updating environment: 4 added, 0 changed, 0 removed > reading... antrag-allgemein antrag-erstellen api Exception occurred: > File "/var/lib/python-support/python2.5/sqlalchemy/schema.py", line 101, > in __call__ > "columns on an existing Table object." % key) > InvalidRequestError: Table 'applications' is already defined for this > MetaData instance. Specify 'useexisting=True' to redefine options and > columns on an existing Table object. > The full traceback has been saved in /tmp/sphinx-err-lBwkYm.log, if you > want to report the issue to the author. > Please also report this if it was a user error, so that a better error > message can be provided next time. > Send reports to [EMAIL PROTECTED] Thanks! > make: *** [html] Error 1 > ================================= > > I have a table "applications" here - but it's only defined once.
You get that error if you reload a module containing a table. So Sphinx must be loading it multiple times or executing it. You'll probably have to get the Sphinx people to work with the SQLAlchemy people to come up with a compatible solution. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
