On Tuesday, May 31, 2016 at 8:10:52 PM UTC-7, Jose wrote:
>
> Hi,
>
> Before upgrading was this: mod_wsgi 3.4/Python 2.7 + Web2py Version 
> 2.5.1-stable
>
> [I have several applications in web2py]
>
>
> 1) upgrade to mod_wsgi 4.5.2/Python 2.7 + Web2py Version 2.14.6
>
> After this, when starting apache the first application that came worked well, 
> but the other (whatever) gave this error:
>
>
> Traceback (most recent call last):
>  File "/home/myuser/web2py/gluon/main.py", line 438, in wsgibase
>  session.connect(request, response)
>  File "/home/myuser/web2py/gluon/globals.py", line 965, in connect
>  session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
>  File "/home/myuser/web2py/gluon/storage.py", line 56, in <lambda>
>  __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self)
> TypeError: getattr(): attribute name must be string
>
>
>
> If restart apache again and went to another application, this worked well, 
> but the other not
>
>
> 2) I back to mod_wsgi 3.4/Python 2.7 keeping Web2py Version 2.14.6
>
> now i always get the same error, regardless of whether the server restart
>
>
> Any idea?
>
> José
>
>
I suspect this isn't a mod_wsgi issue (although your move in the other 
thread to use nginx is a good move).  From the looks of it, you've run into 
a session format change.  All your code should still be compatible, but you 
may need to delete all old sessions.  You probably also have a ticket 
format change, so you may need to delete those, too (or move them to a 
history directory).
 

(I think this happened back around 2.8 or maybe 2.10, but I'm not finding 
the right readme file.)

/dps

 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to