Search code examples
pythonyaccpycparser

Can't run pycparser: Needs ply.yacc?


I downloaded pycparser and ran python setup.py install, but whenever I try to run anything, I get:

...
    from .c_parser import CParser
  File "C:\Program Files\Python 3.2\lib\site-packages\pycparser\c_parser.py", line 11, in <module>
    import ply.yacc
ImportError: No module named ply.yacc

What's wrong? I'm pretty sure I followed the Readme exactly...


Solution

  • Looks like it depends on ply. Download and install, and you should be fine.