'undefined symbol error while importing C ++ module
I have a python script that runs another python script and the last script imports a module. It cannot do this and returns the following:
Traceback (most recent call last): File "/some/path/script.py", line 13, in import Autodock as AD File "/some/path/to/module/Autodock.py", line 30, in import BALL File "/usr/lib/pymodules/python2.7/BALL.py", line 1, in from BALLCore import * ImportError: /usr/lib/pymodules/python2.7/BALLCore.so: undefined symbol: _ZN4BALL25FragmentDistanceCollectorclERNS_9CompositeE
However, it loads successfully when I just open the python interpreter and type this:
>>> from BALLCore import *
Other scripts that also run /some/path/to/module/Autodock.py
(which is the script importing the module) succeed. What allows them to successfully import a module from the same module?
I need to excuse myself for not sharing so much code because I have no idea where to look. Any guidance would be appreciated.
+3
source to share
No one has answered this question yet
Check out similar questions: