problem with wxPython 2.5.4.1

pamlinux@surfeu.ch wrote:

Hello every body,

Thanks and congratulation Robin for this new version, I appreciate very
much the possibility of the new media player. I downloaded it on windows
and it works very well.

Nevertheless, My predilection system is Linux and I installed wxPython from
source as usual (I have Mandrake 10.0 and there is no built rpm).

You can use the mdk9.2 RPM on 10.0

When I
run the demo I got the following:

Traceback (most recent call last):
  File "demo.py", line 4, in ?
    Main.main()
  File "/home/pam/inst/wxPython-2.5.4.1/demo/Main.py", line 1705, in main
    app = MyApp(False)
  File "/usr/lib/python2.3/site-packages/wx-2.5.4-gtk2-unicode/wx/_core.py",
line 5573, in __init__
    wx.StandardPaths.Get().SetInstallPrefix(_sys.prefix)
  File "/usr/lib/python2.3/site-packages/wx-2.5.4-gtk2-unicode/wx/_misc.py",
line 5994, in SetInstallPrefix
    return _misc_.StandardPaths_SetInstallPrefix(*args, **kwargs)
LookupError: unknown encoding: fr

It is not difficult to understand that it is a problem of language of language
(french) . But How can I correct it ?

Take a look at the value of your LANGUAGE environment variable. If it has a value that can confuse Python's locale.getdefaultlocale() function then this bug can happen.

You may also want to try the 2.5.5.0 preview as this bug has been fixed there.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!