[tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE
Hie, Since "Replace deprecated usage of params and signals in GTK+3" [1], after login popup I receive an error that has not attribute READWRITE 13 "text": (gobject.TYPE_STRING, None, "Text", 14 "Displayed text", gobject.ParamFlags.READWRITE), Which version gobject is required? Last version python-gobject-2 in Ubuntu is 2.28.6 [2] Here the traceback: Traceback (most recent call last): File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py", line 1260, in process self.callback(return_) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line 858, in _set_preferences self.sig_win_menu(prefs=prefs) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line 1041, in sig_win_menu row_activate=self.menu_row_activate) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 142, in __init__ self.switch_view() File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 486, in switch_view self.load_view_to_load() File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 507, in load_view_to_load self.add_view_id(view_id, view_type) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 520, in add_view_id return self.add_view(view) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 545, in add_view view = View.parse(self, xml_dom, view.get('field_childs')) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py", line 36, in parse from .list import ViewTree File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/list.py", line 13, in from tryton.common.cellrendererbutton import CellRendererButton File "/home/resteve/virtualenv/trydev/tryton/tryton/common/cellrendererbutton.py", line 10, in class CellRendererButton(gtk.GenericCellRenderer): File "/home/resteve/virtualenv/trydev/tryton/tryton/common/cellrendererbutton.py", line 14, in CellRendererButton "Displayed text", gobject.ParamFlags.READWRITE), AttributeError: type object 'PyGObjectParamFlags' has no attribute 'READWRITE' Thanks [1] https://bitbucket.org/tryton/tryton/commits/4b07964676a33abf72efccf91bbcc22e36e86072 [2] https://packages.ubuntu.com/search?keywords=python-gobject-2 -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CAN2HbXVPdZKZwg30%2B%2B%3D-4C0_NXm%2BCOkC76vtEoe-s%2BXawnXXmQ%40mail.gmail.com.
Re: [tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE
El 01/02/18 a les 16:24, Raimon Esteve ha escrit: > Hie, > > Since "Replace deprecated usage of params and signals in GTK+3" [1], > after login popup I receive an error that has not attribute READWRITE > > 13 "text": (gobject.TYPE_STRING, None, "Text", > 14 "Displayed text", gobject.ParamFlags.READWRITE), > > Which version gobject is required? > Which gtk version do you have? Take in account that tryton requires at least gtk3.20 or later [1], which IIRC is not avaiable on ubuntu 16.04 (should be installed via ppa) Indeed you should be using python-object 3.20.0. Which is the output the following command: apt list python-gobject You should see something like: Listing… Fet python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed] Hope it helps. [1] http://hg.tryton.org/tryton/file/292a067fe066/doc/installation.rst#l8 -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/1c999d58-96e3-d264-0239-0ba1d14df6b3%40koolpi.com.
Re: [tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE
hie, 2018-02-01 17:03 GMT+01:00 Sergi Almacellas Abellana : > > El 01/02/18 a les 16:24, Raimon Esteve ha escrit: > > Hie, > > > > Since "Replace deprecated usage of params and signals in GTK+3" [1], > > after login popup I receive an error that has not attribute READWRITE > > > > 13 "text": (gobject.TYPE_STRING, None, "Text", > > 14 "Displayed text", gobject.ParamFlags.READWRITE), > > > > Which version gobject is required? > > > > Which gtk version do you have? Take in account that tryton requires at > least gtk3.20 or later [1], which IIRC is not avaiable on ubuntu 16.04 > (should be installed via ppa) Ok. I had seen in setup.py and I could not find about requeriments [2] (py-gobject3 is comment) > Indeed you should be using python-object 3.20.0. Which is the output the > following command: > > apt list python-gobject > > You should see something like: > > Listing… Fet > python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed] Ok. Thanks. Finally I have upgraded ubuntu 14.04.2 LTS (end support Abril 2019) to 16.04 (end support Abril 2021) $ apt list python-gobject python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed,automatic] $ apt list libgtk-3-0 libgtk-3-0/xenial,now 3.20.8-1ubuntu0~ppa1 amd64 [installed] At now, the error is about goocalendar and goocanvas, that "goocanvas" has no attribute 'CanvasText' [See annex 1] I have last release goocalendar (0.3). Is gooclaendar upgrade to GTK-3? [ annex 1] Traceback (most recent call last): File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py", line 1260, in process self.callback(return_) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line 858, in _set_preferences self.sig_win_menu(prefs=prefs) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line 1041, in sig_win_menu row_activate=self.menu_row_activate) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 142, in __init__ self.switch_view() File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 486, in switch_view self.load_view_to_load() File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 507, in load_view_to_load self.add_view_id(view_id, view_type) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 520, in add_view_id return self.add_view(view) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", line 545, in add_view view = View.parse(self, xml_dom, view.get('field_childs')) File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py", line 39, in parse from .calendar_ import ViewCalendar File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_.py", line 12, in from .calendar_gtk.calendar_ import Calendar_ File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py", line 5, in import goocalendar File "/usr/local/lib/python2.7/dist-packages/goocalendar/__init__.py", line 7, in goocanvas.Text = goocanvas.CanvasText AttributeError: 'module' object has no attribute 'CanvasText' Thanks > [1] http://hg.tryton.org/tryton/file/292a067fe066/doc/installation.rst#l8 [2] https://bitbucket.org/tryton/tryton/src/292a067fe0668055802d4ba9a065ae97a9d90f3d/setup.py?at=default&fileviewer=file-view-default#setup.py-102 -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CAN2HbXWDP_-sCxvJoZu_JC8xW-4xqzWBtzZeOrk%2BZe-%3DXDE6xA%40mail.gmail.com.
Re: [tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE
Hie, 2018-02-02 10:21 GMT+01:00 Raimon Esteve : > hie, > > 2018-02-01 17:03 GMT+01:00 Sergi Almacellas Abellana : >> >> El 01/02/18 a les 16:24, Raimon Esteve ha escrit: >> > Hie, >> > >> > Since "Replace deprecated usage of params and signals in GTK+3" [1], >> > after login popup I receive an error that has not attribute READWRITE >> > >> > 13 "text": (gobject.TYPE_STRING, None, "Text", >> > 14 "Displayed text", gobject.ParamFlags.READWRITE), >> > >> > Which version gobject is required? >> > >> >> Which gtk version do you have? Take in account that tryton requires at >> least gtk3.20 or later [1], which IIRC is not avaiable on ubuntu 16.04 >> (should be installed via ppa) > > Ok. I had seen in setup.py and I could not find about requeriments [2] > (py-gobject3 is comment) > >> Indeed you should be using python-object 3.20.0. Which is the output the >> following command: >> >> apt list python-gobject >> >> You should see something like: >> >> Listing… Fet >> python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed] > > Ok. Thanks. Finally I have upgraded ubuntu 14.04.2 LTS (end support > Abril 2019) to 16.04 (end support Abril 2021) > > $ apt list python-gobject > python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed,automatic] > > $ apt list libgtk-3-0 > libgtk-3-0/xenial,now 3.20.8-1ubuntu0~ppa1 amd64 [installed] > > At now, the error is about goocalendar and goocanvas, that "goocanvas" > has no attribute 'CanvasText' [See annex 1] > > I have last release goocalendar (0.3). Is gooclaendar upgrade to GTK-3? Open in the bugtracker: https://goocalendar.tryton.org/bug8 > > [ annex 1] > > Traceback (most recent call last): > File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py", > line 1260, in process > self.callback(return_) > File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", > line 858, in _set_preferences > self.sig_win_menu(prefs=prefs) > File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", > line 1041, in sig_win_menu > row_activate=self.menu_row_activate) > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", > line 142, in __init__ > self.switch_view() > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", > line 486, in switch_view > self.load_view_to_load() > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", > line 507, in load_view_to_load > self.add_view_id(view_id, view_type) > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", > line 520, in add_view_id > return self.add_view(view) > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py", > line 545, in add_view > view = View.parse(self, xml_dom, view.get('field_childs')) > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py", > line 39, in parse > from .calendar_ import ViewCalendar > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_.py", > line 12, in > from .calendar_gtk.calendar_ import Calendar_ > File > "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py", > line 5, in > import goocalendar > File "/usr/local/lib/python2.7/dist-packages/goocalendar/__init__.py", > line 7, in > goocanvas.Text = goocanvas.CanvasText > AttributeError: 'module' object has no attribute 'CanvasText' > > Thanks > >> [1] http://hg.tryton.org/tryton/file/292a067fe066/doc/installation.rst#l8 > > [2] > https://bitbucket.org/tryton/tryton/src/292a067fe0668055802d4ba9a065ae97a9d90f3d/setup.py?at=default&fileviewer=file-view-default#setup.py-102 -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CAN2HbXXkrOHou-TFjNiNQvw1FVGjqWVZ6_JS78Np3fC3dcuFaw%40mail.gmail.com.