I reference the same exact Python version that Sage uses from the sage/local/lib directory.
I tell python to pretend it's argv consists of a string with the full path to the sage binary in /local/bin.
I set the python home directory to /local.
Here's the error I get:
dlopen(/Library/WebServer/mod_sage/sage-6.1.1/local/lib/python2.7/lib-dynload/operator.so, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString Referenced from: /Library/WebServer/mod_sage/sage-6.1.1/local/lib/python2.7/lib-dynload/operator.so Expected in: flat namespace in /Library/WebServer/mod_sage/sage-6.1.1/local/lib/python2.7/lib-dynload/operator.so
Can you guys tell me what I'm doing wrong?