Thank you for your help. We were doing exactly that. I just converted the module reference to a singleton and it works great. I have also run into some other issues under Python 2.2. Apparently, cPickle cannot pickle classes with slots without definging a getstate. I have created a work-around, but I thought everyone should know that session store will raise an error with slots.
I think that your code must be accidentally storing a module object in your session. You'll have to take a close look at all of your session-manipulating code to figure out where the problem is. Also, adding some debugging print statements into SessionFileStore couldn't hurt -- the traceback below shows you where to put them. - Geoff > Does anyone have any idea why the SessionFileStore would try to pickle a > module? I was under the assumption that the storing of the session only > saved information stored in self.session() class? I am sure I am doing > something incorrectly, but I need a bit of guidance. Any assistance would > be appreciated. Thanks. > > Exception in thread Thread-2: > Traceback (most recent call last): > File "C:\Python22\lib\threading.py", line 408, in __bootstrap > self.run() > File "C:\Python22\lib\threading.py", line 396, in run > apply(self.__target, self.__args, self.__kwargs) > File "WebKit\AppServer.py", line 86, in closeThread > self.shutDown() > File "WebKit\ThreadedAppServer.py", line 298, in shutDown > AppServer.shutDown(self) > File "WebKit\AppServer.py", line 119, in shutDown > self._app.shutDown() > File "WebKit\Application.py", line 232, in shutDown > self._sessions.storeAllSessions() > File "WebKit\SessionDynamicStore.py", line 110, in storeAllSessions > self.MovetoFile(i) > File "WebKit\SessionDynamicStore.py", line 98, in MovetoFile > self._fileStore[key] = self._memoryStore[key] > File "WebKit\SessionFileStore.py", line 73, in __setitem__ > self.encoder()(item, file) > File "C:\Python22\lib\copy_reg.py", line 57, in _reduce > raise TypeError, "can't pickle %s objects" % base.__name__ > TypeError: can't pickle module objects > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > _______________________________________________ > Webware-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-devel _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel