그래서 오늘은 2.0.2 바자 업그레이드, 나는이 메시지 (내가 BTW, 눈 표범에있어) 받기 시작 :python 로켈 이상한 오류. 여기서 정확히 무슨 일이 일어나고있는거야?
bzr: warning: unknown locale: UTF-8
Could not determine what text encoding to use.
This error usually means your Python interpreter
doesn't support the locale set by $LANG (en_US.UTF-8)
Continuing with ascii encoding.
아주 이상한, 내 LANG 실제로 비어 있으므로합니다. 내가
Python 2.5.4 (r254:67916, Nov 30 2009, 14:09:22)
[GCC 4.3.4] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getdefaultlocale()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/sbo/runtimes/lib/python2.5/locale.py", line 443, in getdefaultlocale
return _parse_localename(localename)
File "/Users/sbo/runtimes/lib/python2.5/locale.py", line 375, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
LANG을 수출하는 것은 그러나, 이것은 당신이 무슨 일이 일어나고 있는지 설명해 주시겠습니까 문제
[email protected]-045:~ $ export LANG=en_US.UTF-8
[email protected]:~ $ export LC_ALL=en_US.UTF-8
Python 2.5.4 (r254:67916, Nov 30 2009, 14:09:22)
[GCC 4.3.4] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getdefaultlocale()
('en_US', 'UTF8')
를 해결
[email protected]:~ $ export LANG=en_US.UTF-8
[email protected]:~ $ bzr
bzr: warning: unknown locale: UTF-8
Could not determine what text encoding to use.
This error usually means your Python interpreter
doesn't support the locale set by $LANG (en_US.UTF-8)
Continuing with ascii encoding.
도움이되지 않습니다 로케일 모듈과 수리를 할 때 비슷한 일이 일어날 여기에 더 나은 googlability?
더 이상의 문제에 대한 통찰력이 있으십니까? –
+1 두 개의 "내보내기"행으로 인해 "ValueError : unknown locale : ..."이 사라졌습니다. – Bogatyr
지난 두 줄에 감사드립니다. 저를 구했고 많은 Mac 사용자들이 많은 시간을 보냈습니다. –