the error message contains references to python 2.3. Make sure that you're using Python 2.4, not 2.3.
Either invoke Python 2.4 explicitly as "python2.4", or re-link the symlink /usr/bin/python to python 2.4.