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/appcfg.py", line 334, in _GetOpener
opener.add_handler(urllib2.HTTPSHandler())
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. ;-)

9 Comments:

Blogger David said...

I was able to solve this problem by forcing my PATH to find Apple's version of Py2.5 I suppose either you could use macports version with the added ssl module, or just use Apple's version which is 2.5.1

10:10 PM  
Blogger kris said...

Thanks, it helped me.

12:12 PM  
Blogger Tony Scelfo said...

This comment has been removed by the author.

8:13 PM  
Blogger scelfo said...

Thanks, it worked for me!

8:14 PM  
Blogger Vasil said...

Thanks for posting this. I've had this problem after switching to MacPorts py2 from MacPython.

9:26 PM  
Blogger dlowe said...

I'm so glad I didn't have to track this down myself. Thanks!

7:46 PM  
Blogger Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.

1:36 PM  
Anonymous Viagra said...

Thank you for sharing this tutorial!

12:03 PM  
Anonymous Elliott Broidy said...

About time.

11:33 AM  

Post a Comment

Links to this post:

Create a Link

<< Home