5
votes

I’m new to Python and I’m currently following the Head First Python book. I’m trying to put an example exercise to work but I’m stuck with an error from the GAE. I installed both Python 2.5 and GAE on my Kubuntu 10.10 S.O.

First I create a folder named “mygaetest” with the files sayhello.py and app.yaml inside. Because there is no graphical front end for Linux, I start my GAE webapp from the command line this way:

python2.5 google_appengine/dev_appserver.py home/lucas/workspace/Python/Chapter10/src/mygaetest/

But then the following error is shown:

Traceback (most recent call last):

File "google_appengine/dev_appserver.py", line 78, in

run_file(__file__, globals())

File "google_appengine/dev_appserver.py", line 74, in run_file

execfile(script_path, globals_)

File "/home/lucas/Desarrollo/Python/App

Engine/google_appengine/google/appengine/tools/dev_appserver_main.py", line 118, in

from google.appengine.tools import appcfg

File "/home/lucas/Desarrollo/Python/App

Engine/google_appengine/google/appengine/tools/appcfg.py", line 68, in

from google.appengine.tools import appengine_rpc

File "/home/lucas/Desarrollo/Python/App

Engine/google_appengine/google/appengine/tools/appengine_rpc.py", line 27, in

import fancy_urllib

File "/home/lucas/Desarrollo/Python/App

Engine/google_appengine/lib/fancy_urllib/fancy_urllib/init.py", line 341, in

class FancyHTTPSHandler(urllib2.HTTPSHandler):

AttributeError: 'module' object has no attribute 'HTTPSHandler'

Can someone tell me what to do in order to solve that error?

Many thanks in advance.

3

3 Answers

3
votes

Welcome to Python, App Engine, and Stack Overflow!

Your Python installation apparently lacks SSL support. To add support, install this.

http://code.google.com/p/googleappengine/issues/detail?id=19

0
votes

I received this error after upgrading Mac OSX to 10.10 (Yosemite), I needed the new build of python 2.7:

$ brew update && brew upgrade python
==> Upgrading 1 outdated package, with result:
python 2.7.8_2
==> Upgrading python
...
==> Summary
/usr/local/Cellar/python/2.7.8_2: 4777 files, 76M
-1
votes

I am using Python 2.7 and I used the following instructions to solve the problem: http://paltman.com/2007/11/15/getting-ssl-support-in-python-251/