473,659 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing wxPython and Friends

Dear All,

I need to install wxPython to run some programs that interest me. I
have had numerous problems, probably due to knowing little about the
packages and python, and taking the computer over from soemone else.

I have recently carried out a clean install of Linux RH 9.0, hoping
this may eleviate the problems.

I hoped that the prerequisites would already be installed, but I doubt
this now after getting the message:

usr/include/gtk-2.0/gtk/gtktypeutils.h: 66:1: warning: "GTK_CLASS_TYPE "
redefined
error: command 'gcc' failed with exit status 1

I looked at previous replies to this error and the suggestions were
that I install wxGTK2 which I have tried to do but get the following
error:
src/generic/dirdlgg.cpp: In member function `void
wxDirCtrl::OnEx pandItem(wxTree Event&)':
src/generic/dirdlgg.cpp:334 : choosing `char wxString::opera tor[](int) const' over `char& wxString::opera tor[](unsigned int)'
src/generic/dirdlgg.cpp:334 : because worst conversion for the former is better than worst conversion for the latter
make: *** [dirdlgg.o] Error 1

I have no idea how I get round this. ANy suggestions would be
appreciated, as I fear that I'm installing packages on top fo packages
and making the situation worse.

Many Thanks

James
Jul 18 '05 #1
5 1802
gi*******@hotma il.com (JamesW) wrote:
I need to install wxPython to run some programs that interest me. I
have had numerous problems, probably due to knowing little about the
packages and python, and taking the computer over from soemone else.

I have recently carried out a clean install of Linux RH 9.0, hoping
this may eleviate the problems.

[snip]

Same here, I suspect RedHat 9 is broken (they usually have a missing
symlink or two, like when they broke GCC3)

I managed to compile GLib but then ATK couldn't find it, so I couldn't
even get as far as installing GTK+ let alone wxGTK.

I'm going to have a look through the RH9 install CD's to see if there
are GLib, ATK and GTK+ RPMs I can install. If I get it working, I'll
report back here.

I thought compiling Python, PyQt, TK etc was a nightmare, this is just
taking the Mickey!

wxPython/wxWindows installed like a dream under Windows XP of course,
this is why Linux will never hit the desktop as everyone hopes, the
average user would struggle with RPM/Apt let alone compilation!

For the moment I'm back to PyQt/TKinter for Linux and wxPython/TKinter
for Windows (until Trolltech sort out a non-commercial/GPL Windows Qt
license!)
Jul 18 '05 #2
OK, I take it all back - I looked on RedHat 9 CD #1 and rpm -Uvh'd
GTK2 and it informed me I already had 2.2.1 installed.

So that meant I could skip trying to install ATK/GLib2 and just went
straight onto installing wxGTK and wxPython from RPMs too!

I then installed McMillan Installer and UPX and now have Windows and
Linux distributable wxPython/TKinter apps - bloody great! Installer is
so much nicer than py2exe too.

I might just forget PyQT now....
Jul 18 '05 #3
simo, from whence did you get the wxGTK and wxPython rpms. The ones I
got just kinda died on me...

Lets hope I have the same luck

si************@ yahoo.co.uk (simo) wrote in message news:<30******* *************** ****@posting.go ogle.com>...
OK, I take it all back - I looked on RedHat 9 CD #1 and rpm -Uvh'd
GTK2 and it informed me I already had 2.2.1 installed.

So that meant I could skip trying to install ATK/GLib2 and just went
straight onto installing wxGTK and wxPython from RPMs too!

I then installed McMillan Installer and UPX and now have Windows and
Linux distributable wxPython/TKinter apps - bloody great! Installer is
so much nicer than py2exe too.

I might just forget PyQT now..

Jul 18 '05 #4
In article <27************ **************@ posting.google. com>, JamesW wrote:
simo, from whence did you get the wxGTK and wxPython rpms. The ones I
got just kinda died on me...

Lets hope I have the same luck


Well, I haven't followed this from the begining, but I also run RH9
and no problems what so ever. I got the RPMs from the wxpython site
(http://www.wxpython.org/download.php).

Now granted I did the GTK1 install, and that was just a question of
reading the 'prerequisites' section downloading the rpms and install
them. Boa constructor (which is why I got it in the first place) was
no problem to install either.

If you have any problems, or I've misunderstood just drop me a line.

Stefan,
--
Stefan Axelsson (email at http://www.cs.chalmers.se/~sax)
Jul 18 '05 #5
These are the RPM's I used:

http://prdownloads.sourceforge.net/w...2.4-1.i386.rpm

http://prdownloads.sourceforge.net/w...4.2-1.i386.rpm

Maybe you tried the static wxWindows RPM? What did rpm say when it
baulked - did you use 'rpm -Uvh' as root?
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
11898
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of wxPython. Mitchell Timin -- "Many are stubborn in pursuit of the path they have chosen, few in
0
1322
by: Patrick Smith | last post by:
Hi, I'm in the middle of trying to install wxPython from the wxPythonSrc-2.5.2.7 source. While running the makefile I get the following errors. In file included from include/wx/gsocket.h:172, from include/wx/sckaddr.h:24, from include/wx/socket.h:28, from include/wx/protocol/protocol.h:28,
3
5894
by: hepp | last post by:
Is it possible to run a Python script in Windows without installing Python on your machine first? At my work we are using a mixed environment - some have Solaris workstations and others PC's. I have written an application in wxPython that runs in both Unix and Solaris. For the Unix version I put an installation of Python on a network drive that everybody can access, but in Windows everybody has to download Python and wxPython before...
25
3345
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first." - Guido van Rossum Guess, that answers my question, but isn't "Tkinter was there first" a very bad answer? :) It is kinda ugly too, so I wonder why it can't be replaced? Or maybe another GUI...
13
4583
by: Peter Maas | last post by:
Recently I replaced Win2k with Linux on my desktop computer. Using mostly multi-platform software I thought this would be easy. It was not as easy as expected getting wxPython to work. There seemed to be no SuSE RPM so I installed from source. Here are my steps (gtk 2.4 was already installed): - Built wxWidgets (.configure --enable-unicode) - Built wxPython (python setup.py install) error: "you should use wx-config program for...
1
2561
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0* libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
2
1183
by: ahlongxp | last post by:
Sorry, I know this is not the most appropriate place to talk about wxPython. But I can't have access to wxPython mail list page(because I don't pay enough). I downloaded python2.5 and wxPython 2.8.4.0 from pythonmac.org and installed them into one of my friends' Mac 10.4.8(intel) and I found wx.lib.flatnotebook and wx.xrc were broken(which are quite OK under both Linux and Windows).
1
2228
by: care02 | last post by:
Dear friends, I have almost completed my first wxPython application. The only thing I need now is to minimize the command window. How is this accomplished on Win32? What about Mac and Linux? Carl
4
2184
by: Timothy Smith | last post by:
Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what should be the latest binary, and it installed without error. So Python comes up as $ python -V Python 2.5.1 $ ls -l /usr/bin/python
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8629
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.