[Bug 300008] Re: Missing link /usr/lib/wx/python/wx.pth

Trevor King wking at drexel.edu
Thu Nov 27 02:06:13 UTC 2008


Hmm, I just bounced to emails.  Do we have to use the web interface?
Anyhow, I've reproduced the bug in a script:

From: "W. Trevor King"
To: Bug 300008 <300008 at bugs.launchpad.net>
Cc: 
Bcc: 
Subject: Re: Missing link /usr/lib/wx/python/wx.pth
Reply-To: 
In-Reply-To: <20081126214948.9521.91828.malone at potassium.ubuntu.com>

On Wed, Nov 26, 2008 at 09:49:48PM +0000, Emilio Pozuelo Monfort wrote:
> I've tried to reproduce this but I can't.

It took me a bit of digging through my aptitude logs before I could too,
so I'm not supprised ;).  Sorry I didn't think to check them earlier :p.

> The right symlink is actually from /usr/lib/python2.X/site-
> packages/wx.pth to /usr/lib/wx/python/wx.pth (the python2.5 one). Then,
> /usr/lib/wx/python/wx.pth should point to /etc/alternatives/wx.pth,
> which will point to /usr/lib/wx/python/wx2.?.pth

That's what I get after a good install, see screenlog.0 below.

> Can you check where /usr/lib/wx/python/wx.pth points to in your system?
> Is this an upgrade from a previous Ubuntu release, or did you install it from scratch?

I don't remember, but that's ok, reproduction below.

> Have you ever installed wxwidgets deb packages from wxwidgets.org?

No.  Only Ubuntu packages for wxwidgets.


After digging through my aptitdue logs, I see that I was a bit
confused.  I think I was trying to get `import wxWidgets' working in
python to get some old code going, not realizing that it should have
been `import wx'.  Anyhow, a script reproducing my bug and a
screendump of it's output are attached.

The 2.4 install step somehow mangles the linking situation, setting up

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory
/etc/alternatives/wx.pth -> /usr/lib/wx/python/wx2.8.pth
/usr/lib/python2.4/site-packages/wx.pth -> /etc/alternatives/wx.pth
/usr/lib/python2.5/site-packages/wx.pth -> ../../wx/python/wx.pth

Which persists through the remainder of the broken approach.  A full
clear and reinstall without any 2.4 packages fixes the situation.

Hope that helps :)
Trevor

--------- begin wxlinks.sh ----------
#!/bin/bash
#
# reproduce 
# https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/300008

echo "        --------- BROKEN APPROACH ---------      "

echo "Clean"
sudo apt-get purge -my python-wxtools python-wxversion python-wxgtk2.8 libwxgtk2.8-0 wx-common libwxbase2.8-0 libwxgtk2.4-1 python-wxgtk2.4
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo -e "\nHalf install"
sudo apt-get install -y libwxbase2.8-0 libwxgtk2.8-0
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo -e "\n2.4 install"
sudo apt-get install -y python-wxversion python-wxgtk2.4 libwxgtk2.4-1 python-wxgtk2.8
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo -e "\n2.4 remove"
sudo apt-get purge -y python-wxgtk2.4 libwxgtk2.4-1
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo -e "\n2.8 install"
sudo apt-get install -y python-wxtools wx-common
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo "        --------- WORKING APPROACH ---------      "

echo "Clean"
sudo apt-get purge -my python-wxtools python-wxversion python-wxgtk2.8 libwxgtk2.8-0 wx-common libwxbase2.8-0 libwxgtk2.4-1 python-wxgtk2.4
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth

echo -e "\n2.8 install"
sudo apt-get install -y python-wxtools python-wxversion python-wxgtk2.8 libwxgtk2.8-0 wx-common libwxbase2.8-0
ls -l /usr/lib/python2.{4,5}/site-packages/wx.pth /usr/lib/wx/python/wx.pth /etc/alternatives/wx.pth
----------end wxlinks.sh-------------


--------- begin screenlog.0 ----------
$ ./wxlinks.sh 

        --------- BROKEN APPROACH ---------

Clean

[sudo] password for wking:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package libwxgtk2.4-1 is not installed, so not removed

Package python-wxgtk2.4 is not installed, so not removed

The following packages will be REMOVED:

  libwxbase2.8-0* libwxgtk2.8-0* python-wxgtk2.8* python-wxtools*

  python-wxversion* wx-common*

0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.

After this operation, 56.2MB disk space will be freed.

(Reading database ... 250168 files and directories currently installed.)

Removing wx-common ...

Removing python-wxtools ...

Purging configuration files for python-wxtools ...

Removing python-wxversion ...

Removing python-wxgtk2.8 ...

Removing libwxgtk2.8-0 ...

Purging configuration files for libwxgtk2.8-0 ...

