[Pythonmac-SIG] MacPython2.3 - locale problem in Idle
oussoren at cistron.nl
Wed Aug 6 21:27:44 EDT 2003
On Wednesday, 6 August, 2003, at 18:48, Andre Posumentov wrote:
> Hi all,
> On a clean install of Jack's latest MacPython 2.3, together with
> everything listed in the Package Manager, on OS X 10.2.6:
> I encounter a problem starting Idle. The Dock icon bounces a couple
> of times and then silently dies.
> If I start Idle from the command line (inside 'IDLE.app/Contents'), I
> see the following:
> %% ./MacOS/IDLE
> Traceback (most recent call last):
> File "Resources/__argvemulator_idle", line 4, in ?
> execfile(os.path.join(os.path.split(__file__), "idle"))
> File "Resources/idle", line 4, in ?
> import idlelib.PyShell
> PyShell.py", line 22, in ?
> from EditorWindow import EditorWindow, fixwordbreaks
> EditorWindow.py", line 39, in ?
> class EditorWindow:
> EditorWindow.py", line 43, in EditorWindow
> from IOBinding import IOBinding
> IOBinding.py", line 31, in ?
> locale.setlocale(locale.LC_CTYPE, "")
> locale.py", line 381, in setlocale
> return _setlocale(category, locale)
> locale.Error: locale setting not supported
> Can anyone tell me whether this is likely to be a problem with my
> machine configuration, or a bug? The fact that I seem to be the only
> person reporting this would seem to indicate that it's the former -
> but I'm baffled as to the possible cause. I'd be eternally grateful
> for any insights.
What is your language setting? I can reproduce this problem if I set
the environment variable LANG to an unsupported value.
More information about the Pythonmac-SIG