Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I get this error when running just after installing GAE on Ubuntu 2011.04:

Traceback (most recent call last):
  File "", line 77, in <module>
    run_file(__file__, globals())
  File "", line 73, in run_file
    execfile(script_path, globals_)
  File "/home/nico/p/appengine-python-1.5.3/google/appengine/tools/", line 156, in <module>
    from import dev_appserver
  File "/home/nico/p/appengine-python-1.5.3/google/appengine/tools/", line 94, in <module>
    import zlib
ImportError: No module named zlib

Any idea what's going wrong?

Installing was a bit tricky because GAE only supports Python 2.5:

  • Download the latest Python 2.5.*
  • ./configure --with-zlib (I also tried without the with-zlib option, same result)
  • If you have /usr/include/sqlite3.h then remove it because GAE does not compile if present
  • make
share|improve this question

Ubuntu 11.04 comes with python 2.6 as the default version. It is suggested to use Google app engine with version 2.5. I am using it though for many years with python 2.6 without any issues.

What you need to do in order to execute it smoothly with python 2.6 is to edit google/appengine/tools/ and add these three lines


after 'XOR', and before '_Crypto_Cipher__AES', around line ~1350.

share|improve this answer
It worked also with Python 2.7 which is the default for Ubuntu 10.04 Natty Narwhal – Jader Dias Sep 2 '11 at 20:38

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.