Removing libwxbase2.8-0 ...

Purging configuration files for libwxbase2.8-0 ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

ls: cannot access /usr/lib/python2.4/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/python2.5/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

ls: cannot access /etc/alternatives/wx.pth: No such file or directory


Half install

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

  libwxbase2.8-0 libwxgtk2.8-0

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

Need to get 0B/4175kB of archives.

After this operation, 11.8MB of additional disk space will be used.

Selecting previously deselected package libwxbase2.8-0.

(Reading database ... 248668 files and directories currently installed.)

Unpacking libwxbase2.8-0 (from
.../libwxbase2.8-0_2.8.7.1-0ubuntu3_i386.deb) ...

Selecting previously deselected package libwxgtk2.8-0.

Unpacking libwxgtk2.8-0 (from
.../libwxgtk2.8-0_2.8.7.1-0ubuntu3_i386.deb) ...

Setting up libwxbase2.8-0 (2.8.7.1-0ubuntu3) ...


Setting up libwxgtk2.8-0 (2.8.7.1-0ubuntu3) ...


Processing triggers for libc6 ...

ldconfig deferred processing now taking place

ls: cannot access /usr/lib/python2.4/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/python2.5/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

ls: cannot access /etc/alternatives/wx.pth: No such file or directory


2.4 install

Reading package lists... Done

Building dependency tree

Reading state information... Done

Suggested packages:

  wx2.4-doc wx2.4-examples python2.4-xml wx2.8-examples

The following NEW packages will be installed:

  libwxgtk2.4-1 python-wxgtk2.4 python-wxgtk2.8 python-wxversion

0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.

Need to get 0B/14.0MB of archives.

After this operation, 59.6MB of additional disk space will be used.

Selecting previously deselected package libwxgtk2.4-1.

(Reading database ... 248719 files and directories currently installed.)

Unpacking libwxgtk2.4-1 (from
.../libwxgtk2.4-1_2.4.5.1.1ubuntu1_i386.deb) ...

Selecting previously deselected package python-wxgtk2.8.

Unpacking python-wxgtk2.8 (from .../python-
wxgtk2.8_2.8.7.1-0ubuntu3_i386.deb) ...

Selecting previously deselected package python-wxversion.

Unpacking python-wxversion (from .../python-
wxversion_2.8.7.1-0ubuntu3_all.deb) ...

Selecting previously deselected package python-wxgtk2.4.

Unpacking python-wxgtk2.4 (from .../python-
wxgtk2.4_2.4.5.1.1ubuntu1_i386.deb) ...

Setting up libwxgtk2.4-1 (2.4.5.1.1ubuntu1) ...


Setting up python-wxgtk2.8 (2.8.7.1-0ubuntu3) ...


Setting up python-wxversion (2.8.7.1-0ubuntu3) ...


Setting up python-wxgtk2.4 (2.4.5.1.1ubuntu1) ...


Processing triggers for libc6 ...

ldconfig deferred processing now taking place

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

lrwxrwxrwx 1 root root 28 2008-11-26 20:35 /etc/alternatives/wx.pth ->
/usr/lib/wx/python/wx2.8.pth

lrwxrwxrwx 1 root root 24 2008-11-26 20:35 /usr/lib/python2.4/site-
packages/wx.pth -> /etc/alternatives/wx.pth

lrwxrwxrwx 1 root root 22 2008-11-26 20:35 /usr/lib/python2.5/site-
packages/wx.pth -> ../../wx/python/wx.pth


2.4 remove

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages will be REMOVED:

  libwxgtk2.4-1* python-wxgtk2.4*

0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.

After this operation, 15.8MB disk space will be freed.

(Reading database ... 250482 files and directories currently installed.)

Removing python-wxgtk2.4 ...

Removing libwxgtk2.4-1 ...

Purging configuration files for libwxgtk2.4-1 ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

lrwxrwxrwx 1 root root 28 2008-11-26 20:35 /etc/alternatives/wx.pth ->
/usr/lib/wx/python/wx2.8.pth

lrwxrwxrwx 1 root root 24 2008-11-26 20:35 /usr/lib/python2.4/site-
packages/wx.pth -> /etc/alternatives/wx.pth

lrwxrwxrwx 1 root root 22 2008-11-26 20:35 /usr/lib/python2.5/site-
packages/wx.pth -> ../../wx/python/wx.pth


2.8 install

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

  python-wxtools wx-common

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

Need to get 0B/217kB of archives.

After this operation, 557kB of additional disk space will be used.

Selecting previously deselected package python-wxtools.

(Reading database ... 250113 files and directories currently installed.)

Unpacking python-wxtools (from .../python-
wxtools_2.8.7.1-0ubuntu3_all.deb) ...

Selecting previously deselected package wx-common.

