[EMAIL PROTECTED] schrieb: > On Aug 30, 7:35 am, Georg Brandl <[EMAIL PROTECTED]> wrote: > >> Problems can arise, however, if the module is imported under different names, >> e.g. once as "myapp.application" and once as "application". >> >> You can try to start sphinx with "python -v /path/to/sphinx-build.py" to >> see which imports are done. > > I have been bitten by this same problem in an application of mine, > too. The result of running sphinx-build under "python -v" shows: > > import myapp.model # directory /home/tholo/src/MyApp/myapp/model > # /home/tholo/src/MyApp/myapp/model/__init__.pyc matches /home/tholo/ > src/MyApp/myapp/model/__init__.py > import myapp.model # precompiled from /home/tholo/src/MyApp/myapp/ > model/__init__.pyc > [...] > import myapp.model. # directory /home/tholo/src/MyApp/myapp/model/ > # /home/tholo/src/MyApp/myapp/model/__init__.pyc matches /home/tholo/ > src/MyApp/myapp/model/__init__.py > import myapp.model. # precompiled from /home/tholo/src/MyApp/myapp/ > model/__init__.pyc > > Note the trailing dot in the second occurrence of the import. > Immediately after than second import SQLAlchemy throws "ArgumentError: > Table 'sometable' is already defined for this MetaData instance."
That's not good and smells like a bug in autodoc. What version of Sphinx are you using? Can you show me the snippet of reST that contains the autodoc directives in question? Thanks, Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" 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/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
