The problem is that fink never sets a variable LD_LIBRARY_PATH. ctypesuses dlopen()which by default will not search in /sw/lib. On the dlopenman page :
dlopen() Mach-O . , -- , . LD_LIBRARY_PATH, DYLD_LIBRARY_PATH DYLD_FALLBACK_LIBRARY_PATH. ables . DYLD_FALL- BACK_LIBRARY_PATH - $HOME/lib;/usr/local/lib;/usr/lib. dlopen() , .
, , , , .profile, .bash_profile .bashrc
export LD_LIBRARY_PATH=/sw/lib:"${LD_LIBRARY_PATH}"
, fink /sw/lib, /sw/lib/mysql. , , dlopen() LD_LIBRARY_PATH. MySQL , :
export LD_LIBRARY_PATH=/sw/lib:/sw/lib/mysql:"${LD_LIBRARY_PATH}"