Reply
Thread Tools
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#1
I just refreshed the application list and updated everything, which installed a new version of python. Unfortunately, this version seems to not include the gtk.glade python module. Anyone else have this problem?
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#2
Originally Posted by TrueJournals View Post
I just refreshed the application list and updated everything, which installed a new version of python. Unfortunately, this version seems to not include the gtk.glade python module. Anyone else have this problem?
Seems fine here... maybe it's just a stock package now?

Code:
Nokia-N810-23-14:~# python
Python 2.5.2 (r252:60911, May 12 2008, 12:58:03) 
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk.glade
>>>
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#3
Ah, but I have a different build date of python than you do. Anyway, just seems to be some diablo extras growing pains. I'm guessing it'll be fixed in the next day or two, and if not, I'll file a bug.
Code:
/home/user # python
Python 2.5.2 (r252:60911, Jun 27 2008, 17:32:23)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk.glade
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named glade
>>>
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
Posts: 1 | Thanked: 0 times | Joined on Jun 2008
#4
I have got exactly the same problem as you. Hope this is fixed soon.
 
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#5
Please post a bug report if you want it fixed.

Glade was being depreciated in favor of Gtk.Builder. I switched on app to it and it's not that hard to do.
 

The Following User Says Thank You to brontide For This Useful Post:
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#6
I opened a bug in the pymaemo tracker.
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#7
Originally Posted by brontide View Post
Please post a bug report if you want it fixed.

Glade was being depreciated in favor of Gtk.Builder. I switched on app to it and it's not that hard to do.
Thanks for the heads-up about the upcoming depreciation of Glade! Does switching to gtk.Builder require additional package dependencies?
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#8
Originally Posted by lorelei View Post
Thanks for the heads-up about the upcoming depreciation of Glade! Does switching to gtk.Builder require additional package dependencies?
A bit vaguely:

Convert the glade file in a xml file understandable for gtk.builder (there is a script called gtk-builder-convert). At the moment Glade doesn't have support for the gtkbuilder files, but it's in its todo list.

And then in python code:
builder = gtk.Builder()
builder.add_from_file('the new xml file')
builder.get_object do the same thing as gladetree.get_widget

gtk.builder is available in the gtk module, so it's not necessary to install anything.
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following 2 Users Say Thank You to yerga For This Useful Post:
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#9
Excellent, thanks! I'll look into converting Erminig to gtk.builder()
 
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#10
Not to be an indian giver... does the 770 support Gtk.Builder or is that limited to the gtk backport in OS2008?
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:06.