Steps: git clone https://github.com/albertz/PyCParser.git cd PyCParser mkvirtualenv -p python2.7 -r ./requirements.txt pycparser ./runcprog.py ./demos/test_interpreter.c Result: EXCEPTION Traceback (most recent call last): File "./runcprog.py", line 56, in <module> line: from cparser import State, parse locals: cparser = <not found> State = <not found> parse = <not found> File "/home/roba/work/github/PyCParser/cparser.py", line 14, in <module> line: from .cparser_utils import unicode, long, unichr locals: from = <not found> from.cparser_utils = <not found> unicode = <builtin> <type 'unicode'> long = <builtin> <type 'long'> unichr = <builtin> <built-in function unichr> ValueError: Attempted relative import in non-package Is there something to do before trying to use the runcprog.py script ?
Activity