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
Extension modules need to be compiled for a specific version of Python. Without the source code, no, you can’t use it for a different version.