473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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):

/usr/lib/python2.3/site-packages/pygtk.pth
/usr/lib/python2.3/site-packages/gtk-2.0
/usr/lib/python2.3/site-packages/gtk-2.0/gtk
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/glade.so

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...

samwise:/usr/share/doc/python2.3-glade2/examples/glade>
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
information.
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.

Cheers,
Terry

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

Mar 17 '06 #1
0 1770

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hans Deragon | last post by:
Greetings. Total newbie to Glade here. I created an interface using glade-2 and I want to use it with my python program. Following is what I wrote (test prg): -------------------------...
1
by: Will Ware | last post by:
In July there was a thread about problems on Red Hat 9 with PyGTK not playing nice with Glade. I was tinkering with this a little bit tonight, starting with the code I found in this article:...
1
by: Lian Liming | last post by:
Hi, I have installed Python2.3, PyGTK 2.0.0, python-gnome2 2.00.00, glade2. But when i run BloGTK, which is a tool for blogger developped in Python, the error information dislay: Traceback...
8
by: p.kosina | last post by:
Does there exist any python plug-in (or something like that) for Glade 2.0.1. win32 port? I cant find any or links are unavailable. Thanks Pavel
2
by: John Doe | last post by:
Hi, does anyone have a website that covers gtk.glade? Thanks in advance. Dan
5
by: somesh | last post by:
hello, I wrote a small tute for my brother to teach him python + glade, plz see, and suggest to make it more professional , In tute I discussed on Glade + Python for developing Applications too...
6
by: Doug | last post by:
Hi all, Can someone tell me why I do not get a connection between the events and the functions in the sample below. GUI window appears OK, just no connections seem to be made. I am new to this...
1
by: ralfbrand50 | last post by:
Hello, I've got the following problem: I've got a Userinterface that is made in Glade, so i've got a ..glade file. What I want is to get the id's of every widget from the class GtkEntry from a...
4
by: feo | last post by:
Hi, i'm interesting in use glade in windows. Could somebody help me? i've installed but i don't know how obtain an .exe, in linux its easy, but in windows i don't know. thanks and sorry for my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.