Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If you are getting "Import error: No module named antlr3" while running python application. For example, KeyboardLayoutEditor, Django apps.

share|improve this question

1 Answer 1

up vote 0 down vote accepted
sudo apt-get install python-setuptools
pip install http://www.antlr3.org/download/Python/antlr_python_runtime-3.1.2.tar.gz
wget http://www.antlr3.org/download/antlr-3.1.2.jar
java -classpath "antlr-3.1.2.jar" org.antlr.Tool *.g
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.