Run script with python version 2.3?

josephox

Registered
Have a script on my server which was working fine before I upgraded to leopard, now there are some warnings:
RuntimeWarning: Python C API version mismatch for module rand: This Python has API version 1013, module rand has version 1012.
import rand, crypto, SSL, tsafe
Then an error about an 'int' object not having the attribute '__name__'

I can see that version 2.3 is installed as well as 2.5, wondering is there anyway that I can direct the script to run on the 2.3 framework?

Tried setting a link to 2.3 but that didn't seem to work.

Thanks,
Joseph
 
Copied 2.3 from old version of os x into ../Versions/2.3/bin/. Set pointer from /usr/bin/ and ran the script from that. Works fine.
 
Back
Top