Problems running gaphor ( gtkact.set_property('active', act.active) )

0 views
Skip to first unread message

Marcos Medrano

unread,
Apr 14, 2008, 11:33:54 PM4/14/08
to gapho...@googlegroups.com
Hi, I am having troubles installing gaphor from the svn repository.
Although it doesn't look as a "gaphor" issue (maybe gtk or cairo), I
ask here because I couldn't find the solution in other places. (excuse
me if this is not the right place to ask)

I'm on Debian Etch and I could perfectly install gaphor using
"apt-get", but this install the 0.8.1 version. However, I'd like to
install the last version from svn. In order to do that I did a
checkout from the trunk and tried to run the program. After this, I
get an error message when it tries to execute the following line:
gtkact.set_property('active', act.active)

This is the exception:

2008-04-11 20:25:18,978 DEBUG found entry point uicomponent.mainwindow
Traceback (most recent call last):
File "/usr/bin/gaphor", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/__init__.py",
line 37, in main
Application.init()
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/application.py",
line 45, in init
self.init_all_services()
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/application.py",
line 91, in init_all_services
self.init_service(self._uninitialized_services.iterkeys().next())
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/application.py",
line 105, in init_service
srv.init(self)
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/services/guimanager.py",
line 26, in init
self.init_ui_components()
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/services/guimanager.py",
line 49, in init_ui_components
uicomp = cls()
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/ui/mainwindow.py",
line 119, in __init__
self.action_group = build_action_group(self)
File "/usr/lib/python2.4/site-packages/gaphor-0.13.0.dev_r2226-py2.4.egg/gaphor/action.py",
line 136, in build_action_group
gtkact.set_property('active', act.active)
TypeError: the object does not support the given parameter


That's why I updated to their latest versions pygtk (2.12.1), cario
(1.6.2) and pycairo(1.4.12), but the problem persisted. After
reinstalling GTK everything started to fail =S. It wasn't a big deal
but I had to reinstall Debian (I admit I'm a newbie, at least in
Linux). The thing is... I don´t want to reinstall GTK anymore!

Any suggestions?

Thanks!

Marcos.

Arjan Molenaar

unread,
Apr 15, 2008, 9:32:53 AM4/15/08
to gapho...@googlegroups.com
Hi,

I have to look into this. I have pyGTK 2.10.4 and no problem with
set_property().

BTW. what version of GTK+ do you have installed?

Regards,

Arjan

arjan

unread,
Apr 15, 2008, 9:40:58 AM4/15/08
to gaphor-dev
I checked, but you should be fine with GTK + 2.10 or newer (see
http://pygtk.org/docs/pygtk/class-gtktoggleaction.html).

Regards,

Arjan


On Apr 15, 3:32 pm, "Arjan Molenaar" <gap...@gmail.com> wrote:
> Hi,
>
> I have to look into this. I have pyGTK 2.10.4 and no problem with
> set_property().
>
> BTW. what version of GTK+ do you have installed?
>
> Regards,
>
> Arjan
>
> On Tue, Apr 15, 2008 at 5:33 AM, Marcos Medrano
>

arjan

unread,
Apr 15, 2008, 9:42:13 AM4/15/08
to gaphor-dev
I checked, but you should be fine with GTK+ >= 2.10 (see
http://pygtk.org/docs/pygtk/class-gtktoggleaction.html).

Regards,

Arjan

Marcos Medrano

unread,
Apr 16, 2008, 12:55:49 AM4/16/08
to gapho...@googlegroups.com
Hi Arjan!

Thanks for the reply. You were right, I have GTK+ 2.8.20 so I should
update. I found that gtk+ 2.10 is not on Debian etch (stable), and
maybe that was my problem. I will consider using Debian testing
(Lenny)... or maybe Ubuntu 7.10.

Thanks again.

Marcos.

Arjan Molenaar

unread,
Apr 17, 2008, 2:25:31 AM4/17/08
to gapho...@googlegroups.com
Hi Marcos,

Thanks for the reply. I updated the gnomefiles.org entry an an older
(win32 related) page on our wiki too. GTK+ 2.8 is quite old actually,
so updating would be a good thing. AFAIK 2.10 is completely backwards
compatible with 2.8, so I wonder why the debian guys do now update.

Regards,

Arjan

Marcos Medrano

unread,
Apr 17, 2008, 11:44:04 PM4/17/08
to gapho...@googlegroups.com
On Thu, Apr 17, 2008 at 3:25 AM, Arjan Molenaar <gap...@gmail.com> wrote:

> Thanks for the reply. I updated the gnomefiles.org entry an an older
> (win32 related) page on our wiki too. GTK+ 2.8 is quite old actually,
> so updating would be a good thing. AFAIK 2.10 is completely backwards
> compatible with 2.8, so I wonder why the debian guys do now update.

By the way, I asked this to some friends and I talked with a debian
developer. They told me that Debian stable won't update any packages.
The packages maintained are the same packages that came with the
release. By the time that etch was released, the version of gtk was
2.8. They have like a freeze time, where they won't take any more
packages for next release. This is because their goal it isn't to
update packages but to fix bugs (that is why is 'stable').

The next release will have the actual version of gtk. But i think we
have to wait a couple of months until that.

Marcos.

Reply all
Reply to author
Forward
0 new messages