On Tuesday, September 15, 2020 at 5:20:23 PM UTC-7, clara wrote:
>
> Either running locally with rocket server or under Apache for every single 
> application (including admin), I am getting this error:
>
>   File "C:\web2py\gluon\main.py", line 433, in wsgibase
>     session.connect(request, response)
>   File "C:\web2py\gluon\globals.py", line 1001, in connect
>     session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
>   File "C:\web2py\gluon\storage.py", line 52, in <lambda>
>     __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self)
> TypeError: getattr(): attribute name must be string
>
> I deleted the sessions and cookies. 
>
> I read the thread on this but didn't find a solution.
>
> I am using Python 3.7.3
> Web2py: Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
> OS: Windows 10 
>
> Any help will be really appreciated. I need to get the server back up.
>
> Thanks,
>
> Clara
>


I'm afraid I don't have an answer for you.  Sessions and cookies are the 
obvious thing to clear first.  Since you have a nice ticket output, you 
probably don't have issues with old tickets from a previous ticket format 
(which predates the changes to support Python 3).

If you've been running for a while on the versions you listed, then this 
gets more mysterious.  However, there are some objects that can't be 
pickled, and perhaps a recent application code change tried to pickle such 
an object.

Otherwise, I would look for code that wasn't properly updated for Python 3 
(and from what I've read here, there have been some moving targets within 
the Python3 code base itself).

/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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b952539d-cc64-475c-83e1-6298a7879304o%40googlegroups.com.

Reply via email to