wxpython anyone?


Forum: Apps
Topic: wxpython anyone?
started by: py-guy

Posted by py-guy on Mar. 24 2006,16:16
Ok - I've tried this a couple of ways but no go....
Has anyone been successful getting the wxpython lib installed?

Help!!!!!

Posted by mikshaw on Mar. 25 2006,15:27
From your email (please don't send me email questions...it's best if others can help and/or be helped as well :) )...
Quote
apt-get install python-wxgtk2.4 -o apt::force-loopbreak=1
I did this as root with X server shutdown to avoid any conflicts.

All goes well until updating libc6(2.3.6-3) - it prompts for the time zone info then reports that :
glibc.sh: applet not found
dpkg: error processing libc6 (--configure)
Sub-process /usr/bin/dpkg returned error code (1)

I can't help, really, but i can say that some things are just a pain in the butt to try to install with a package management system.  It will want to "update" all kinds of stuff just because those particular libs were installed on the machine on which the package was compiled.

It seems as though the most pressing issue is incompatible versions of libc.  At this point I can only recommend trying to find a wxpython package that was built with an earlier version of libc6...I think DSL's is 2.3.2, but that's a guess.  Another option is to attempt to compile your own lib, either in DSL or in Knoppix (2.4? again, I'm not good at remembering version numbers).  I've installed wxgtk for DSL by compiling it in suse, but I'm not sure how much different it would be for wxpython.

Posted by py-guy on Mar. 27 2006,19:50
After spending a couple of days in the dependency forest, here is what seems to work:

enable apt
edit /etc/apt/sources.list to pull from stable ! This was causing the above error in libc6.
apt-get update
apt-get install libgtk1.2-dev
-- you will get an error-sub-process /usr/bin/dpkg
dpkg -i --force-overwrite /var/cache/apt/archives/libx11-6_4.3.0.dfsg.1-14sarge1_i386.deb
dpkg -i --force-overwrite /dir/as/above/libxext6_4.3.0.blah.blah.deb
dpkg -i --force-overwrite /dir/as/above/libxi6_4.3.0.blah.blah.deb
dpkg -i --force-overwrite /dir/as/above/libxv1_4.3.0.blah.blah.deb

apt-get -f install

apt-get install libwxgtk2.4-python
-- this will install python2.3 under /usr/bin
ln python2.3 python
run python
(type the following program to test)
 import wx
 app = wx.PySimpleApp()
 frame = wx.Frame(None, -1, "Hello Dave")
 frame.Show(1)
 app.MainLoop()

You should see a nice window!!!!!!!

I've only tested this on a HD install at the moment with DSL-2.2b and have rebooted numerous times without any problems.

:cool:

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.