
I thought that this would be simple, but after following what I thought were the necessary steps, I got this error:
File "build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py", line 19, in ImportError: dynamic module does not define init function (init_mysql)
Some googling says that in order to address this I would have to recompile some stuff with different lags, but these pages prove to be badly researched and incorrect - although that MIGHT fix the problem.
Apparently, this error is caused by pieces of python/mysql being of different architectures (i.e. 32 bit vs 64 bit)... To get python and mysql working WITHOUT recompiling, this is what I did (my OSX system has python 64-bit installed, so I decided to start working with that assumption)..
$ cat ~/.bashrc export PATH=/usr/local/mysql-5.1.42-osx10.5-x86_64/bin:$PATH
And.. that's it. Everything should work!