From: Noel O'B. <no...@ca...> - 2005-11-29 16:11:47
|
Dear all, After swapping "_openbabel.so" for "openbabel.so" in setup.py: ----------------------start of diff 7c7 < obExtension = Extension('openbabel', --- > obExtension = Extension('_openbabel', ----------------------end of diff and after setting LD_LIBRARY_PATH to include /usr/local/lib, I still cannot import openbabel: ----------------------quote >>> import openbabel Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: dynamic module does not define init function (initopenbabel) ----------------------unquote However, if I go to openbabel/scripts/python, and import the openbabel.py directly, I have no problems! Can anyone explain this? Regards, Noel |