In Jaunty, when both python-wxgtk2.6 and python-wxgtk2.8 are installed, this happens by default:
>>> import wx
>>> wx.VERSION
(2, 6, 3, 2, '')
In Intrepid, this happens by default:
>>> import wx
>>> wx.VERSION
(2, 8, 8, 0, '')
The behaviour in Jaunty looks like a bug to me.
Moreover in Jaunty 2.8 seems to be configured as the default:
$ ls /etc/alternatives | grep wx
wx2.5.pth
wx2.6.pth
$ sudo update-alternatives --config wx2.6.pth
[sudo] password for stani:
So with "update-alternatives" I can't select that "import wx", imports wxPython 2.8
In Jaunty if I look to wx.pth:
$ cat /usr/lib/python2.6/dist-packages/wx.pth
wx-2.8-gtk2-unicode
In Jaunty many wx*.pth are added in comparison to Intrepid (but this is probably irrelevant):
$ locate .pth | grep wx
/etc/alternatives/wx2.5.pth
/etc/alternatives/wx2.6.pth
/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode.pth
/usr/lib/python2.5/site-packages/wx.pth
/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx.pth
/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode.pth
/usr/lib/python2.6/dist-packages/wx.pth
/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx.pth
/usr/lib/wx/python/wx2.8.pth
/usr/share/pyshared/wx-2.8-gtk2-unicode.pth
/usr/share/pyshared/wx-2.8-gtk2-unicode/wx.pth
/var/lib/dpkg/alternatives/wx2.5.pth
/var/lib/dpkg/alternatives/wx2.6.pth
In Intrepid this gives:
$ locate .pth | grep wx
/etc/alternatives/wx2.4.pth
/etc/alternatives/wx2.5.pth
/usr/lib/python2.4/site-packages/wx.pth
/usr/lib/python2.5/site-packages/wx.pth
/usr/lib/wx/python/wx2.6.pth
/usr/lib/wx/python/wx2.8.pth
/var/lib/dpkg/alternatives/wx2.4.pth
/var/lib/dpkg/alternatives/wx2.5.pth
So in Jaunty both wx-2.6 and wx2.8 are added to the sys.path, while in Intrepid only wx-2.8 was present.
To me it seems like a bug that both wx 2.6 and 2.8 are in sys.path
Some wxpython programs are now showing bugs as they are not compatible anymore with wxpython2.6
If possible, I would like to see this fixed that in Jaunty (like in intrepid) wxPython 2.8 is the default if both 2.6 and 2.8 are installed or that at least the user can configure it in a way.
In Jaunty, when both python-wxgtk2.6 and python-wxgtk2.8 are installed, this happens by default:
>>> import wx
>>> wx.VERSION
(2, 6, 3, 2, '')
In Intrepid, this happens by default:
>>> import wx
>>> wx.VERSION
(2, 8, 8, 0, '')
The behaviour in Jaunty looks like a bug to me.
Moreover in Jaunty 2.8 seems to be configured as the default:
$ ls /etc/alternatives | grep wx
wx2.5.pth
wx2.6.pth
$ sudo update-alternatives --config wx2.6.pth
[sudo] password for stani:
Er zijn 2 alternatieven die 'wx2.6.pth' voorzien.
Selectie Alternatieven ------- ------- ------- ------- ------- ----- wx/python/ wx2.8.pth wx/python/ wx2.6.pth
-------
*+ 1 /usr/lib/
2 /usr/lib/
So with "update- alternatives" I can't select that "import wx", imports wxPython 2.8
In Jaunty if I look to wx.pth: python2. 6/dist- packages/ wx.pth
$ cat /usr/lib/
wx-2.8-gtk2-unicode
In Jaunty many wx*.pth are added in comparison to Intrepid (but this is probably irrelevant): es/wx2. 5.pth es/wx2. 6.pth python2. 5/site- packages/ wx-2.8- gtk2-unicode. pth python2. 5/site- packages/ wx.pth python2. 5/site- packages/ wx-2.8- gtk2-unicode/ wx.pth python2. 6/dist- packages/ wx-2.8- gtk2-unicode. pth python2. 6/dist- packages/ wx.pth python2. 6/dist- packages/ wx-2.8- gtk2-unicode/ wx.pth wx/python/ wx2.8.pth pyshared/ wx-2.8- gtk2-unicode. pth pyshared/ wx-2.8- gtk2-unicode/ wx.pth dpkg/alternativ es/wx2. 5.pth dpkg/alternativ es/wx2. 6.pth
$ locate .pth | grep wx
/etc/alternativ
/etc/alternativ
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/share/
/usr/share/
/var/lib/
/var/lib/
In Intrepid this gives: es/wx2. 4.pth es/wx2. 5.pth python2. 4/site- packages/ wx.pth python2. 5/site- packages/ wx.pth wx/python/ wx2.6.pth wx/python/ wx2.8.pth dpkg/alternativ es/wx2. 4.pth dpkg/alternativ es/wx2. 5.pth
$ locate .pth | grep wx
/etc/alternativ
/etc/alternativ
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/var/lib/
/var/lib/
In Jaunty: python2. 6', '/usr/lib/ python2. 6/plat- linux2' , '/usr/lib/ python2. 6/lib-tk' , '/usr/lib/ python2. 6/lib-old' , '/usr/lib/ python2. 6/lib-dynload' , '/usr/lib/ python2. 6/dist- packages' , '/usr/lib/ python2. 6/dist- packages/ Numeric' , '/usr/lib/ python2. 6/dist- packages/ PIL', '/usr/lib/ python2. 6/dist- packages/ gst-0.10' , '/var/lib/ python- support/ python2. 6', '/usr/lib/ python2. 6/dist- packages/ gtk-2.0' , '/var/lib/ python- support/ python2. 6/gtk-2. 0', '/usr/lib/ python2. 6/dist- packages/ wx-2.6- gtk2-unicode' , '/usr/lib/ python2. 6/dist- packages/ wx-2.8- gtk2-unicode' ]
>>> import sys
>>> sys.path
['', '/usr/lib/
In Intrepid: python2. 5', '/usr/lib/ python2. 5/plat- linux2' , '/usr/lib/ python2. 5/lib-tk' , '/usr/lib/ python2. 5/lib-dynload' , '/usr/local/ lib/python2. 5/site- packages' , '/usr/lib/ python2. 5/site- packages' , '/usr/lib/ python2. 5/site- packages/ Numeric' , '/usr/lib/ python2. 5/site- packages/ PIL', '/usr/lib/ python2. 5/site- packages/ gst-0.10' , '/var/lib/ python- support/ python2. 5', '/var/lib/ python- support/ python2. 5/gtk-2. 0', '/usr/lib/ python2. 5/site- packages/ wx-2.8- gtk2-unicode' ]
>>> import sys
>>> sys.path
['', '/usr/lib/
So in Jaunty both wx-2.6 and wx2.8 are added to the sys.path, while in Intrepid only wx-2.8 was present.
To me it seems like a bug that both wx 2.6 and 2.8 are in sys.path
See also this discussion on the wxpython users mailing list upstream: http:// thread. gmane.org/ gmane.comp. python. wxpython/ 70340
Some wxpython programs are now showing bugs as they are not compatible anymore with wxpython2.6
If possible, I would like to see this fixed that in Jaunty (like in intrepid) wxPython 2.8 is the default if both 2.6 and 2.8 are installed or that at least the user can configure it in a way.