My environment is language not set in conf.py , Windows 8.1, not defined language related environment variable like LANG, LC_*.
In this case, babel Locale.defaut() return null.
>tinker -b
Making output directory...
Running Sphinx v1.2b3
loading pickled environment... not yet created
building [html]: targets for 9 source files that are out of date
updating environment: 9 added, 0 changed, 0 removed
reading sources... [ 11%] 2012/12/08/blobasyncinside
Exception occurred:
File "C:\opt\Sphinx\python\lib\site-packages\tinkerer-1.2.1-py2.7.egg\tinkerer\ext\metadata.py", line 85, in get_metadata
locale = Locale.parse(language) if language else Locale()
TypeError: __init__() takes at least 2 arguments (1 given)
The full traceback has been saved in c:\users\takekazu\appdata\local\temp\sphinx-err-fzjj8v.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-users/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
# Sphinx version: 1.2b3
# Python version: 2.7.5
# Docutils version: 0.11 release
# Jinja2 version: 2.7.1
# Loaded extensions:
# tinkerer.ext.disqus from C:\opt\Sphinx\python\lib\site-packages\tinkerer-1.2.1-py2.7.egg\tinkerer\ext\disqus.pyc
# tinkerer.ext.blog from C:\opt\Sphinx\python\lib\site-packages\tinkerer-1.2.1-py2.7.egg\tinkerer\ext\blog.pyc
# sphinx.ext.oldcmarkup from C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\ext\oldcmarkup.pyc
# sphinxcontrib.gist from C:\opt\Sphinx\python\lib\site-packages\sphinxcontrib.gist-0.1.0-py2.7.egg\sphinxcontrib\gist\__init__.pyc
Traceback (most recent call last):
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\cmdline.py", line 246, in main
app.build(force_all, filenames)
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\application.py", line 212, in build
self.builder.build_update()
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\builders\__init__.py", line 214, in build_update
'out of date' % len(to_build))
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\builders\__init__.py", line 234, in build
purple, length):
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\builders\__init__.py", line 134, in status_iterator
for item in iterable:
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\environment.py", line 470, in update_generator
self.read_doc(docname, app=app)
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\environment.py", line 618, in read_doc
pub.publish()
File "C:\opt\Sphinx\python\lib\site-packages\docutils-0.11-py2.7.egg\docutils\core.py", line 217, in publish
self.settings)
File "C:\opt\Sphinx\python\lib\site-packages\docutils-0.11-py2.7.egg\docutils\readers\__init__.py", line 71, in read
self.input = self.source.read()
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\environment.py", line 600, in read
app.emit('source-read', docname, arg)
File "C:\opt\Sphinx\python\lib\site-packages\sphinx-1.2b3-py2.7.egg\sphinx\application.py", line 358, in emit
results.append(callback(self, *args))
File "C:\opt\Sphinx\python\lib\site-packages\tinkerer-1.2.1-py2.7.egg\tinkerer\ext\blog.py", line 61, in source_read
metadata.get_metadata(app, docname)
File "C:\opt\Sphinx\python\lib\site-packages\tinkerer-1.2.1-py2.7.egg\tinkerer\ext\metadata.py", line 85, in get_metadata
locale = Locale.parse(language) if language else Locale()
TypeError: __init__() takes at least 2 arguments (1 given)
After #28, I got following error.
My environment is language not set in conf.py , Windows 8.1, not defined language related environment variable like LANG, LC_*. In this case, babel Locale.defaut() return null.
I think fall back to English is better.
c:\users\takekazu\appdata\local\temp\sphinx-err-fzjj8v.log