[XML-SIG] I don't understand this error -- please help

Dieter Maurer dieter at handshake.de
Fri Jun 27 21:51:23 EDT 2003


Martin v. Löwis wrote at 2003-6-26 22:31 +0200:
 > Michael McKerns <mmckerns at its.caltech.edu> writes:
 > 
 > >     encoder = codecs.lookup("utf-8")[0] # encode,decode,reader,writer
 > > 
 > >   File "/var/tmp/python-2.2.2-root/usr/lib/python2.2/encodings/__init__.py",
 > > line 51, in search_function
 > > 
 > > RuntimeError: cannot unmarshal code objects in restricted execution mode
 > 
 > Many people have asked this question before, and nobody could ever
 > answer it. It would need an expert of Python and mod_python with
 > access to a machine where this happens to find out why it happens.
 > No such expert ever stepped forward.

I have seen this error before -- in Zope (a long time ago).

The work around has been to call the function during import
of a non restricted module (to fill the cache).


Dieter



More information about the XML-SIG mailing list