Thursday, May 15, 2008

Google App Engine Finally Working under MacPorts

Well, it took some fidgeting but I finally got Google App Engine 1.0.2 SDK working under MacPorts by first uninstalling my previous version of Python 2.5 and then re-installing with the socket-ssl package.

>> sudo port uninstall python25
>> sudo port install python25
---> Activating python25 2.5.1_1+darwin_8
---> Cleaning python25
>> sudo port install py25-socket-ssl
---> Fetching py25-socket-ssl
---> Verifying checksum(s) for py25-socket-ssl
---> Extracting py25-socket-ssl
---> Configuring py25-socket-ssl
---> Building py25-socket-ssl with target build
---> Staging py25-socket-ssl into destroot
---> Installing py25-socket-ssl 2.5.1_0
---> Activating py25-socket-ssl 2.5.1_0
---> Cleaning py25-socket-ssl

Before I installed py25-socket-ssl, I would get the error:

File "/usr/local/google_appengine/google/appengine/tools/", line 334, in _GetOpener
AttributeError: 'module' object has no attribute 'HTTPSHandler'

Hope this helps someone else out there.

Now to actually see if this has been worth all the hassle. ;-)