470,604 Members | 2,163 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,604 developers. It's quick & easy.

No module named glade?

I've run into something a little odd on my Debian-installed
Python 2.3.

I have deb packages "python2.3", "python-gtk2", and
"python2.3-glade2" installed on this machine. Among other
things, these DO give me the following (verified):


The gtk directory has an __init__.py (fairly long one),
pygtk.pth has simply "gtk-2.0" in it.

Which all looks right to me. But...

python Python 2.3.5 (#2, Sep 4 2005, 22:01:42)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more
import gtk
import gtk.glade Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named glade

Huh? Have I missed something here?

BTW, I just noticed that it does work fine if you happen to
be in /usr/lib/python2.3/site-packages/gtk-2.0
so apparently it is some kind of path issue. But shouldn't
it be able to find glade.so if it can find gtk? What else
could be missing? (I've ruled out the things I know can go
wrong, so there must be something else required -- I
haven't tried to figure out gtk/__init__.py, does it do
something peculiar that might get tripped up?).

AFAIK, I haven't touched this installation, so whatever is
going on is the result of the Debian installer (or at least
I think that's true). It is the "unstable" branch, though.
I hope I've provided enough information -- like I said, it
looks to me like it should work now, but it doesn't.

Any suggestions welcome.


Terry Hancock (ha*****@AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com

Mar 17 '06 #1
0 1616

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Hans Deragon | last post: by
1 post views Thread by Will Ware | last post: by
1 post views Thread by Lian Liming | last post: by
8 posts views Thread by p.kosina | last post: by
2 posts views Thread by John Doe | last post: by
5 posts views Thread by somesh | last post: by
6 posts views Thread by Doug | last post: by
1 post views Thread by ralfbrand50 | last post: by
4 posts views Thread by feo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.