Python wx package doesn't supply the wx library in a location where python finds it

Bug #1092561 reported by Ketil
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wxwidgets2.8 (Ubuntu)
Incomplete
Undecided
Rolf Leggewie

Bug Description

Python can't find wx, even though it's installed. Here's a sample session showing the problem:

 user@ubuntu:~$ echo $PYTHONPATH

 user@ubuntu:~$ python
 Python 2.7.3 (default, Sep 26 2012, 21:53:58)
 [GCC 4.7.2] 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
 >>>
 user@ubuntu:~$ PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode python
 Python 2.7.3 (default, Sep 26 2012, 21:53:58)
 [GCC 4.7.2] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import wx
 >>>

I have to manually specify the path to the wx package, otherwise it's not found.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python-wxgtk2.8 2.8.12.1-11ubuntu3.1
ProcVersionSignature: Ubuntu 3.5.0-21.32-generic 3.5.7.1
Uname: Linux 3.5.0-21-generic i686
ApportVersion: 2.6.1-0ubuntu9
Architecture: i386
Date: Thu Dec 20 15:44:41 2012
InstallationDate: Installed on 2010-10-25 (787 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
MarkForUpload: True
ProcEnviron:
 SHELL=/bin/bash
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 XDG_RUNTIME_DIR=<set>
SourcePackage: wxwidgets2.8
UpgradeStatus: Upgraded to quantal on 2012-12-20 (0 days ago)

Revision history for this message
Ketil (ketil-froyn) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wxwidgets2.8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I ran into the same issue and was able to fix it with "sudo aptitude reinstall python-wxgtk2.8 python-wxversion" Can you please confirm this addresses the issue? Then we can dig deeper into what needs to be done to have this fixed properly in the archive.

Changed in wxwidgets2.8 (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
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.