Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pycco raises: pygments.util.ClassNotFound: no lexer for alias 'coffee-script' found #39

Closed
majek opened this issue Sep 15, 2011 · 1 comment

Comments

@majek
Copy link

majek commented Sep 15, 2011

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
Copy link
Author

majek commented Sep 16, 2011

Problem solved:

$ sudo apt-get remove python-pygments

@majek majek closed this as completed Sep 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant