5

As I'd seen it recommended in How can I install software or packages without Internet (offline)? tried to install Keryx but I am not able to open it. When I run it in a terminal it prints these warnings:

(keryx:4127): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/i486-pc-linux-gnu/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)

Fontconfig warning: "/etc/fonts/conf.d/11-lcd-filter-lcddefault.conf", line 9: invalid constant used : lcddefault
Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant used : lcdlegacy
Traceback (most recent call last):
  File "<string>", line 132, in <module>
  File "keryx/build/pyi.linux2/keryx/outPYZ1.pyz/lib.wxkeryx", line 49, in Start
  File "keryx/build/pyi.linux2/keryx/outPYZ1.pyz/wx._core", line 7912, in __init__
  File "keryx/build/pyi.linux2/keryx/outPYZ1.pyz/wx._core", line 7487, in _BootstrapApp
  File "keryx/build/pyi.linux2/keryx/outPYZ1.pyz/lib.wxkeryx", line 27, in OnInit
  File "keryx/build/pyi.linux2/keryx/outPYZ1.pyz/lib.log", line 46, in info
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)

How can I solve this problem?

Zanna
  • 70,465
Bakhtiyor
  • 12,254
  • 1
    So the GTK version out of date I'm not sure is as much of a problem as Keryx is having trouble translating something to display. Are you using a translation? What was happening when it crashed? – excid3 Aug 17 '10 at 14:03
  • 1
    @excid3, as loevburg pointed out, line 27 here is the problem. It's simply logging that the interface was loaded. This appears to be the first string to be translated during startup. – crenshaw-dev Aug 17 '10 at 14:13

3 Answers3

8

Not knowing Keryx, from looking at the source it seems that the error occurs here, in an innocuous print statement.

AFAIK the _() function is used in localization to retrieve the translation of a given string based on you current locale. So the problem is most likely related to your non-English language environment. Try running

LANG=C ./keryx

from the terminal window. This runs the program in English. If this is indeed the problem, send a bug report to the developer.

crenshaw-dev
  • 31,762
loevborg
  • 7,282
0

The GTK library that you have is too old for the keryx software that you to installed. Check on the keryx website what the requirements for libraries are and see if you can find a .deb in either the Ubuntu archives or a PPA that meets this requirement.

Zanna
  • 70,465
txwikinger
  • 28,462
  • 2
    The Keryx binary he's using should contain all dependencies. I believe the GTK part is just a warning, and the UnicodeEncodeError is the real problem. – crenshaw-dev Aug 17 '10 at 14:02
0

It is trying to interpret non-ASCII data as ASCII. This happens in the log function, so I'm guessing it is trying to log user-supplied data. The LANG=C trick is definitely worthwhile to try. What are you doing to make it crash? How do you start the application?

Zanna
  • 70,465
  • Dennis, it's not trying to log user-supplied data. It's logging the translated form of 'wxWidgets interface loaded' (as seen in line 27 of lib/wxkeryx/init.py). He is trying to start the Keryx GUI when it crashes. How he's trying to start it, I'm not sure. – crenshaw-dev Aug 17 '10 at 17:05
  • I think that we autodetect and apply the current locale of Ubuntu though, so that may be whats tripping things and we shouldn't auto switch. – excid3 Aug 17 '10 at 21:18