apache2 + libapache2-mod-python + libgv-python + graphviz hangs

Bug #215361 reported by Lari Huttunen
4
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-mod-python
$ sudo a2enmod mod_python

$ sudo vi /etc/apache2/sites-enabled/000-default

Replace the existing Directory /var/www entry with the following

     <Directory /var/www/>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          allow from all

          AddHandler mod_python .py
          PythonHandler test
          PythonDebug On
    </Directory>

$ sudo cat > /var/www/test.py
import gv
from mod_python import apache

def handler(req):
    req.content_type = 'text/plain'
    gv.graph('a')
    req.write("Test OK!")
    return apache.OK
^D

$ sudo apache2ctl restart

Navigate to http://localhost/test.py. Observe that the text "Test OK!"
never shows, that the script never returns, and that the apache2
process stalls.

Revision history for this message
Lari Huttunen (debian-huttu) wrote :

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?

Revision history for this message
Lari Huttunen (debian-huttu) wrote :

The bug seems to be in libapache2-mod-python.

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Is this bug still an issue for you? Which Ubuntu version do you use now?

Changed in libapache2-mod-python (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libapache2-mod-python (Ubuntu) because there has been no activity for 60 days.]

Changed in libapache2-mod-python (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.