FS#12607 - [mod_python] reports error, when import mod_python.apache;
Attached to Project:
Arch Linux
Opened by Road Tang (roadtang) - Monday, 29 December 2008, 02:53 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 09 June 2009, 19:45 GMT
Opened by Road Tang (roadtang) - Monday, 29 December 2008, 02:53 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 09 June 2009, 19:45 GMT
|
Details
Description:
mod_python loses _apache.so Additional info: * package version(s) Name : python Version : 2.6.1-1 Name : mod_python Version : 3.3.1-5 * config and/or log files etc. Steps to reproduce: $ python Python 2.6.1 (r261:67515, Dec 7 2008, 08:27:41) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mod_python.apache; Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/mod_python/apache.py", line 30, in <module> import _apache ImportError: No module named _apache |
This task depends upon
"ImportError: No module named _apache" is the reasonable result from terminal, since the mod_python must be used in the context of apache server.
If use directly in terminal, no serever context supply the apache module, so this error appears.
reference http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking
maybe we can close this bug directly.:L