[PyPy-issue] [issue522] pypy _locale is missing _getdefaultlocale

Leonardo Santagada pypy-dev-issue at codespeak.net
Mon Apr 26 10:13:40 CEST 2010


New submission from Leonardo Santagada <santagada at gmail.com>:

While trying to run hg trunk on pypy-c trunk r74059 I get this error:

../pypy-trunk/pypy/translator/goal/pypy-c hg version
Traceback (most recent call last):
  File "app_main.py", line 33, in run_toplevel
  File "hg", line 27, in <module>
    mercurial.dispatch.run()
  File "mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "mercurial/dispatch.py", line 30, in dispatch
    return _runcatch(u, args)
  File "mercurial/dispatch.py", line 156, in _runcatch
    ui.warn(_("** unknown exception encountered, details follow\n"))
  File "/Users/santagada/projects/hg/mercurial/i18n.py", line 46, in gettext
    return u.encode(encoding.encoding, "replace")
  File "/Users/santagada/projects/hg/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/Users/santagada/projects/hg/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "mercurial/encoding.py", line 24, in <module>
    encoding = locale.getpreferredencoding() or 'ascii'
  File "/Users/santagada/projects/pypy-trunk/lib-python/2.5.2/locale.py", line 497, in 
getpreferredencoding
    return _locale._getdefaultlocale()[1]
AttributeError: 'module' object has no attribute '_getdefaultlocale'
Tracing:        1       0.001525
Backend:        1       0.000617
Running asm:            1
Blackhole:              1
TOTAL:                  0.079888
ops:                    202
  calls:                3
  pure calls:           2
recorded ops:           19
  calls:                1
  pure calls:           0
guards:                 19
blackholed ops:         2
  pure calls:           0
opt ops:                39
opt guards:             9
forcings:               0
abort: trace too long:  0
abort: compiling:       0
abort: vable escape:    0
nvirtuals:              9
nvholes:                0
nvreused:               6

----------
effort: ???
messages: 1697
nosy: hpk, pypy-issue, santagada
priority: bug
release: ???
status: unread
title: pypy  _locale is missing _getdefaultlocale

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue522>
_______________________________________________________



More information about the Pypy-issue mailing list