PDA

View Full Version : ImportError: No module named libglade



TomG
April 5th, 2006, 03:05 PM
Hi

I created very simple glade and python files but whatever I do I always have a libglade error :

> python test.py
Traceback (most recent call last):
File "test.py", line 1, in ?
import libglade
ImportError: No module named libglade

All python packages (python-glade2...), xml packages and libglade2-0 appear installed in Synaptic.
I found tons of posts on forums with this question but no real answer.
What's wrong ? Help Please... :(

Tom

psychicdragon
April 5th, 2006, 03:28 PM
The python modules for gtk are called gtk and gtk.glade. This is the code you're looking for:
import gtk, gtk.glade

TomG
April 5th, 2006, 03:57 PM
Thanks for your answer. Will test ASAP.

wolterh
January 26th, 2009, 10:55 PM
Mark as solved if solved please.

bruce89
January 27th, 2009, 02:10 AM
Mark as solved if solved please.

What, after nearly 3 years?

wolterh
January 27th, 2009, 02:18 AM
Three years later I walked in with that doubt myself, getting away with the uncertainity of if the method worked or not. It costs nothing to mark the thread as solved, please don't troll on me.

bruce89
January 27th, 2009, 02:28 AM
Three years later I walked in with that doubt myself, getting away with the uncertainity of if the method worked or not. It costs nothing to mark the thread as solved, please don't troll on me.

I amn't trolling, I was just surprised there was such a big bump. Also, threads can't be closed nowadays.

slavik
January 27th, 2009, 04:59 AM
Marked solved!