Pycco raises: pygments.util.ClassNotFound: no lexer for alias 'coffee-script' found
majek opened this issue · 1 comments
majek commented
Fresh pycco installation raises an exception:
virtualenv venv
./venv/bin/pip install pycco
./venv/bin/pycco a.py
Traceback (most recent call last):
File "./venv/bin/pycco", line 9, in <module>
load_entry_point('Pycco==0.2.0', 'console_scripts', 'pycco')()
File "/tmp/a/venv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/pkg_resources.py", line 299, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/tmp/a/venv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/pkg_resources.py", line 2229, in load_entry_point
return ep.load()
File "/tmp/a/venv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/tmp/a/venv/lib/python2.6/site-packages/pycco/__init__.py", line 1, in <module>
from .main import *
File "/tmp/a/venv/lib/python2.6/site-packages/pycco/main.py", line 308, in <module>
l["lexer"] = lexers.get_lexer_by_name(l["name"])
File "/usr/lib/pymodules/python2.6/pygments/lexers/__init__.py", line 84, in get_lexer_by_name
raise ClassNotFound('no lexer for alias %r found' % _alias)
pygments.util.ClassNotFound: no lexer for alias 'coffee-script' found
majek commented
Problem solved:
$ sudo apt-get remove python-pygments