Re: [E-devel] python-elementary broken build

2012-03-10 Thread Davide Andreoli
Il giorno 08 marzo 2012 12:49, Martin Jansa martin.ja...@gmail.com ha
scritto:

 Hi,

 is someone already working on this issue or should I try to prepare patch
 for this?


yes, please patch! I have no time until 2 weeks for working on this
davemds




 Cheers,

 | cd .  /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/python -m
 cython -I/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/include/python-evas
 -I./include  -o elementary/elementary.c_elementary.c
 elementary/elementary.c_elementary.pyx
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |  ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:34: undeclared name
 not builtin: elm_object_item_del_cb_set
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:39: Cannot convert
 'Elm_Object_Item *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:67: Cannot convert
 'void (void *, Evas_Object *, void *) nogil' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:40: undeclared name
 not builtin: elm_object_item_part_content_set
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 | ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:45: Cannot convert
 'Evas_Object *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:55: Cannot convert
 'Evas_Object *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |
 | def icon_get(self):
 | cdef c_evas.Evas_Object *icon
 | icon = elm_object_item_part_content_get(self.obj)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:140:47: undeclared name
 not builtin: elm_object_item_part_content_get
 |
 | Error compiling Cython file:
 | 
 | ...
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |
 | def icon_get(self):
 | cdef c_evas.Evas_Object *icon
 | icon = elm_object_item_part_content_get(self.obj)
 |^
 | 

[E-devel] python-elementary broken build

2012-03-08 Thread Martin Jansa
Hi,

is someone already working on this issue or should I try to prepare patch for 
this?

Cheers,

| cd .  /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/python -m 
cython -I/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/include/python-evas 
-I./include  -o elementary/elementary.c_elementary.c 
elementary/elementary.c_elementary.pyx
|
| Error compiling Cython file:
| 
| ...
| cbdata = void*self.cbt
| self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, icon_type,
|   cb, cbdata)
|
| Py_INCREF(self)
| elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
|  ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:62:34: undeclared name not 
builtin: elm_object_item_del_cb_set
|
| Error compiling Cython file:
| 
| ...
| cbdata = void*self.cbt
| self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, icon_type,
|   cb, cbdata)
|
| Py_INCREF(self)
| elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
|   ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:62:39: Cannot convert 
'Elm_Object_Item *' to Python object
|
| Error compiling Cython file:
| 
| ...
| cbdata = void*self.cbt
| self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, icon_type,
|   cb, cbdata)
|
| Py_INCREF(self)
| elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
|   ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:62:67: Cannot convert 'void 
(void *, Evas_Object *, void *) nogil' to Python object
|
| Error compiling Cython file:
| 
| ...
|
| def __set__(self, value):
| self.label_set(value)
|
| def icon_set(self, c_evas.Object icon):
| elm_object_item_part_content_set(self.obj, icon.obj)
|^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:136:40: undeclared name not 
builtin: elm_object_item_part_content_set
|
| Error compiling Cython file:
| 
| ...
|
| def __set__(self, value):
| self.label_set(value)
|
| def icon_set(self, c_evas.Object icon):
| elm_object_item_part_content_set(self.obj, icon.obj)
| ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:136:45: Cannot convert 
'Evas_Object *' to Python object
|
| Error compiling Cython file:
| 
| ...
|
| def __set__(self, value):
| self.label_set(value)
|
| def icon_set(self, c_evas.Object icon):
| elm_object_item_part_content_set(self.obj, icon.obj)
|   ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:136:55: Cannot convert 
'Evas_Object *' to Python object
|
| Error compiling Cython file:
| 
| ...
| def icon_set(self, c_evas.Object icon):
| elm_object_item_part_content_set(self.obj, icon.obj)
|
| def icon_get(self):
| cdef c_evas.Evas_Object *icon
| icon = elm_object_item_part_content_get(self.obj)
|   ^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:140:47: undeclared name not 
builtin: elm_object_item_part_content_get
|
| Error compiling Cython file:
| 
| ...
| def icon_set(self, c_evas.Object icon):
| elm_object_item_part_content_set(self.obj, icon.obj)
|
| def icon_get(self):
| cdef c_evas.Evas_Object *icon
| icon = elm_object_item_part_content_get(self.obj)
|^
| 
|
| elementary/elementary.c_elementary_hoversel.pxi:140:52: Cannot convert 
'Evas_Object *' to Python object
|
| Error compiling Cython file:
| 
| ...
| def icon_set(self, c_evas.Object icon):
| 

Re: [E-devel] python-elementary broken build

2012-03-08 Thread Jiyoun Park
I think my commit maybe made this break.

elm_hoversel_item_del_cb_set and some APIs was deprecated.
so I change test code using elm_hoversel_item_del_cb_set to
elm_object_item_del_cb_set and remove hoversel api from pxi file.
please guide correct method or send patch to change deprecated api to
availabe api in python.
I will referencd your guide because there are so many deprecated
function which not removed yet.

thanks.



