Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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
java -classpath "antlr-3.1.2.jar" org.antlr.Tool *.g
share|improve this answer
it gives error(7): cannot find or open file: *.g – Hector Apr 10 at 13:51

Your Answer


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.