Is it possible for it to be loading the same class twice? (I am using
raw__import__ statements) -- and if so, is there any way to use some kind of
if/else statement to avoid a dual attempt?

The big picture is that I have a uWSGI application "loader.py" which then
loads up the requested *.py file and calls a run function within that file.

So index.py has that run function, and it loads up a View object from
SQLObject and from there  determines what other additional modules to load,
etc...

2011/5/10 Oleg Broytman <p...@phdru.name>

> On Tue, May 10, 2011 at 01:08:46PM -0600, Pгoм???тн?????s 0x01 wrote:
> > ValueError: class View is already in the registry (other class is , from
> the
> > module lf.db in /local/lf/db.pyc; attempted new class
>
>    Are you sure you don't have two classes named View? If not I suspect
> somewhere (may be in PHP-Python bridge) there are sys.path manipulations
> and you ended up importing the same module twice as different modules.
> Try to print sys.modules.
>
> Oleg.
> --
>     Oleg Broytman            http://phdru.name/            p...@phdru.name
>           Programmers don't die, they just GOSUB without RETURN.
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> sqlobject-discuss mailing list
> sqlobject-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to