libapache2-mod-wsgi should have a dependency on libpython2.6

Bug #381961 reported by Peter Sagerson
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mod-wsgi (Ubuntu)
Fix Released
Undecided
Andrew Mitchell

Bug Description

Binary package hint: libapache2-mod-wsgi

Ubuntu 9.04 (jaunty)
libapache2-mod-wsgi (2.3-1build1)

Also:

apache2 (2.2.11-2ubuntu2)
libpython2.6 (2.6.2-0ubuntu1)

STEPS:

# aptitude install apache2
# aptitude install libapache2-mod-wsgi

EXPECT:

Apache restarts with libapache2-mod-wsgi loaded.

ACTUAL:

# aptitude install libapache2-mod-wsgi
Selecting previously deselected package libapache2-mod-wsgi.
(Reading database ... 21593 files and directories currently installed.)
Unpacking libapache2-mod-wsgi (from .../libapache2-mod-wsgi_2.3-1build1_i386.deb) ...
Setting up libapache2-mod-wsgi (2.3-1build1) ...
Your apache2 configuration is broken, please fix it and restart apache2 manually.

# apache2ctl configtest
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/wsgi.load: Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

WORKAROUND:

# aptitude install libpython2.6
...

# apache2ctl configtest
Syntax OK

Related branches

Revision history for this message
Bernd Zeimetz (bzed) wrote :

Not a dependency on libpython, but on the appropriate Python version it was built with.

Revision history for this message
James Westby (james-w) wrote :

Fixed in Lucid, thanks.

James

Changed in mod-wsgi (Ubuntu):
status: New → Fix Released
Revision history for this message
João Pinto (joaopinto) wrote :

It is not fixed as of today (on Lucid):

 * Starting web server apache2 apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/wsgi.load: Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

ldd /usr/lib/apache2/modules/mod_wsgi.so
 linux-gate.so.1 => (0xb775d000)
 libpython2.6.so.1.0 => not found
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7720000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb771b000)
 libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb7717000)
 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb76f1000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7597000)
 /lib/ld-linux.so.2 (0xb775e000)

Changed in mod-wsgi (Ubuntu):
status: Fix Released → Confirmed
Changed in mod-wsgi (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Andrew Mitchell (ajmitch)
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

After talking about this in #debian-python it was agreed that debian/rules needed to be fixed - the libpython2.x dependency was explcitly removed because python < 2.6 included this in the python2.x package, and this was split out as a separate package for python2.6

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mod-wsgi - 2.8-2ubuntu1

---------------
mod-wsgi (2.8-2ubuntu1) lucid; urgency=low

  * Remove rule for placing the libpython2.6 dependency in shlibs.local
    This makes libapache2-mod-wsgi depend on libpython2.6 (LP: #381961)
 -- Andrew Mitchell <email address hidden> Tue, 27 Apr 2010 10:41:52 +1200

Changed in mod-wsgi (Ubuntu):
status: In Progress → Fix Released
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.