BlogJamun – Thinks Aloud

thinking feverishly for a tagline..

Jhbuild Issue in Intrepid Ibex

Update: The error in jhbuild discussed below is a consequence of me trying to merge the jhbuild checkout folder and the gnome components’ checkout folder. It may not apply for those building with default directory structures as prescribed in the jhbuild gnome live wiki.

I recently downloaded the jhbuild sources from the git repository. I was able to compile and install it without many hiccups, thanks to the elaborate distro-specific Jhbuild Issues wiki in gnome.org.
To my shock, ‘jhbuild’ command returned the following error,

Traceback (most recent call last):
File “/home/pk/bin/jhbuild”, line 5, in
import jhbuild.main
ImportError: No module named jhbuild.main

I am not sure if this is consistently reproducible by others. But the solution here is pretty straight forward. Open the ~/bin/jhbuild file. Don’t pay heed to your graphical editors conservative warnings. It is just a python script. Check if the second argument of the sys.path.insert points to the directory which contains the jhbuild sources. Change it suitably and the problem is fixed. In my case the second argument was pointing to “~/svn/gnome2/jhbuild”. I had to modify it to “~/checkout/gnome2″.
Happy building ;)

May 2, 2009 Posted by blogjamun | Uncategorized | , , , | 3 Comments