durusmail: quixote-users: help
help
help
Neil Schemenauer
2003-07-02
On Wed, Jul 02, 2003 at 02:38:42PM -0400, Mark Bucciarelli wrote:
> i'm not operating on much sleep here ...
>
> i'm getting this message:
>
>   File "/usr/lib/python2.2/site-packages/quixote/session.py", line
> 183, in __setitem__
>
>     raise TypeError("session not an instance of %r: %r"
>
> TypeError: session not an instance of  realtime.realtime_server.DemoSession at 0x83328c4>:  82d3954: 571be1b576956b3f>

I suspect you are using relative imports and ending up with two
DemoSession classes.  If you are curious, you could try adding:

    for k, v in sys.modules.items():
        print k, getattr(v, '__file__', None)

somewhere in your program.  I bet the module containing DemoSession
appears twice.  HTH,

  Neil

reply