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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture i686
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Roman Kyrylych (Romashka)
Tuesday, 09 June 2009, 19:45 GMT
Reason for closing:  Not a bug
Comment by Road Tang (roadtang) - Tuesday, 09 June 2009, 11:49 GMT
sorry, I just found the bug is not the bug.

"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

Loading...