@
lepture Traceback (most recent call last):
File "/usr/local/bin/liquidluck", line 8, in <module>
load_entry_point('liquidluck==0.1', 'console_scripts', 'liquidluck')()
File "/Library/Python/2.7/site-packages/liquidluck-0.1-py2.7.egg/liquidluck/
cli.py", line 107, in main
return run_command(args.command)
File "/Library/Python/2.7/site-packages/liquidluck-0.1-py2.7.egg/liquidluck/
cli.py", line 96, in run_command
return build(args.config)
File "/Library/Python/2.7/site-packages/liquidluck-0.1-py2.7.egg/liquidluck/
cli.py", line 44, in build
import_module(reader)().start()
File "/Library/Python/2.7/site-packages/liquidluck-0.1-py2.7.egg/liquidluck/
utils.py", line 51, in import_module
obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
File "/Library/Python/2.7/site-packages/liquidluck-0.1-py2.7.egg/liquidluck/readers/
rst.py", line 34, in <module>
from docutils.core import publish_parts
File "/Library/Python/2.7/site-packages/docutils-0.8.1-py2.7.egg/docutils/
core.py", line 20, in <module>
from docutils import frontend, io, utils, readers, writers
File "/Library/Python/2.7/site-packages/docutils-0.8.1-py2.7.egg/docutils/
frontend.py", line 39, in <module>
import docutils.utils
File "/Library/Python/2.7/site-packages/docutils-0.8.1-py2.7.egg/docutils/
utils.py", line 18, in <module>
from docutils.error_reporting import ErrorOutput, SafeString
File "/Library/Python/2.7/site-packages/docutils-0.8.1-py2.7.egg/docutils/
error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
locale.py", line 496, in getdefaultlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
locale.py", line 428, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
我使用export LC_ALL=en_US.UTF-8之后就没有问题了,这个错误调用locale.getdefaultlocale()可以重现