Issue #133 resolved

radiotray doesn't build on OpenBSD

Juan Francisco Cantero Hurtado
created an issue

radiotray can't build on OpenBSD because python doesn't support "locale.textdomain" (file src/lib/i18n.py). 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 setup.py --without-gettext build Traceback (most recent call last): File "setup.py", 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/common.py", line 4, in <module> import i18n File "/usr/ports/pobj/radiotray-0.7.3/radiotray-0.7.3/src/lib/i18n.py", 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 https://bugs.launchpad.net/lottanzb/+bug/434199 (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/AudioPlayerGStreamer.py:51: 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, SleepTimerPlugin.py, Carlos Ribeiro HelloWorld, This is a test plugin, HelloWorld.py, Carlos Ribeiro started Notifications, Shows message notifications on the desktop, NotificationPlugin.py, Carlos Ribeiro Mate Media Keys, Controls Radio Tray through keyboard multimedia keys, MateMediaKeysPlugin.py, Ken Gnome Media Keys, Controls Radio Tray through keyboard multimedia keys, GnomeMediaKeysPlugin.py, Carlos Ribeiro History, Shows song history, HistoryPlugin.py, Carlos Ribeiro

    zsh: abort radiotray

  3. Log in to comment