List Info

Thread: moin 1.5, python 2.3 "can't pickle function .." error




moin 1.5, python 2.3 "can't pickle function .." error
user name
2006-04-26 05:08:17
hi,

anybody of you knows the following error message we get
after
upgrading to moinmoin 1.5.3?

Traceback (most recent call last):
  File "/opt/moin/MoinMoin/request.py", line
1088, in run
    handler(self.page.page_name, self)
  File "/opt/moin/MoinMoin/wikiaction.py", line
518, in do_edit
    if not request.user.may.write(pagename):
  File "/opt/moin/MoinMoin/security.py", line
52, in <lambda>
    return lambda pagename, Page=Page, request=request,
attr=attr:
Page(request, pagename).getACL(request).may(request,
self.name, attr)
  File "/opt/moin/MoinMoin/wikiacl.py", line
184, in may
    is_group_member = request.dicts.has_member
  File "/opt/moin/MoinMoin/request.py", line
227, in getDicts
    dicts.scandicts()
  File "/opt/moin/MoinMoin/wikidicts.py", line
403, in scandicts
    cache.update(pickle.dumps(data, PICKLE_PROTOCOL))
PicklingError: Can't pickle <function _compile at
0x8973454>: it's not
the same object as sre._compile

Additionally cgitb raised this exception:
Traceback (most recent call last):
  File "/opt/moin/MoinMoin/failure.py", line
143, in handle
    handler.handle()
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 566, in handle
    doc = view.format(formatter, self.context)
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 343, in format
    return formatter.section(self.formatContent(),
{'class': 'cgitb'})
  File "/opt/moin/MoinMoin/failure.py", line 32,
in formatContent
    content = (
  File "/opt/moin/MoinMoin/failure.py", line 82,
in formatDebugInfo
    info = [self.debugInfoHideScript(),
  File "/opt/moin/MoinMoin/failure.py", line 96,
in formatTraceback
    return self.formatAllTracebacks(self.formatOneTraceback)
  File "/opt/moin/MoinMoin/failure.py", line
108, in formatAllTracebacks
    tracebacks.append(formatFuction((type, value, tb)))
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 421, in formatOneTraceback
    output = [self.formatter.subTitle('Traceback'),
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 434, in tracebackFrames
    frames.append(frame.format(self.formatter))
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 197, in format
    vars, highlight = self.scan()
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 286, in scan
    vars = self.scanVariables(reader)
  File "/opt/moin/MoinMoin/support/cgitb.py",
line 298, in scanVariables
    value = getattr(parent, token, __UNDEF__)
  File "/opt/moin/MoinMoin/request.py", line
227, in getDicts
    dicts.scandicts()
  File "/opt/moin/MoinMoin/wikidicts.py", line
403, in scandicts
    cache.update(pickle.dumps(data, PICKLE_PROTOCOL))
PicklingError: Can't pickle <function _compile at
0x8973454>: it's not
the same object as sre._compile


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http:
//sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&
amp;3057&dat1642
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

moin 1.5, python 2.3 "can't pickle function .." error
user name
2006-04-26 08:50:08
On Wednesday 26 April 2006 07:08, solo turn wrote:
> hi,
>
> anybody of you knows the following error message we get
after
> upgrading to moinmoin 1.5.3?

reloading the page works, I'm still looking for the root
cause of this error.

> Traceback (most recent call last):
>   File "/opt/moin/MoinMoin/request.py",
line 1088, in run
>     handler(self.page.page_name, self)
>   File "/opt/moin/MoinMoin/wikiaction.py",
line 518, in do_edit
>     if not request.user.may.write(pagename):
>   File "/opt/moin/MoinMoin/security.py",
line 52, in <lambda>
>     return lambda pagename, Page=Page, request=request,
attr=attr:
> Page(request, pagename).getACL(request).may(request,
self.name, attr)
>   File "/opt/moin/MoinMoin/wikiacl.py",
line 184, in may
>     is_group_member = request.dicts.has_member
>   File "/opt/moin/MoinMoin/request.py",
line 227, in getDicts
>     dicts.scandicts()
>   File "/opt/moin/MoinMoin/wikidicts.py",
line 403, in scandicts
>     cache.update(pickle.dumps(data, PICKLE_PROTOCOL))
> PicklingError: Can't pickle <function _compile at
0x8973454>: it's not
> the same object as sre._compile
>
> Additionally cgitb raised this exception:
> Traceback (most recent call last):
>   File "/opt/moin/MoinMoin/failure.py",
line 143, in handle
>     handler.handle()
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 566,
in handle
>     doc = view.format(formatter, self.context)
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 343,
in format
>     return formatter.section(self.formatContent(),
{'class': 'cgitb'})
>   File "/opt/moin/MoinMoin/failure.py",
line 32, in formatContent
>     content = (
>   File "/opt/moin/MoinMoin/failure.py",
line 82, in formatDebugInfo
>     info = [self.debugInfoHideScript(),
>   File "/opt/moin/MoinMoin/failure.py",
line 96, in formatTraceback
>     return
self.formatAllTracebacks(self.formatOneTraceback)
>   File "/opt/moin/MoinMoin/failure.py",
line 108, in formatAllTracebacks
>     tracebacks.append(formatFuction((type, value, tb)))
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 421,
in
> formatOneTraceback output =
[self.formatter.subTitle('Traceback'),
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 434,
in tracebackFrames
>     frames.append(frame.format(self.formatter))
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 197,
in format
>     vars, highlight = self.scan()
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 286,
in scan
>     vars = self.scanVariables(reader)
>   File
"/opt/moin/MoinMoin/support/cgitb.py", line 298,
in scanVariables
>     value = getattr(parent, token, __UNDEF__)
>   File "/opt/moin/MoinMoin/request.py",
line 227, in getDicts
>     dicts.scandicts()
>   File "/opt/moin/MoinMoin/wikidicts.py",
line 403, in scandicts
>     cache.update(pickle.dumps(data, PICKLE_PROTOCOL))
> PicklingError: Can't pickle <function _compile at
0x8973454>: it's not
> the same object as sre._compile


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

moin 1.5, python 2.3 "can't pickle function .." error
user name
2006-04-26 10:29:35
>> anybody of you knows the following error message we
get after
>> upgrading to moinmoin 1.5.3?

A search in the wiki for "PicklingError" finds
this:

http://moinmoin.wikiwikiweb.de/MoinMoinBu
gs/WikiDictsRaisePicklingError

Please update the page with as much information as you can
get.

If you use mod_python and/or python 2.3.x, please give exact
versions 
you use THERE.

I personally don't use mod_python, so this stuff has to get
debugged / 
fixed by someone else.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )