This is probably a problem on my end, but should wxPython also be
checking for None here? (This is 2.5.5.1 with the options listed in
BUILD.html plus --enable-unicode on GTK2.)
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/bhv1/src/wxPython-src-2.5.5.1/wxPython/wx/__init__.py",
line 42, in ?
from wx._core import *
File "/home/bhv1/src/wxPython-src-2.5.5.1/wxPython/wx/_core.py", line
11351, in ?
codecs.lookup(default)
TypeError: lookup() argument 1 must be string, not None
This is probably a problem on my end, but should wxPython also be
checking for None here? (This is 2.5.5.1 with the options listed in
BUILD.html plus --enable-unicode on GTK2.)
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/bhv1/src/wxPython-src-2.5.5.1/wxPython/wx/__init__.py",
line 42, in ?
from wx._core import *
File "/home/bhv1/src/wxPython-src-2.5.5.1/wxPython/wx/_core.py", line
11351, in ?
codecs.lookup(default)
TypeError: lookup() argument 1 must be string, not None
I'll add TypeError to the list of exceptions.
locale.getdefaultlocale()
(None, None)
%locale
LANG=POSIX
I think that getdefaultlocale looks at the LANGUAGE environment variable first. What is it set to? I just tried it set to POSIX and I get (None, None) too so I guess that is what yours is set to. Try setting it to something like "en_US:en" or whatever fits your needs.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
TypeError: lookup() argument 1 must be string, not None
I'll add TypeError to the list of exceptions.
That oughta do it.
I think that getdefaultlocale looks at the LANGUAGE environment variable
first. What is it set to? I just tried it set to POSIX and I get
(None, None) too so I guess that is what yours is set to. Try setting
it to something like "en_US:en" or whatever fits your needs.
The LANGUAGE environment variable is not set when the above error is
produced. But setting it as you suggested does allow me to import wx
and should work well enough until a new release comes out.
Thanks!
···
On Sat, Apr 09, 2005 at 10:30:42AM -0700, Robin Dunn wrote: