On Fri, May 20, 2005 at 01:19:40PM +0200, Martijn Brouwer wrote:
> I have a Debian Sarge system with python 2.3 and python-gnome-2.6.1.
> Importing pygtk in the way described by the tutorial does not work:
> >>> import pygtk
> >>> pygtk.require("2.0")
> >>> import gtk
> >>> import gnome
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named gnome
> 
> 
> However, when I do not import pygtk import gnome does work:
> >>> import gtk
> >>> import gnome

What appears to be happening is that something is very wrong with your
site-packages directory.

    - The default gtk being imported does not appear to be the 2.0
      variant
    - Gnome appears to be installed fine for whatever version is the
      default
    - Gnome appears to not be installed for the 2.0 variant you are
      using (you say python-gnome-2.6.1, but are you sure?)

What do your site-packages/gtk* and gnome* contents look like?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to