apache2 + libapache2-mod-python + libgv-python + graphviz hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache2-mod-python (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Take a fresh Ubuntu {7.10,8.04} install
$ sudo apt-get update
$ sudo apt-get install graphviz libgv-python
$ sudo apt-get install apache2 libapache2-
$ sudo a2enmod mod_python
$ sudo vi /etc/apache2/
Replace the existing Directory /var/www entry with the following
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
$ sudo cat > /var/www/test.py
import gv
from mod_python import apache
def handler(req):
req.
gv.graph('a')
req.write("Test OK!")
return apache.OK
^D
$ sudo apache2ctl restart
Navigate to http://
never shows, that the script never returns, and that the apache2
process stalls.
Tested this issue on current Debian Unstable (lenny/sid) and could not reproduce this problem.
The issue seems to be stemming from the fact that Ubuntu uses Python 2.5.2 and
Debian uses Python 2.4.5.
Btw, what is the rationale in choosing a different version of Python from Debian as the base?