package python-wxgtk2.8 2.8.9.1-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 127

Bug #333419 reported by Broomer68
80
This bug affects 4 people
Affects Status Importance Assigned to Milestone
wxwidgets2.8 (Ubuntu)
Fix Released
High
Matthias Klose
Jaunty
Fix Released
High
Matthias Klose

Bug Description

with todays updates this crash happened.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 127
NonfreeKernelModules: nvidia
Package: python-wxgtk2.8 2.8.9.1-0ubuntu2
SourcePackage: wxwidgets2.8
Title: package python-wxgtk2.8 2.8.9.1-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 127
Uname: Linux 2.6.28-8-server i686

Revision history for this message
Broomer68 (jbezemer) wrote :
Revision history for this message
Daniel Hollocher (chogydan) wrote :

looks like the postinst script attempts to setup for _both_ python2.5 and python2.6, rather than one or the other. Since I don't know anything about packaging, I'm curious to see how this is fixed :)

Changed in wxwidgets2.8:
status: New → Confirmed
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

/var/lib/dpkg/info/python-wxgtk2.8.postinst: 9: python2.6: not found

This is the culprit: (the python$pyver).

diff -u wxwidgets2.8-2.8.9.1/debian/python-wxgtk.postinst wxwidgets2.8-2.8.9.1/debian/python-wxgtk.postinst
--- wxwidgets2.8-2.8.9.1/debian/python-wxgtk.postinst
+++ wxwidgets2.8-2.8.9.1/debian/python-wxgtk.postinst
@@ -3,7 +3,8 @@
 set -e

 for pyver in =PYVERS; do
- update-alternatives --install /usr/lib/python$pyver/site-packages/wx.pth wx$pyver.pth \
+ pylib=$(python$pyver -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
+ update-alternatives --install $pylib/wx.pth wx$pyver.pth \
     /usr/lib/wx/python/wx=V.pth =PRIO
 done;

Revision history for this message
Marius Nestor (marius-nestor) wrote :

Same happens for amd64

Revision history for this message
Martin Olsson (mnemo) wrote :

I also got this

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Confirming here. Thank you for reporting.

Changed in wxwidgets2.8:
importance: Undecided → High
status: Confirmed → Triaged
Changed in wxwidgets2.8:
assignee: nobody → doko
Revision history for this message
Florent (florent.x) wrote :

there's another error with next version 2.8.9.1-0ubuntu3

see bug #333782

Revision history for this message
Matthias Klose (doko) wrote :

fixed in python-wxgtk2.8 2.8.9.1-0ubuntu3

Matthias Klose (doko)
Changed in wxwidgets2.8:
status: Triaged → 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.