[gobolinux-users] beryl-settings, python 2.5 ...permanent solution
Carlo Calica
carlo at calica.com
Mon Jul 16 22:08:19 UTC 2007
On 7/14/07, Lucas C. Villa Real <lucasvr at gobolinux.org> wrote:
> On 7/1/07, Anshuman Aggarwal <anshuman at brillgene.com> wrote:
> > All,
> > I am on Python 2.5, installed beryl components and although everything
> > else beryl works...
> > the beryl-settings manager fails with this error message
> >
> > ]beryl-settings
> > Traceback (most recent call last):
> > File "/System/Links/Executables/beryl-settings", line 23, in <module>
> > import gtk
> > ImportError: No module named gtk
> >
> > more info:
> > I have both Python 2.4.3 and 2.5 installed...Current is Symlink Python 2.5..
> >
> > Questions:
> > Shouldn't this work as is when you compile beryl-settings, compile
> > taking care of everything?
>
> Actually, the program it needs is PyGTK. Could you please check if you
> have that program installed? Moreover, that can be a problem in the
> beryl-settings python script itself -- it's probably a good idea to
> verify the library's name under
> /Programs/PyGTK/Current/lib/python-2.4. It's possible that another
> name should be used instead of "gtk" in python's "import" command.
>
PyGTK has always been a source of trouble for me. It seems the
gobo.pth causes /S/Links/blah to be searched. Problem is it doesn't
process other .pth files in /S/L/blah. PyGTK adds itself to python
via a .pth file. Because python doesn't nest .pth it can't find gtk
module. An ugly hack is symlink the gtk.pth into /Programs/Python
--
Carlo J. Calica
More information about the gobolinux-users
mailing list