On Mon, Sep 09, 2013 at 06:11:23AM -0700, Peter Bouda wrote:
> Hi,
> 
> I have a problem building a sphinx project with Python 3. The project uses 
> autosummary and the :toctree: directive, an example file is here:
> 
> https://raw.github.com/lingpy/lingpy/master/doc/source/docu/compare/trebor.rst
> 
> When I try to build the project I get the error:
> 
>   File 
> "/usr/local/lib/python3.2/dist-packages/Sphinx-1.2b1-py3.2.egg/sphinx/ext/autosummary/generate.py",
>  
> line 104, in generate_autosummary_docs
>     for name, path, template_name in sorted(items):
> TypeError: unorderable types: NoneType() < str()
> 
> This seem to be an error related to the "sorted" function in Python 3. In 
> Python 2 everything is fine. The line in "generated.py" is the following:
> 
> https://bitbucket.org/birkenfeld/sphinx/src/ef3092d458cc00c4b74dd342ea05ba1059a5da70/sphinx/ext/autosummary/generate.py?at=default#cl-104
> 
> The next line 105 indicates that some tuple entries might be "None", so 
> sorting should also work with "None" values. Is this a bug in autosummary?
Yes, Python 3 doesn't allow sorting None with strings in the same list.

Zbyszek

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to