2012/3/8, Martin Jansa martin.ja...@gmail.com:
 Hi,

 is someone already working on this issue or should I try to prepare patch
 for this?

 Cheers,

 | cd .  /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/python -m
 cython -I/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/include/python-evas
 -I./include  -o elementary/elementary.c_elementary.c
 elementary/elementary.c_elementary.pyx
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |  ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:34: undeclared name not
 builtin: elm_object_item_del_cb_set
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:39: Cannot convert
 'Elm_Object_Item *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 | cbdata = void*self.cbt
 | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
 icon_type,
 |   cb, cbdata)
 |
 | Py_INCREF(self)
 | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:62:67: Cannot convert
 'void (void *, Evas_Object *, void *) nogil' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:40: undeclared name
 not builtin: elm_object_item_part_content_set
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 | ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:45: Cannot convert
 'Evas_Object *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 |
 | def __set__(self, value):
 | self.label_set(value)
 |
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:136:55: Cannot convert
 'Evas_Object *' to Python object
 |
 | Error compiling Cython file:
 | 
 | ...
 | def icon_set(self, c_evas.Object icon):
 | elm_object_item_part_content_set(self.obj, icon.obj)
 |
 | def icon_get(self):
 | cdef c_evas.Evas_Object *icon
 | icon = elm_object_item_part_content_get(self.obj)
 |   ^
 | 
 |
 | elementary/elementary.c_elementary_hoversel.pxi:140:47: undeclared name
 not builtin: elm_object_item_part_content_get
 |
 | Error compiling Cython file:
 | 
 | ...
 | def icon_set(self, 

Re: [E-devel] python-elementary broken build

2012-03-08 Thread Martin Jansa
On Fri, Mar 09, 2012 at 11:01:52AM +0900, Jiyoun Park wrote:
 I think my commit maybe made this break.
 
 elm_hoversel_item_del_cb_set and some APIs was deprecated.
 so I change test code using elm_hoversel_item_del_cb_set to
 elm_object_item_del_cb_set and remove hoversel api from pxi file.
 please guide correct method or send patch to change deprecated api to
 availabe api in python.
 I will referencd your guide because there are so many deprecated
 function which not removed yet.

I'm not python bindings expert, but davemds used this:
http://trac.enlightenment.org/e/changeset/68744

Cheers,

 
 thanks.
 
 
 
 2012/3/8, Martin Jansa martin.ja...@gmail.com:
  Hi,
 
  is someone already working on this issue or should I try to prepare patch
  for this?
 
  Cheers,
 
  | cd .  /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/python -m
  cython -I/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/include/python-evas
  -I./include  -o elementary/elementary.c_elementary.c
  elementary/elementary.c_elementary.pyx
  |
  | Error compiling Cython file:
  | 
  | ...
  | cbdata = void*self.cbt
  | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
  icon_type,
  |   cb, cbdata)
  |
  | Py_INCREF(self)
  | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
  |  ^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:62:34: undeclared name not
  builtin: elm_object_item_del_cb_set
  |
  | Error compiling Cython file:
  | 
  | ...
  | cbdata = void*self.cbt
  | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
  icon_type,
  |   cb, cbdata)
  |
  | Py_INCREF(self)
  | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
  |   ^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:62:39: Cannot convert
  'Elm_Object_Item *' to Python object
  |
  | Error compiling Cython file:
  | 
  | ...
  | cbdata = void*self.cbt
  | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f,
  icon_type,
  |   cb, cbdata)
  |
  | Py_INCREF(self)
  | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb)
  |   ^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:62:67: Cannot convert
  'void (void *, Evas_Object *, void *) nogil' to Python object
  |
  | Error compiling Cython file:
  | 
  | ...
  |
  | def __set__(self, value):
  | self.label_set(value)
  |
  | def icon_set(self, c_evas.Object icon):
  | elm_object_item_part_content_set(self.obj, icon.obj)
  |^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:136:40: undeclared name
  not builtin: elm_object_item_part_content_set
  |
  | Error compiling Cython file:
  | 
  | ...
  |
  | def __set__(self, value):
  | self.label_set(value)
  |
  | def icon_set(self, c_evas.Object icon):
  | elm_object_item_part_content_set(self.obj, icon.obj)
  | ^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:136:45: Cannot convert
  'Evas_Object *' to Python object
  |
  | Error compiling Cython file:
  | 
  | ...
  |
  | def __set__(self, value):
  | self.label_set(value)
  |
  | def icon_set(self, c_evas.Object icon):
  | elm_object_item_part_content_set(self.obj, icon.obj)
  |   ^
  | 
  |
  | elementary/elementary.c_elementary_hoversel.pxi:136:55: Cannot convert
  'Evas_Object *' to Python object
  |
  | Error compiling Cython file:
  | 
  | ...
  | def icon_set(self, c_evas.Object icon):
  | elm_object_item_part_content_set(self.obj, icon.obj)
  |
  | def icon_get(self):
  | cdef c_evas.Evas_Object *icon
  | icon = elm_object_item_part_content_get(self.obj)
  |   ^
  |