Installing wxPython and Friends

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JamesW

    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:
    [color=blue]
    >src/generic/dirdlgg.cpp: In member function `void
    > wxDirCtrl::OnEx pandItem(wxTree Event&)':
    >src/generic/dirdlgg.cpp:334 : choosing `char wxString::opera tor[](int)[/color]
    const'[color=blue]
    > over `char& wxString::opera tor[](unsigned int)'
    >src/generic/dirdlgg.cpp:334 : because worst conversion for the[/color]
    former is[color=blue]
    > better than worst conversion for the latter
    >make: *** [dirdlgg.o] Error 1[/color]


    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
  • simo

    #2
    Re: Installing wxPython and Friends

    gingaloon@hotma il.com (JamesW) wrote:
    [color=blue]
    > 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.[/color]
    [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!)

    Comment

    • simo

      #3
      Re: Installing wxPython and Friends

      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....

      Comment

      • JamesW

        #4
        Re: Installing wxPython and Friends

        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

        simoninusa2001@ yahoo.co.uk (simo) wrote in message news:<30260531. 0402022332.4c18 bfc0@posting.go ogle.com>...[color=blue]
        > 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..[/color]

        Comment

        • Stefan Axelsson

          #5
          Re: Installing wxPython and Friends

          In article <27d2bd1f.04020 30421.6a8ccc1f@ posting.google. com>, JamesW wrote:[color=blue]
          > 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[/color]

          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)

          Comment

          • simo

            #6
            Re: Installing wxPython and Friends

            These are the RPM's I used:





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

            Comment

            Working...