Wednesday, December 9, 2009

mod_wsgi on OSX

The problem: mod_wsgi built fine but:

$ apachectl configtest
httpd: Syntax error on line 118 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/ into server: dlopen(/usr/libexec/apache2/, 10
): Symbol not found: _PyExc_RuntimeError\n Referenced from: /usr/libexec/apache2/\n Expected in: dynamic lookup\n

After following along with InstallationOnMacOSX I latterly found this comment on his own post by Tom Giddens to get mod_wsgi to work with apache. I actually went with this method to achieve the same goal. Thanks all.

Monday, August 10, 2009

Some python notes on Leopard 10.5

Thanks again to Ian Bicking:

lxml: an underappreciated web scraping library

$ STATIC_DEPS=true easy_install 'lxml>=2.2alpha1'

Truly most appreciated.

Sunday, April 19, 2009

A Life Stream

Version II of my life stream effort is acting now as my home page. The first version was using FriendFeed but in this version my server side code is directly requesting the feeds from google, twitter and delicious.

The earlier version used a jsonrpc library but I'm now using to provide the services.

Thursday, April 2, 2009

Compiling mod_python on OSX

Source distribution of mod_python (3.3.1) didn't compile on my iMac, but that from the repository did:

svn co mod_python_src
cd mod_python_src
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/local/Python/Python-2.5.2/bin/python2.5
sudo make install

Note that I have built both apache2 and python2.5 from source on my system.