importError: No module named ×××
caused by path problems,
点击打开链接1 stack overflow(this worked)
点击打开链接2 csdn
here are my solution,
add a line in the ipdl.py
sys.path.append(os.path.join(os.path.dirname(__file__), '../../python/mozbuild/'))
and another line in the parser.py
sys.path.append(os.path.join(os.path.dirname(__file__), '../../../other-licenses/ply'))
and the importError fixed.
the method of add a sys.path in terminal :
http://www.cnblogs.com/cj2014/p/3867894.html(
python和linux的环境设置/PATH
)