Forums

Resolve this strange error

http://pastebin.com/CFAdB68e

Im not even using a class slots or pickled and also it runs perfectly fine from localhost whats going on?

It looks like Flask is getting that error when it tries to pickle the session object. Are you putting anything un-pickleable into the session?

I don't think I'm even using pickle(I think,not importing pickle anywhere) also it seems to work fine when run from local host

You're putting stuff into a session variable and so Flask is pickling that. When you're on your local machine, I don't think it needs to store session data to disk because it's just a single instance with in-memory session management.