I’m trying to build a package to use gajim on Mac OS X 10.9 with brew. I seem to be running into issues with GTK icons having changed names (similar to [1]). I’ve tried both Gajim 0.15.4 and 0.16-rc1 (after also packaging python-nbxmpp), both have similar errors.
I’m not sure where exactly to start with this and was hoping you’d have some tips on what the dependencies are to try to start narrowing down what needs changed where. I’ll include some details about packages installed and the backtrace I’m getting below.
I should also mention that I did review the GajimMacOSX page [2] to try to get some tips on how to build it from the macports package but didn’t make much progress; I’m guessing due to the package being so old and the dependencies having moved ahead.
-Doug
[1] https://trac.gajim.org/ticket/7455#comment:10 [2] https://trac.gajim.org/wiki/GajimMacOSX
$ gajim D-Bus python bindings are missing in this computer D-Bus capabilities of Gajim cannot be used /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gobject/__init__.py:115: Warning: Attempt to add property cell_renderer_image+CellRendererImage::image after class was initialised type_register(cls, namespace.get('__gtype_name__')) /usr/local/Cellar/gajim/0.15.4/share/gajim/src/roster_window.py:6622: Warning: void g_object_set_qdata(GObject *, GQuark, gpointer): assertion 'G_IS_OBJECT (object)' failed self.window.show_all() Traceback (most recent call last): File "gajim.py", line 472, in <module> interface.run() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/gui_interface.py", line 2537, in run gajim.plugin_manager = plugins.PluginManager() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/plugins/helpers.py", line 129, in __call__ cls.instance=super(Singleton, cls).__call__(*args,**kw) File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/plugins/pluginmanager.py", line 104, in __init__ pc = PluginManager.scan_dir_for_plugins(path) File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/plugins/helpers.py", line 114, in wrapper result = f(*args, **kwargs) File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/plugins/pluginmanager.py", line 408, in scan_dir_for_plugins from plugins.plugins_i18n import _ File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/common/demandimport.py", line 95, in _demandimport return _import(name, globals, locals, fromlist, level) File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/plugins/plugins_i18n.py", line 32, in <module> locale.bindtextdomain(APP, plugins_locale_dir) AttributeError: 'module' object has no attribute ‘bindtextdomain'
$ brew info python pygtk gtk+ hicolor-icon-theme | grep stable python: stable 2.7.6, HEAD pygtk: stable 2.24.0 gtk+: stable 2.24.22 (bottled) hicolor-icon-theme: stable 0.13 (bottled)
Hi Doug
First, that's an excellent news that someone tries to build a package for MacOSX ! We'd be very happy to have one!
The error you poster bellow in because you probably don't have gettext available. gettext is used to have Gajim translatable. This is the 22.2.3 section of this python doc: http://docs.python.org/2/library/locale.html#module-locale
It looks like I did have gettext installed; are the python bindings typically installed separately? $ brew info gettext | grep stable gettext: stable 0.18.3.2 (bottled)
I missed the fact that the OSX wiki page suggested needing the path to gettext binaries, so I added that and got a little farther onto an sqlite error that I’ll try to work on next.
I’ll probably see if I can modify the gajim package to automatically search the installed gettext path rather than making users find this themselves, but I haven’t dug into who to tackle it yet.
The new error is below, but it seems like my installation might be using the wrong library or version of python.
Thanks for the tip on gettext! -Doug
Traceback (most recent call last): File "gajim.py", line 471, in <module> interface = Interface() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/gui_interface.py", line 2835, in __init__ gajim.transport_type = gajim.logger.get_transports_type() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/common/logger.py", line 831, in get_transports_type 'SELECT * from transports_cache') sqlite3.OperationalError: no such table: transports_cache
On Mar 28, 2014, at 17:06, Yann Leboulanger asterix@lagaule.org wrote:
Hi Doug
First, that's an excellent news that someone tries to build a package for MacOSX ! We'd be very happy to have one!
The error you poster bellow in because you probably don't have gettext available. gettext is used to have Gajim translatable. This is the 22.2.3 section of this python doc: http://docs.python.org/2/library/locale.html#module-locale
-- Yann
On 03/28/2014 06:17 PM, Doug Warner wrote:
I’m trying to build a package to use gajim on Mac OS X 10.9 with brew. I seem to be running into issues with GTK icons having changed names (similar to [1]). I’ve tried both Gajim 0.15.4 and 0.16-rc1 (after also packaging python-nbxmpp), both have similar errors.
I’m not sure where exactly to start with this and was hoping you’d have some tips on what the dependencies are to try to start narrowing down what needs changed where. I’ll include some details about packages installed and the backtrace I’m getting below.
I should also mention that I did review the GajimMacOSX page [2] to try to get some tips on how to build it from the macports package but didn’t make much progress; I’m guessing due to the package being so old and the dependencies having moved ahead.
-Doug
[1] https://trac.gajim.org/ticket/7455#comment:10 [2] https://trac.gajim.org/wiki/GajimMacOSX
$ gajim D-Bus python bindings are missing in this computer D-Bus capabilities of Gajim cannot be used /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gobject/__init__.py:115: Warning: Attempt to add property cell_renderer_image+CellRendererImage::image after class was initialised type_register(cls, namespace.get('__gtype_name__')) /usr/local/Cellar/gajim/0.15.4/share/gajim/src/roster_window.py:6622: Warning: void g_object_set_qdata(GObject *, GQuark, gpointer): assertion 'G_IS_OBJECT (object)' failed self.window.show_all() Traceback (most recent call last):
[...]
locale.bindtextdomain(APP, plugins_locale_dir) AttributeError: 'module' object has no attribute ‘bindtextdomain'
Gajim-devel mailing list Gajim-devel@gajim.org https://lists.gajim.org/cgi-bin/listinfo/gajim-devel
On 03/29/2014 02:10 PM, Doug Warner wrote:
It looks like I did have gettext installed; are the python bindings typically installed separately? $ brew info gettext | grep stable gettext: stable 0.18.3.2 (bottled)
I missed the fact that the OSX wiki page suggested needing the path to gettext binaries, so I added that and got a little farther onto an sqlite error that I’ll try to work on next.
I’ll probably see if I can modify the gajim package to automatically search the installed gettext path rather than making users find this themselves, but I haven’t dug into who to tackle it yet.
The new error is below, but it seems like my installation might be using the wrong library or version of python.
Thanks for the tip on gettext! -Doug
Traceback (most recent call last): File "gajim.py", line 471, in <module> interface = Interface() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/gui_interface.py", line 2835, in __init__ gajim.transport_type = gajim.logger.get_transports_type() File "/usr/local/Cellar/gajim/0.15.4/share/gajim/src/common/logger.py", line 831, in get_transports_type 'SELECT * from transports_cache') sqlite3.OperationalError: no such table: transports_cache
I suggest you just remove the whole ~/.local/share/gajim folder and ~/.cacge/gajim folder. database will be created on next startup.