[Bug 300008] [NEW] Missing link /usr/lib/wx/python/wx.pth
Trevor King
wking at drexel.edu
Wed Nov 19 17:56:58 UTC 2008
Public bug reported:
I was having trouble installing wx for python 2.5 on Hardy Heron.
1)
$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
2)
$ apt-cache policy python-wxversion
python-wxversion:
Installed: 2.8.7.1-0ubuntu3
Candidate: 2.8.7.1-0ubuntu3
Version table:
*** 2.8.7.1-0ubuntu3 0
500 http://us.archive.ubuntu.com hardy/universe Packages
100 /var/lib/dpkg/status
I installed/uninstalled assorted wx related packages via aptitude, so it's possible the problem is due to another package and not python-wxversion. After installation
$ /usr/bin/python2.4
>>> import wx
worked, but it failed in python 2.5
$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named wx
Trying to figure out why, I noticed a dead link:
$ ls -l /usr/lib/python2.5/site-packages/wx.pth
lrwxrwxrwx 1 root root 22 2008-11-19 12:20 /usr/lib/python2.5/site-packages/wx.pth -> ../../wx/python/wx.pth
while the 2.4 link is
$ ls -l /usr/lib/python2.4/site-packages/wx.pth
lrwxrwxrwx 1 root root 24 2008-11-19 12:20 /usr/lib/python2.4/site-packages/wx.pth -> /etc/alternatives/wx.pth
$ ls -l /etc/alternatives/wx.pth
lrwxrwxrwx 1 root root 28 2008-11-19 12:23 /etc/alternatives/wx.pth -> /usr/lib/wx/python/wx2.8.pth
and wx2.8.pth is a real file (contents: wx-2.8-gtk2-unicode)
Solution:
Whichever package (presumably python-wxversion) sets these links up needs to redirect the 2.5 wx.pth to '/etc/alternatives/wx.pth'.
** Affects: wxwidgets2.8 (Ubuntu)
Importance: Undecided
Status: New
--
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