I am having a python .so file which works fine with python v2.4.3 , but I dont have the source code of that library file. Now It fails to work in python 2.6.5. Is it possible to open the .so file and recompile it in python 2.6.5 ?? I dont know whether it is possible, I am just curious . Thanks ! 
The error I get 

Traceback (most recent call last):
File "run.py", line 1, in 
import MarkovPrediction
File "/home/ssubbiah/markov_prediction/vmresource/MarkovPrediction.py", line 7, in 
import libmarkov
ImportError: /home/ssubbiah/markov_prediction/vmresource/libmarkov.so: undefined symbol: _ZN5boost6python9converter8registry6insertEPFPvP7_objectEPFvS5_PNS1_30rvalue_from_python_stage1_dataEENS0_9type_infoE


Sethu
A .so file (.pyd on Windows) is a module which was written in C. It's compiled for, and tied to, a specific version of Python, in this case Python 2.4.x.
If you want it to work with a different version of Python, you'll need to re-compile the original source code for that version.
Finding out what is inside a python library file