Laran Evans
I develop software people love to use.
  • Home
  • About
  • Contact
  • Resume
  • Testimonials
Skip to content
  • Entrepreneurship
    • Leadership
    • Project Management
    • Team Development
    • Time Management
  • Puzzles
  • Software Architecture
    • Cloud Computing
  • Software Development
    • Algorithms
    • CSS
    • Java
    • Javascript
    • MySQL
    • PHP
    • Python
    • Ruby and Rails
    • System Administration
« Getting Started With Django 1.0 on Google AppEngine
Modeling Relationships with Google AppEngine »

Resolve “ImportError: No module named antlr3″

By laran | Published: 2009/03/20

I had this problem last night after installing Google AppEngine on Leopard:

lc278:laranevans laran$ python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 18, in 
    InstallAppengineHelperForDjango()
  File "/Users/laran/Workspace/laranevans/appengine_django/__init__.py", line 440, in InstallAppengineHelperForDjango
    InstallAppengineDatabaseBackend()
  File "/Users/laran/Workspace/laranevans/appengine_django/__init__.py", line 175, in InstallAppengineDatabaseBackend
    PatchTestDBCreationFunctions()
  File "/Users/laran/Workspace/laranevans/appengine_django/__init__.py", line 188, in PatchTestDBCreationFunctions
    from django.test import utils
  File "/usr/local/google_appengine/lib/django/django/test/__init__.py", line 6, in 
    from django.test.testcases import TestCase
  File "/usr/local/google_appengine/lib/django/django/test/testcases.py", line 2, in 
    from django.db import transaction
  File "/usr/local/google_appengine/lib/django/django/db/__init__.py", line 30, in 
    connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS)
  File "/Users/laran/Workspace/laranevans/appengine_django/db/base.py", line 123, in __init__
    self._setup_stubs()
  File "/Users/laran/Workspace/laranevans/appengine_django/db/base.py", line 134, in _setup_stubs
    from google.appengine.tools import dev_appserver_main
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 465, in 
    SetGlobals()
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 81, in SetGlobals
    from google.appengine.tools import appcfg
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 48, in 
    from google.appengine.cron import groctimespecification
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/cron/groctimespecification.py", line 43, in 
    import groc
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/cron/groc.py", line 24, in 
    import antlr3
ImportError: No module named antlr3
lc278:laranevans laran$

I resolved this by downloading the appropriate antlr3 package and using easy_install to install that package. After doing that AppEngine started up with not trouble at all.

This entry was posted in Python and tagged app-engine, google. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
« Getting Started With Django 1.0 on Google AppEngine
Modeling Relationships with Google AppEngine »

One Comment

  1. Chris
    Posted 2009/04/16 at 8:21 PM | Permalink

    Google’s App Engine SDK includes Antlr, so you shouldn’t need to install it. The problem was mostly likely caused by ~/google_appengine/lib not being in your path.

Post a Comment

Click here to cancel reply.

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • About Me

    I've got a masters degree in computer science and over 10 years of experience building web-based systems using Java/J2EE, Ruby, Rails and PHP. I'm a strong believer in the effectiveness of Agile Methods. Read more »

  • Subscribe

  • Similar Posts
    • Getting Started With Django 1.0 on Google AppEngine
    • Djammin' with Django
    • Modeling Relationships with Google AppEngine
    • Learning Python: Hour 1
    • Quantum Leap Forward: Accelerating the Browser in Hardware
Hello world
  • From Around the Web

    • Chopper Girl @ The 2010 Brass Balls Long Road Party (Uploads from BRASS BALLS BOBBERS)
    • Web App Business Models: User Needs and What People Pay For (Box UK Blog)
    • Blog Writing Tips from the World’s Most Famous Authors (Blogsessive.com)
    • How to get exponential success on your blog (CatsWhoBlog.com)
    • The Four Stages of Growing a Blog (Daily Blog Tips)
    Shared Items
  • Recent Posts

    • 80 pages of Ruby on Rails Performance Optimization Tips
    • Ruby Garbage Collection In-Depth
    • Binary Logic Basics
    • Kuali in Nacubo Magazine
    • Ruby Blocks, Procs, Lambda
  • Older Posts By Month

    Let's Talk

    Ask a question below. You'll be prompted for your name and email after you click the "Ask" button.

Know more. Accomplish more. Succeed.