RDFLib/rdflib — Issue #129: Can't compile documentation
Author: gjhiggins
Created: 2012-02-20 08:33:24+00:00
State: open

denilsonsa, 2010-09-02T01:33:25.000Z

What steps will reproduce the problem?
1. Svn checkout of the repository.
2. cd docs ; make html

What is the expected output? What do you see instead?

Expected to finish without errors, but I get:

sphinx-build -b html -d _build/doctrees . _build/html
Making output directory...
Running Sphinx v0.6.7
loading pickled environment... not found
building [html]: targets for 27 source files that are out of date
updating environment: 27 added, 0 changed, 0 removed
reading sources... [100%] univrdfstore
/usr/lib64/python2.6/site-packages/rdflib/graph.py:docstring of rdflib.graph.Graph:10: (ERROR/3) Unexpected indentation.

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 3%] addons
Exception occurred:
File "/usr/lib64/python2.6/site-packages/pygments/lexers/__init__.py", line 80, in get_lexer_by_name
raise ClassNotFound('no lexer for alias %r found' % _alias)
ClassNotFound: no lexer for alias u'n3' found
The full traceback has been saved in /tmp/sphinx-err-URFmya.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 ,
or report them in the tracker at . Thanks!
make: *** [html] Error 1

What version of the product are you using? On what operating system?

Gentoo/Linux amd64, Python 2.6.5, Sphinx 0.6.7, Pygments 1.3.1.
Also tried with Sphinx 1.0.3, same error.

Comment 1 by gjhigg...@gmail.com
Fixed in http://code.google.com/p/rdflib/source/detail?r=1894

"Change unsupported code-blocks 'n3' and 'sparql' to 'text'."

(I habitually use Philip Cooper's n3/sparql pygments lexer:
http://www.openvest.com/trac/browser/tools/trunk/pygments/lexers/sw.py
but it's not in the pygments package's std collection of lexers.)