<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I had that problem as well. A bit off googling lead me to <a href="http://stackoverflow.com/questions/19961239/pelican-3-3-pelican-quickstart-error-valueerror-unknown-locale-utf-8" class="">http://stackoverflow.com/questions/19961239/pelican-3-3-pelican-quickstart-error-valueerror-unknown-locale-utf-8</a>. Set the variables mentioned in the accepted answer and you should be fine. But maybe this should be documented somewhere (e.g. in the readme of the Swift project), I’ll make a pull request later today.<div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 10 Feb 2016, at 15:42, ankit goel <<a href="mailto:ankit1ank@gmail.com" class="">ankit1ank@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks Alex, This fixed the issue on ubuntu 14.04.<div class=""><br class=""></div><div class="">However, I am still unable to compile docs on OS X even when I use Sphinx 1.3.4</div><div class=""><br class=""></div><div class="">I get the following error:</div><div class=""><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class="">sphinx-build -b html -W -d _build/doctrees . _build/html</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class="">Traceback (most recent call last):</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/usr/local/bin/sphinx-build", line 11, in <module></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> sys.exit(main())</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/sphinx/__init__.py", line 51, in main</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> sys.exit(build_main(argv))</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/sphinx/__init__.py", line 61, in build_main</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> from sphinx import cmdline</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/sphinx/cmdline.py", line 19, in <module></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> from docutils.utils import SystemMessage</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/docutils-0.12-py2.7.egg/docutils/utils/__init__.py", line 20, in <module></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> import <a href="http://docutils.io/" class="">docutils.io</a></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/docutils-0.12-py2.7.egg/docutils/io.py", line 18, in <module></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/Library/Python/2.7/site-packages/docutils-0.12-py2.7.egg/docutils/utils/error_reporting.py", line 47, in <module></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> return _parse_localename(localename)</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class=""> raise ValueError, 'unknown locale: %s' % localename</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class="">ValueError: unknown locale: UTF-8</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Andale Mono';" class=""><span style="background-color:rgb(255,255,255)" class=""><font class="">make: *** [html] Error 1</font></span></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Feb 7, 2016 at 1:28 PM, Alex Hoppen <span dir="ltr" class=""><<a href="mailto:alex@ateamer.de" target="_blank" class="">alex@ateamer.de</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">This is a known issue. I filed a bug report for this some days ago (<a href="https://bugs.swift.org/browse/SR-620" target="_blank" class="">https://bugs.swift.org/browse/SR-620</a>). It is an incompatibility between the Swift documentation and Sphinx 1.3.5. You can get around the issue by installing Sphinx 1.3.4 temporarily using<div class=""><br class=""></div><div class="">easy_install Sphinx==1.3.4</div><div class=""><br class=""></div><div class="">- Alex</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 07 Feb 2016, at 08:51, ankit goel via swift-dev <<a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><font face="arial, helvetica, sans-serif" class="">Hey,</font><div class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, helvetica, sans-serif" class="">After downloading the swift repository, I am unable to generate html files from rst files in docs directory. I have installed Sphinx and tried this on both OS X and ubuntu 14.04. When I run the make command in docs directory I get the following error:</font></div><div class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, helvetica, sans-serif" class="">On OS X:</font></div><div class=""><div style="margin:0px;font-size:12px;line-height:normal" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class="">sphinx-build -b html -W -d _build/doctrees . _build/html</font></span></div><div style="margin:0px;font-size:12px;line-height:normal" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class="">make: sphinx-build: No such file or directory</font></span></div><div style="margin:0px;font-size:12px;line-height:normal" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class="">make: *** [html] Error 1</font></span></div><div style="margin:0px;font-size:12px;line-height:normal" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></span></div><div style="margin:0px;font-size:12px;line-height:normal" class=""><span style="font-family:arial,helvetica,sans-serif;font-size:small" class="">On Ubuntu 14.04</span><span style="font-family:arial,helvetica,sans-serif;font-size:small" class="">:</span><br class=""></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class="">/path/to/repo/swift-master/docs/ABI.rst:56 : WARNING: Could not parse literal_block as "swift". highlighting skipped</font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class="">make: *** [html] Error 1</font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class="">I would really appreciate if anyone can help me with generating docs. </font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin:0px;line-height:normal" class=""><font face="arial, helvetica, sans-serif" class="">Ankit</font></div><div style="margin:0px;line-height:normal" class=""><br class=""></div></div></div></div></div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>