Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 May 2010 22:38:24 +0400
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        Jeff Molofee <nehe@telus.net>
Cc:        gnome@FreeBSD.org
Subject:   Re: FreeBSD Port: deskutils/hamster-applet
Message-ID:  <4BF97620.5020806@yandex.ru>
In-Reply-To: <4BF90920.30700@telus.net>
References:  <4BF90920.30700@telus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
23.05.2010 14:53, Jeff Molofee пишет:
> *I get the following error running hamster-standalone or gnome-time-tracker
> *
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowState' as enum when in fact it is of type 'GFlags'
>
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
>
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
> Traceback (most recent call last):
> File "/usr/local/bin/hamster-standalone", line 529, in <module>
> module.bindtextdomain('hamster-applet', locale_dir)
> AttributeError: 'module' object has no attribute 'bindtextdomain'
>

This is a dirty hack but it will work for you while maintainer
(or upstream) fixes it. Change lines 528-530 in
/usr/local/bin/hamster-standalone like this:

528     for module in (gettext, locale):
529         gettext.bindtextdomain('hamster-applet', locale_dir)
530         gettext.textdomain('hamster-applet')

Python's locale module on FreeBSD didn't have bindtextdomain attribute.
See http://docs.python.org/library/locale.html#access-to-message-catalogs


-- 
Regards,
Ruslan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF97620.5020806>