Trouble installing GTK

Discussion in 'Mac Programming' started by mysterytramp, May 20, 2009.

  1. mysterytramp macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #1
    Even though I'm a total noob, I thought I could muscle my way through this problem but it doesn't seem likely ...

    I'm interested in learning Python and using a Python project called Gramps, an open source genealogical data manager.

    I d/l'd the source, hit run and terminal burped that there was an error that it couldn't find GTK (the offending line is "import gtk")

    I d/l'd what appeared to be the latest stable version of GTK at imendio, double-clicked, let it install. Ran Gramps again, same error. I munged around GTK sites and found this line:

    sudo port install gtk2

    Did that, saw lots of lines go past the terminal. After 30 mins or so, Terminal ended, ran Gramps again. Same error. (tried the simple fix of changing "import gtk" to "import gtk2" and that didn't work either.)

    And I got a lengthy error message:

    Error: The following dependencies failed to build: atk gtk-doc gnome-doc-utils iso-codes py25-hashlib python25 libxml2 libxslt p5-xml-parser py25-libxml2 rarian getopt intltool gnome-common cairo fontconfig freetype libpixman libpng xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto jasper jpeg pango Xft2 shared-mime-info tiff xorg-libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
    Error: Status 1 encountered during processing.

    I would assume that Python would expect a file called "gtk.py" somewhere. The lib folder?

    mt
     
  2. LtRammstein macrumors 6502a

    LtRammstein

    Joined:
    Jun 20, 2006
    Location:
    Denver, CO
    #2
    Have you updated X11 at all or Xcode?

    MacPorts doesn't tell you, but you need to make sure you have the latest copy of X11 and Xocde to run properly. Also, make sure your .profile file is proper to what MacPorts wants.

    If you are using Darwin ports, UNINSTALL IMMEDIATELY! They've had issues in the past and all of those repositories have moved to MacPorts.org.
     
  3. mysterytramp thread starter macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #3
    I have XCode 2.3, X11 1.1.3 (I'm running Tiger)

    mt
     

Share This Page