From: S J. S. <swa...@gm...> - 2005-11-29 21:34:14
|
You are getting the error because you still have openbabel.so in your search path. so files have precidence over .py files. Josh On 29/11/05, Noel O'Boyle <no...@ca...> wrote: > Dear all, > > After swapping "_openbabel.so" for "openbabel.so" in setup.py: > ----------------------start of diff > 7c7 > < obExtension =3D Extension('openbabel', > --- > > obExtension =3D 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 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > |