2 Dec 2008

If you have Google App Engine installed via the official Mac launcher, and you also have Python installed under Macports, you might forget and try to run your app server via the Macports Python. This results in the following error:

'module' object has no attribute 'HTTPSHandler'

Simply change your environment to use the system Python with python_select python25-apple and issue the ./manage.py runserver command to kick things off again.

Add Your Comment

Spam Protection by WP-SpamFree

Macports Python Google App Engine Gotcha

  1. ..or just install the socket-ssl module:

    sudo port install py25-socket-ssl

    Peter Hough
  2. @Peter: Awesome pointer. I had this problem and your tip fixed it right up.

    Matthew Leingang
  3. Actually, both the OP and the comment helped. Thanks!

    Matthew Leingang