[TYPO3-doc] Trouble getting a local rendering
François Suter
fsu-lists at cobweb.ch
Mon Jul 2 11:30:07 CEST 2012
Hi again,
> Doesn't seem to be the case :-( My sphinx-build script looks exactly
> like the one you posted. I wonder if there may be a mess because of
> multiple python instances existing on my machine (default from MacOS,
> plus several versions from MacPorts) and not playing nice to each other.
> I'll try to dig, but I'm not sure where to start looking.
I can pretty much confirm my hypothesis. After having installed Sphinx
via the "easy_install" script provided by the native Python version of
Mac OS X, I got much further. However I still have an error:
sphinx-build -b html -d build/doctrees -c . -a -E -w
./_not_versioned/warnings.txt ../ build/html
Traceback (most recent call last):
File "/usr/local/bin/sphinx-build", line 8, in <module>
load_entry_point('Sphinx==1.1.3', 'console_scripts', 'sphinx-build')()
File
"/Library/Python/2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/__init__.py",
line 47, in main
from sphinx import cmdline
File
"/Library/Python/2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/cmdline.py",
line 18, in <module>
from docutils.utils import SystemMessage
File
"/Library/Python/2.7/site-packages/docutils-0.9.1-py2.7.egg/docutils/utils/__init__.py",
line 19, in <module>
from docutils.io import FileOutput
File
"/Library/Python/2.7/site-packages/docutils-0.9.1-py2.7.egg/docutils/io.py",
line 18, in <module>
from docutils.error_reporting import locale_encoding, ErrorString,
ErrorOutput
File
"/Library/Python/2.7/site-packages/docutils-0.9.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
make: *** [html] Error 1
It's obvious that "UTF-8" is not a valid locale, but how do I set the
default one? Any idea where I should look?
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-documentation
mailing list