Unpacking wx-common (from .../wx-common_2.8.7.1-0ubuntu3_i386.deb) ...

Setting up python-wxtools (2.8.7.1-0ubuntu3) ...


Setting up wx-common (2.8.7.1-0ubuntu3) ...

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

lrwxrwxrwx 1 root root 28 2008-11-26 20:35 /etc/alternatives/wx.pth ->
/usr/lib/wx/python/wx2.8.pth

lrwxrwxrwx 1 root root 24 2008-11-26 20:35 /usr/lib/python2.4/site-
packages/wx.pth -> /etc/alternatives/wx.pth

lrwxrwxrwx 1 root root 22 2008-11-26 20:35 /usr/lib/python2.5/site-
packages/wx.pth -> ../../wx/python/wx.pth

        --------- WORKING APPROACH ---------

Clean

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package libwxgtk2.4-1 is not installed, so not removed

Package python-wxgtk2.4 is not installed, so not removed

The following packages will be REMOVED:

  libwxbase2.8-0* libwxgtk2.8-0* python-wxgtk2.8* python-wxtools*
python-wxversion* wx-common*

0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.

After this operation, 56.2MB disk space will be freed.

(Reading database ... 250168 files and directories currently installed.)

Removing wx-common ...

Removing python-wxtools ...

Purging configuration files for python-wxtools ...

Removing python-wxversion ...

Removing python-wxgtk2.8 ...

Removing libwxgtk2.8-0 ...

Purging configuration files for libwxgtk2.8-0 ...

Removing libwxbase2.8-0 ...

Purging configuration files for libwxbase2.8-0 ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

ls: cannot access /usr/lib/python2.4/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/python2.5/site-packages/wx.pth: No such file
or directory

ls: cannot access /usr/lib/wx/python/wx.pth: No such file or directory

ls: cannot access /etc/alternatives/wx.pth: No such file or directory


2.8 install

Reading package lists... Done

Building dependency tree

Reading state information... Done

Suggested packages:

  wx2.8-examples

The following NEW packages will be installed:

  libwxbase2.8-0 libwxgtk2.8-0 python-wxgtk2.8 python-wxtools python-
wxversion wx-common

0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.

Need to get 0B/14.3MB of archives.

After this operation, 56.2MB of additional disk space will be used.

Selecting previously deselected package libwxbase2.8-0.

(Reading database ... 248668 files and directories currently installed.)

Unpacking libwxbase2.8-0 (from
.../libwxbase2.8-0_2.8.7.1-0ubuntu3_i386.deb) ...

Selecting previously deselected package libwxgtk2.8-0.

Unpacking libwxgtk2.8-0 (from
.../libwxgtk2.8-0_2.8.7.1-0ubuntu3_i386.deb) ...

Selecting previously deselected package python-wxversion.

Unpacking python-wxversion (from .../python-
wxversion_2.8.7.1-0ubuntu3_all.deb) ...

Selecting previously deselected package python-wxgtk2.8.

Unpacking python-wxgtk2.8 (from .../python-
wxgtk2.8_2.8.7.1-0ubuntu3_i386.deb) ...

Selecting previously deselected package python-wxtools.

Unpacking python-wxtools (from .../python-
wxtools_2.8.7.1-0ubuntu3_all.deb) ...

Selecting previously deselected package wx-common.

Unpacking wx-common (from .../wx-common_2.8.7.1-0ubuntu3_i386.deb) ...

Setting up libwxbase2.8-0 (2.8.7.1-0ubuntu3) ...


Setting up libwxgtk2.8-0 (2.8.7.1-0ubuntu3) ...


Setting up wx-common (2.8.7.1-0ubuntu3) ...

Setting up python-wxversion (2.8.7.1-0ubuntu3) ...


Setting up python-wxgtk2.8 (2.8.7.1-0ubuntu3) ...


Setting up python-wxtools (2.8.7.1-0ubuntu3) ...


Processing triggers for libc6 ...

ldconfig deferred processing now taking place

lrwxrwxrwx 1 root root 28 2008-11-26 20:35 /etc/alternatives/wx.pth ->
/usr/lib/wx/python/wx2.8.pth

lrwxrwxrwx 1 root root 22 2008-11-26 20:35 /usr/lib/python2.4/site-
packages/wx.pth -> ../../wx/python/wx.pth

lrwxrwxrwx 1 root root 22 2008-11-26 20:35 /usr/lib/python2.5/site-
packages/wx.pth -> ../../wx/python/wx.pth

lrwxrwxrwx 1 root root 24 2008-11-26 20:35 /usr/lib/wx/python/wx.pth ->
/etc/alternatives/wx.pth

$

----------end screenlog.0-------------

-- 
Missing link /usr/lib/wx/python/wx.pth
https://bugs.launchpad.net/bugs/300008
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list