Problem building GTK with jbuild on Mac OS X

Hi everyone,

I don’t know if this is the right place to ask my question…

I cannot build GTK with jbuild on my Leopard 10.5.8 system.

I have deleted the Leopard built-in Python 2.5 folder (At that time I didn’t know that deleting the default system Python is not good…) and I have installed Python 2.7 (from the .dmg file).
I also Installed Apple Developer Tools, which I guess should be XCode 3.0.

On the terminal I verified my Python version:

$ which python

Then I followed this guide to build GTK: … g-on-os-x/

which is basically the same as the one in Gnome site:

I followed the first guide, but it gives me some errors:

macbook-pro:~ francesco$ curl -o
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3716  100  3716    0     0   1612      0  0:00:02  0:00:02 --:--:-- 1814k
macbook-pro:~ francesco$ sh
Checking out jhbuild (2.32.4) from git...
From git://
 * tag               2.32.4     -> FETCH_HEAD
Installing jhbuild...
Installing jhbuild configuration...
Installing gtk-osx moduleset files...
PATH does not contain /Users/francesco/.local/bin, it is recommended that you add that.

macbook-pro:~ francesco$ PATH=$HOME/.local/bin:$PATH
macbook-pro:~ francesco$ export PATH
macbook-pro:~ francesco$ jhbuild bootstrap
Traceback (most recent call last):
  File "/Users/francesco/Source/jhbuild/jhbuild/", line 212, in load
    execfile(self.filename, config)
  File "/Users/francesco/.jhbuildrc", line 90, in <module>
    _xcodeversion = xcode_ver()
  File "/Users/francesco/.jhbuildrc", line 89, in xcode_ver
    return float(exp.match(_ver).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
jhbuild: could not load config file

Anyone can tell me why I got this error?
It seems that jbuild doesn’t see my xcode version? But I did install it!

It’s very strange because I suceeded to do ‘jbuild bootstrap’ before when I used to have Python 2.5, although I got stuck for other commands more forward.

Thanks everyone.

I don’t have a Mac but can you check what is the minimum (or maximum) python version that the script needs? I guess that it doesn’t work well with python 2.7. Maybe you can put in contact with the script author and ask the requirements to run the scripts.
Good luck!

Thanks, now I’ll try with Python 2.6


I also tried with Python 2.6, same problem
It seems that it’s a problem of XCode, e.g. Apple Developer Tools