Comment 32 for bug 211553

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote : Re: [Bug 211553] Re: wxPython isn't on path in hardy beta

David Gaarenstroom wrote:
> - This bug is not caused by the apt.wxwidgets.org version, it was solve by using it,
> but that repository has nothing to do with this bug report!

At least it is related, as I got this bug by upgrading from packages in that
repository to the official packages. But it may be a different issue with the
same consequence.

> - I get this problem when upgrading from gutsy, as well as a clean hardy install.
> When I say clean, I mean clean: out of the box, direct from a 8.04 live CD
> installed and apt-get install python-wxgtk2.8.

I can't reproduce this at all in a Hardy install by installing python-wxgtk2.8,
nor a combination of python-wxgtk2.8 and python-wxgtk2.6. It's not an upgrade
from Gutsy.

I've installed the Gutsy official (from the Ubuntu repositories) packages in
that hardy installation, importing wx worked fine, then upgraded to the Hardy
Ubuntu packages (to test the upgrade scripts) and it was still working fine, and
the symlinks were correct.

> - Please unpack the .deb, e.g. from http://packages.ubuntu.com/hardy/python-wxgtk2.8,
> you will see there that it's simply not there, "postinst":
>
> update-alternatives --install /usr/lib/wx/python/wx.pth wx.pth \
> /usr/lib/wx/python/wx2.8.pth 28
>
> Now YOU point me where it is linking /usr/lib/python2.5/site-
> packages/wx.pth to something.

It's in python-wxversion, and python-wxgtk2.8 depends on it.

>
> By the way, postinst is using "/bin/sh" as shell, which for me is
> /bin/dash, but that does not seem related.
>

It is not.

David Gaarenstroom wrote:
> Upgrading from gutsy (live-CD based, with python-wxgtk2.8)
> to hardy seems to does have the problem.

Weird, I'll have to test a complete install of Gutsy & upgrade to Hardy.
But if you have it at hand, could you let me know the output of these commands?

ls -l /usr/lib/python2.*/site-packages/wx.pth
ls -l /usr/lib/wx/python/
ls -l /etc/alternatives/wx.pth
cat /usr/lib/wx/python/wx2.8.pth
dpkg -l | grep python-wx
apt-cache madison python-wxgtk2.8
apt-cache policy python-wxgtk2.8

> Clean hardy (live-CD) (many package installs) then apt-get
> install python-wxgtk2.8 (no other installs before that) does somehow...
> Clean hardy (live-CD) then apt-get install python-wxgtk2.8
> does not have the problem.
> Clean hardy (live-CD) apt-get install python-wxgtk2.8 then
> many package installs does not have the problem.

Do you mean that if you install python-wxgtk2.8 in a clean install, importing wx
from python works fine, but if you install it after installing lots of packages,
importing wx does not work?

If so, what packages did you install before installing python-wxgtk2.8 to
trigger the problem?

Thanks for your help.