radiotray doesn't build on OpenBSD

Issue #133 resolved
Juan Francisco Cantero Hurtado
created an issue

radiotray can't build on OpenBSD because python doesn't support "locale.textdomain" (file src/lib/ I've tried using "--without-gettext" but obviously also failed.

Some OS don't support "textdomain", so this bug isn't specific to OpenBSD.

Can you make a workaround/fix for my issue?. Let me know if I can help you with the bug or whatever :)

Output: python2.7 --without-gettext build Traceback (most recent call last): File "", line 16, in <module> from src.lib.common import APPNAME, APPVERSION File "/usr/ports/pobj/radiotray-0.7.3/radiotray-0.7.3/src/lib/", line 4, in <module> import i18n File "/usr/ports/pobj/radiotray-0.7.3/radiotray-0.7.3/src/lib/", line 15, in <module> locale.textdomain(program) AttributeError: 'module' object has no attribute 'textdomain'

Comments (3)

  1. Carlos Ribeiro repo owner

    Hmm, I wasn't aware of that problem. Thanks for pointing out. As of this moment I don't have a solution for it. I'm going to do some research on the topic, as I've always used "locale" module. Do you know of a better way for setting locale on OpenBSD ?

  2. Juan Francisco Cantero Hurtado reporter

    I don't know what is the better fix for this issue but I've found various patches that will help you:

    I've tried something similar to this (try/except AttributeError/pass). The change fixes the error but I don't know if is correct or not because radiotray doesn't run.

    ** Message: pygobject_register_sinkfunc is deprecated (GstObject)

    /usr/local/lib/python2.7/site-packages/radiotray/ FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if(cfg_provider._settingExists("buffer_size")):

    Sleep Timer, Stops playing after a predefined time,, Carlos Ribeiro HelloWorld, This is a test plugin,, Carlos Ribeiro started Notifications, Shows message notifications on the desktop,, Carlos Ribeiro Mate Media Keys, Controls Radio Tray through keyboard multimedia keys,, Ken Gnome Media Keys, Controls Radio Tray through keyboard multimedia keys,, Carlos Ribeiro History, Shows song history,, Carlos Ribeiro

    zsh: abort radiotray

  3. Log in to comment