Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
    
it gives error(7): cannot find or open file: *.g – Hector Apr 10 '15 at 13:51

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.