maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Diablo Python has no gtk.glade? (https://talk.maemo.org/showthread.php?t=21381)

TrueJournals 2008-06-28 01:51

Diablo Python has no gtk.glade?
 
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?

brontide 2008-06-28 03:39

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by TrueJournals (Post 196910)
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 2008-06-28 04:22

Re: Diablo Python has no gtk.glade?
 
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
>>>


EisFrei 2008-06-28 21:59

Re: Diablo Python has no gtk.glade?
 
I have got exactly the same problem as you. Hope this is fixed soon.

brontide 2008-06-28 22:17

Re: Diablo Python has no gtk.glade?
 
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.

yerga 2008-06-28 23:27

Re: Diablo Python has no gtk.glade?
 
I opened a bug in the pymaemo tracker.

lorelei 2008-06-29 08:56

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by brontide (Post 197140)
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 2008-06-29 11:14

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by lorelei (Post 197259)
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.

lorelei 2008-06-29 11:55

Re: Diablo Python has no gtk.glade?
 
Excellent, thanks! I'll look into converting Erminig to gtk.builder() :)

brontide 2008-06-29 18:13

Re: Diablo Python has no gtk.glade?
 
Not to be an indian giver... does the 770 support Gtk.Builder or is that limited to the gtk backport in OS2008?

yerga 2008-06-29 18:38

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by brontide (Post 197360)
Not to be an indian giver... does the 770 support Gtk.Builder or is that limited to the gtk backport in OS2008?

I think it was done in OS2008. the gtk version in OS2007 and OS2006 was 2.6, too old to backport to it.
GtkBuilder was available from 2.12, and in OS2008 we have 2.10.

Baloo 2008-06-29 19:38

Re: Diablo Python has no gtk.glade?
 
Mmm, can't get gtk to work in a Diablo scratchbox at the moment.

Code:

Python 2.3.4 (#1, Aug  1 2007, 16:36:19)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named gtk
>>>


Baloo 2008-06-29 19:41

Re: Diablo Python has no gtk.glade?
 
Seems that 'python' points to 2.3.4 for me on a fresh diablo install and a 'python2.5' gives the following:

Code:

sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
Python 2.5.1 (r251:54863, Apr 30 2008, 09:17:53)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
sem_post: Function not implemented
sem_post: Function not implemented
>>>


lorelei 2008-06-29 19:51

Re: Diablo Python has no gtk.glade?
 
@Baloo: you have to install python2.5-runtime in order to have python 2.5.

that sem_post message comes from qemu running behind scratchbox, and can be ignored....

Baloo 2008-06-29 20:07

Re: Diablo Python has no gtk.glade?
 
In a Diablo scratchbox python2.5-runtime can't be found. Nokia need to do some catch-up.

lorelei 2008-06-29 20:24

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by Baloo (Post 197396)
In a Diablo scratchbox python2.5-runtime can't be found. Nokia need to do some catch-up.

Well, it looks like you were able to run Python 2.5, at least according to your screen output you posted before?

In any case, I'm pretty sure that python 2.5 exists on Diablo....

Baloo 2008-06-29 21:04

Re: Diablo Python has no gtk.glade?
 
2.5 is there but no other packages, especially to do with gtk and python.

lorelei 2008-06-29 21:22

Re: Diablo Python has no gtk.glade?
 
python2.5-gtk2 has already been uploaded to diablo-extras, so it should be available when you do an "apt-get install python2.5-gtk2" on a scratchbox terminal...

From the repository it looks like a lot of python2.5-related packages are already uploaded:

http://repository.maemo.org/extras/pool/chinook/free/p/

Did you configure properly your /etc/apt/sources.list in scratchbox?

TrueJournals 2008-06-30 03:47

Re: Diablo Python has no gtk.glade?
 
But that's the chinook repository... Try http://repository.maemo.org/extras/pool/diablo/free/p/

There are some python packages, but not as many.

lorelei 2008-06-30 07:05

Re: Diablo Python has no gtk.glade?
 
My bad....wrong copy-paste :s

Anyways, I meant the diablo repository, which has python2.5-gtk2

Baloo 2008-06-30 08:12

Re: Diablo Python has no gtk.glade?
 
Yeah, sources.list is fine. Looks like the python packages are a little on the light side for Diablo at the moment.

thp 2008-06-30 15:19

Re: Diablo Python has no gtk.glade?
 
Very good. Whoever uploaded that package please re-upload one and re-enable building of the glade module. The chinoook package (with the same version number!) does include glade and the diablo package does not - wicked!

Chinook (w/ Glade):
http://repository.maemo.org/extras/p...sso3_armel.deb

Diablo (w/o Glade):
http://repository.maemo.org/extras/p...sso3_armel.deb

You can "wget" these files and "less them to see the package contents and note that the diablo one does not include the "glade.so" binary python module.

qwerty12 2008-06-30 15:21

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by lorelei (Post 197388)
that sem_post message comes from qemu running behind scratchbox, and can be ignored....

There's actually a patch for that error:
http://maemogeek.blogspot.com/2007/1...atch-into.html

But I prefer to use qemu-arm-cvs-m instead.

yerga 2008-06-30 15:49

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by thp (Post 197684)
Very good. Whoever uploaded that package please re-upload one and re-enable building of the glade module. The chinoook package (with the same version number!) does include glade and the diablo package does not - wicked!

Chinook (w/ Glade):
http://repository.maemo.org/extras/p...sso3_armel.deb

Diablo (w/o Glade):
http://repository.maemo.org/extras/p...sso3_armel.deb

You can "wget" these files and "less them to see the package contents and note that the diablo one does not include the "glade.so" binary python module.

Now, there is a package in diablo extras-devel built correctly with glade, version 2.12.1-1osso4.

Baloo 2008-06-30 18:16

Re: Diablo Python has no gtk.glade?
 
Looks like a new version of python-gtk2 has been uploaded today with glade support.


All times are GMT. The time now is 01:55.

vBulletin® Version 3.8.8