[mod_python] error in running a script in apache browser

Vince Buonassisi vjb at vuit.com
Mon Apr 21 07:56:38 EST 2003


hi,

i am getting the following error when a python test script is executed  
in the apache web server:

Mod_python error: "PythonHandler reqhandler"

Traceback (most recent call last):

   File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line  
181, in Dispatch
     module = import_module(module_name, _req)

   File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line  
335, in import_module
     module = imp.load_module(mname, f, p, d)

   File "/usr/local/apache/htdocs/reqhandler.py", line 9, in ?
     from xml.dom.ext.reader.Sax2 import FromXmlStream, FromXml

   File  
"/usr/lib/python2.2/site-packages/_xmlplus/dom/ext/reader/__init__.py",  
line 21, in ?
     encoder = codecs.lookup("utf-8")[0] # encode,decode,reader,writer

   File  
"/usr/src/build/143041-i386/install/usr/lib/python2.2/encodings/ 
__init__.py", line 51, in search_function

RuntimeError: cannot unmarshal code objects in restricted execution mode

the script i am running is very simple.  i just send a text message to  
the browser.  i am using the following versions of software:

apache 1.3.26
python 2.2.1
mod python 2.7.8
PyXML 0.7.1
linux redhat 8

any help would be appreciated.

thanks

vince
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1254 bytes
Desc: not available
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20030421/3ccea826/attachment-0003.bin


More information about the Mod_python mailing list