Will do, will follow up with results.

On Wednesday, May 5, 2021 at 11:25:58 AM UTC-4 Mike Bayer wrote:

>
>
> On Wed, May 5, 2021, at 11:18 AM, Yaakov Bressler wrote:
>
> *But when I try generating documentation for the entire project *
> *(`MODULE='.'`)**, I get the following error:*
>
>
> ImportError: Error importing 'PROJECT_NAME.database':
> InvalidRequestError: Table 'FooBar' is already defined for this MetaData 
> instance.  Specify 'extend_existing=True' to redefine options and columns 
> on an existing Table object.
>
>
> What makes this error odd is that I have a full testing suite where there 
> are no issues at all. Further, the error occurs in database.__init__.py 
> which just doesn't make sense to me at all.
>
> *Is it possible that my models are attempted to be created twice by pydoc 
> when called from the root?*
>
>
> it certainly seems that way.   Try putting a pdb.set_trace() inside of 
> *database.models.model.py 
> <http://database.models.model.py> *and see if it's called twice.
>
>
>

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/a1a80a9e-f7ae-46c6-916a-dccb1f71a5abn%40googlegroups.com.

Reply via email to