[Tutor] Unpickleable object error

Ignacio Vazquez-Abrams ignacio@openservices.net
Thu, 6 Sep 2001 15:44:19 -0400 (EDT)


On Thu, 6 Sep 2001, Sheila King wrote:

> class user:
>     def __init__(self, id, passwd, email, mssgList, lastmssg, caller = None):
>         self.lockfile = MutexFile.MutexFile('userdb.lck')
>         self.myfilename = 'users'
>         self.id = id
>         self.passwd = passwd
>         self.email = email
>         self.mssgList = mssgList
>         self.lasmssg = lastmssg
>
>  [snip]
>
> So, I'm thinking either I can't pickle/shelve this data class, as I have defined
> it, or else I really don't know what the problem is.
>
> Does anyone have any suggestions on how to proceed?

I don't think that it likes that MutexFile.MutexFile object in user. Try
pulling it out of there and putting it somewhere else in the code.

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>