You are not logged in.

#1 2016-07-06 12:42:04

vide
Member
Registered: 2016-06-30
Posts: 3

does python-pygments depends on ipython?

Hello,

this is my first post here, so I hope this is the right place.

I'm using the python-markdown[1] package with the fenced_code and codehilite
extensions and noticed that if ipython[3] is not installed, then the following
unhandled exception is raised (when a markdown code block has no, or an unknown language):

pkg_resources.DistributionNotFound: The 'traitlets' distribution was not found and is required by the application

codehilite in turn uses python-pygments[2] and the code:

from pygments.lexers import guess_lexer, guess_lexer_for_filename
guess_lexer('this is some text')

Throws the same exception as above, if ipython is not installed, whereas if ipython is installed it raises the exception:

pygments.util.ClassNotFound: no lexer matching the text found

It seems strange that python-pygments depends on ipython, but is this a missing dependency of python-pygments?

Thanks

[1]: https://www.archlinux.org/packages/comm … -markdown/
[2]: https://www.archlinux.org/packages/comm … -pygments/
[3]: https://www.archlinux.org/packages/comm … y/ipython/

Last edited by vide (2016-07-06 12:43:34)

Offline

Board footer

Powered by FluxBB