tags:

views:

2417

answers:

2

Is there a binary out there for the current mac os x, python for PyGTK? I work with multiple desktop environments (mac, windows, gnome) and really consider python's lack of cross platform GUI's a problem. Does anyone know where I can find a built version of PyGTK and GTK for Mac? I cant clone the git repository, it keeps timing out.

A: 

Have you tried doing it using macports? This website shows how.

Sneakyness
Yeah, tried that before, I think rsync is a protocol blocked by our org's firewall.sudo port -d selfupdatersync: failed to connect to rsync.macports.org: Operation timed out rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-35.2/rsync/clientserver.c(105) [receiver=2.6.9]Error: Synchronization of the local ports tree failed doing rsyncCouldn't sync the ports tree: Synchronization of 1 source(s) failed
Ronaldo Nascimento
use ssh, tunnel rsync. I don't know how I would have gotten through school without ssh tunneling.
Sneakyness
They didnt teach anything in school, just C and ASM back in my day. Sorry to have offended you.
Ronaldo Nascimento
Sorry, i think i didnt read that right. anyway I am looking at /opt/local/etc/macports/macports.conf and i see the rsync_options, and I added -e "ssh" but no luck I must be doing something wrong.
Ronaldo Nascimento
They still don't, I was using SSH to get to all the blocked websites, like youtube, or to steam music from home. :) What are you messing with the rsync config for? Just use ssh and tneel the port. http://manas.tungare.name/blog/ssh-port-forwarding-on-mac-os-x/
Sneakyness
what would the command line look like? Do i need a middle server? this has become an all day affair.
Ronaldo Nascimento
+3  A: 

I don't use macports but it seems that jhbuild works for me. Below is the steps that I've done.

  1. download gtk-osx-build-setup.sh from: http://github.com/jralls/gtk-osx-build/raw/master/gtk-osx-build-setup.sh and save it to your home directory.
  2. fire up terminal and navigate to your home directory and run the command sh gtk-osx-build-setup.sh
  3. the shell script will warn you that ~/.local/bin isn't added to your environment variable to do this, edit your .profile file located at your home directory and /User/<username>/.local/bin to your environment variable. to know more on how to edit this file check out: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/
  4. after that, do a ~/.local/bin/jhbuild bootstrap command. it will download and install some necessary utilities.
  5. download and install the beta version of the gtk+ osx framework at: http://ftp.imendio.com/pub/imendio/gtk-osx/Gtk-Framework-2.14-LATEST.dmg
  6. before installing the meta-gtk-osx-python, you need to build and install some other packages that jhbuild doesn't install automatically, so what i did was i installed libpng by doing the command: ~/.local/bin/jhbuild build libpng
  7. you also need to install libtiff so do the command: ~/.local/bin/jhbuild build libtiff
  8. and also gtk-doc is needed so: ~/.local/bin/jhbuild build gtk-doc
  9. and finally you can now install meta-gtk-osx-python by doing a: ~/.local/bin/jhbuild build meta-gtk-osx-python

Let me know if it works.

b3rx
tried this too, looks like work is blocking git also...git.gnome.org[0: 209.132.176.202]: errno=Operation timed outfatal: unable to connect a socket (Operation timed out)
Ronaldo Nascimento
If what your doing is work related. Might as well, ask your IT department to unblock git.
b3rx