Missing link /usr/lib/wx/python/wx.pth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wxwindows2.4 (Ubuntu) |
Triaged
|
Medium
|
Emilio Pozuelo Monfort | ||
Hardy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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://
100 /var/lib/
I installed/
$ /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/
lrwxrwxrwx 1 root root 22 2008-11-19 12:20 /usr/lib/
while the 2.4 link is
$ ls -l /usr/lib/
lrwxrwxrwx 1 root root 24 2008-11-19 12:20 /usr/lib/
$ ls -l /etc/alternativ
lrwxrwxrwx 1 root root 28 2008-11-19 12:23 /etc/alternativ
and wx2.8.pth is a real file (contents: wx-2.8-
Solution:
Whichever package (presumably python-wxversion) sets these links up needs to redirect the 2.5 wx.pth to '/etc/alternati
Hi Trevor, and thanks for your report.
I've tried to reproduce this but I can't.
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/alternativ es/wx.pth, which will point to /usr/lib/ wx/python/ wx2.?.pth
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?
Have you ever installed wxwidgets deb packages from wxwidgets.org?