[mod_python] restricted execution mode and PyXML

max.zhang max.zhang at converzal.com
Fri May 2 19:28:36 EST 2003


I met the same problem while calling raw_data.encode('utf-8','replace') 


System :
            RH 8
            mod_python 3.0.3
            python2.2
            apache 2.0

----- Original Message ----- 
From: "Christopher Blunck" <cblunck2000 at yahoo.com>
To: <mod_python at modpython.org>
Sent: Friday, May 02, 2003 11:23 AM
Subject: [mod_python] restricted execution mode and PyXML


> Hi all-
> 
> Am working with ZSI under mod_python.  The problem I'm
> running into is that ZSI imports PyXML, which uses
> dynamic module importing to load encoders for various
> xml codecs (UTF-8 being the most common encoder). 
> When the PyXML code tries to do the dynamic module
> import, the Python interpretter prevents it with an
> error something like "cannot dynamically import module
> during restricted execution mode".  Forgive me for not
> quoting the exact error, as I'm currently upgrading
> the OS on that box right now to RH 9.
> 
> This occurs with the latest mod_python (3.0.3) with
> PyXML 0.7.1 and httpd 2.0.40.
> 
> Has anyone else had success in importing PyXML modules
> within code run by modpython?
> 
> Or, does anyone have any information they'd be willing
> to share to help me out (e.g. "you might try and check
> out XXX or YYY").  Anything would be useful to me at
> this point.
> 
> 
> 
> 
> -c
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 


More information about the Mod_python mailing list