I am working on generating python wrappers using SWIG tool. When I try to run the code, I am getting error -
Traceback (most recent call last):
File “pbs_statnode.py”, line 1, in
from pbs import pbs_connect, pbs_stathost, pbs_statvnode
File “/xxxxx/pbs.py”, line 26, in
_pbs = swig_import_helper()
File “/xxxxx/pbs.py”, line 22, in swig_import_helper
_mod = imp.load_module(’_pbs’, fp, pathname, description)
ImportError: /xxxxx/_pbs.so: undefined symbol: pbs_geterrmsg
Both - pbs.py and pbs.so files are autogenerated files after using the swig tool.
Is anyone working on SWIG? Need help!