-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 16.03.2010 15:59, schrieb mrule:
> I am trying to follow the sphinx tutorial (http://
> matplotlib.sourceforge.net/sampledoc/getting_started.html). This
> occurs at the first step, after adding "getting_started.rst" to
> "index.rst". I have no idea what it means. I have tried google.
> 
> writing output... [ 50%] sample/
> extensions
> Exception occurred:
>   File "/usr/local/lib/python2.6/dist-packages/Pygments-1.3.1-
> py2.6.egg/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'ipython' found
> The full traceback has been saved in /tmp/sphinx-err-IhdnfR.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-dev/>,
> or report them in the tracker at <http://bitbucket.org/birkenfeld/
> sphinx/issues/>. Thanks!
> make: *** [html] Error 1

The problem is that the sampledoc document uses the "ipython" lexer
for Pygments, which is not a part of the standard Pygments distribution,
but in its "ipython_console_highlighting" extension mentioned here:
<http://matplotlib.sourceforge.net/sampledoc/extensions.html>

You need to activate that extension for IPython highlighting.

That said, I will add some code that catches these exceptions and only
emits a warning if an unknown lexer name is used for the next release.

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAku41rEACgkQN9GcIYhpnLCDbwCePdo29C6WdlQJk1BRcUk8TacI
63MAoJq4fACJt4ggjPQ17aoWmWj1Z8y2
=x2zl
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to