Just as support for Michael's comments about module reloaders often
causing problems with pickle, see the following discussion:

  http://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule

May not at all be relevant to your problem, but may still be of
interest.

Graham

On Aug 18, 8:01 am, Michael Bayer <[EMAIL PROTECTED]> wrote:
> On Aug 17, 11:54 am, Vitaliyi <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I've tried this :
>
> >  import psycopg2
> > ...
> > s = curs.fetchone()[0]
> > ls = cPickle.loads(str(s))
>
> > and it returned :
> > AttributeError: 'module' object has no attribute 'Path'
>
> > just as django did. it pretends that 'Path' is not defined. Seems it is
> > still the problem of django
>
> > Thanks.
>
> > P.S. going to use cPickle without sqlalchemy to load data
>
> the data coming back from your database is just a string.  using
> psycopg2/sqlalchemy or nothing to produce that string before sending
> to pickle.loads() should not affect the equation.  I understand that
> "Path" is not part of django, but i was suggesting that if the module
> where Path resides is *imported* by django using a reloadable
> container of some kind, that could break pickle's ability to re-locate
> the object.  I suggest this because you say it worked *without*
> django.
>
> also i have no idea how django loads modules, but from my own work
> with mod_python as well as Myghty and Mako i know that "reloadable"
> module schemes are important in web frameworks so that changes to
> controller modules show up immediately in the application without
> restarting.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to