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
---> 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. ;-)
---> 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. ;-)
8 Comments:
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
Thanks, it helped me.
This comment has been removed by the author.
Thanks, it worked for me!
Thanks for posting this. I've had this problem after switching to MacPorts py2 from MacPython.
I'm so glad I didn't have to track this down myself. Thanks!
Thank you for sharing this tutorial!
About time.
Post a Comment
<< Home