views:

53

answers:

1
+2  A: 

sudo python imports it just fine because that interpreter isn't using your virtual environment. So don't do that.

You only linked in one of the necessary items. Do the others mentioned in the answer to the question you linked as well.

(The pygtk.pth file is of particular importance, since it tells python to actually put that directory you linked onto the python path)

Update

Put that stuff in $VIRTUALENV/lib/python2.6/site-packages/ rather than the directory above that.

Looks like the .pth files aren't read from that directory - just from site-packages

kwatford
I can do import pygtk and cairo but not gtk. Thanks for clearing up why sudo works. Now I need to find out why gtk doesn't work.
Pickels
Aha, Victory! Thanks a lot Kwaford.
Pickels