Install wxPython on Puppy Precise 5.7.1 (should also work for ubuntu 12.04)

I used the Puppy-Packet-Manager for install. Please click at every installation below on „check dependencies“

I first installed idle-python2.7_2.7.3 from the ubuntu repository. This will install python 2.7.3 base system and the idle editior.

Install the following packages:
python-wxgtk2.8
python-wxtools
wx2.8-i18n
libwxgtk2.8-dev
libgtk2.0-dev

That’s the way it should work. But it won’t.

The installation from the repository comes with a link named wx.pth. What you need is a textfile named wx.pth with the location of the wx folder in it. That’s a „python-style-link“.

You have to fix wx.pth.
You find it in /usr/lib/python2.7/dist-packages/wx.pth
Delete this file (it is a link).
Create a new textfile with the same name (wx.pth) in /usr/lib/python2.7/dist-packages/
Open it and type the folowing text in the file wx.pth

wx-2.8-gtk2-unicode

and save the file.

Now you can check the installation with the following code:

import wx
app = wx.App()
frame = wx.Frame(None, -1, ‚Hello WX‘)
frame.Show()
app.MainLoop()

You should get a empty window with the title „Hello WX“.