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 |
From: Jurgens de B. <deb...@gm...> - 2011-02-17 09:27:59
|
Hi I get the following error after installing openbabel: >>> import openbabel Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/site-packages/openbabel.py", line 91, in <module> _openbabel = swig_import_helper() File "/usr/local/lib/python2.6/site-packages/openbabel.py", line 87, in swig_import_helper _mod = imp.load_module('_openbabel', fp, pathname, description) ImportError: /usr/local/lib/python2.6/site-packages/_openbabel.so: undefined symbol: _ZTVN9OpenBabel22OBEnergyConformerScoreE Can anyone please help me... -- Regards/Groete/Mit freundlichen Grüßen/recuerdos/meilleures salutations/ distinti saluti/siong/duì yú/привет Jurgens de Bruin |
From: Noel O'B. <bao...@gm...> - 2011-02-17 17:46:52
|
You need to compile with Eigen2 as described in the docs. - Noel On 17 February 2011 09:27, Jurgens de Bruin <deb...@gm...> wrote: > Hi > > I get the following error after installing openbabel: > >>>> import openbabel > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.6/site-packages/openbabel.py", line 91, > in <module> > _openbabel = swig_import_helper() > File "/usr/local/lib/python2.6/site-packages/openbabel.py", line 87, > in swig_import_helper > _mod = imp.load_module('_openbabel', fp, pathname, description) > ImportError: /usr/local/lib/python2.6/site-packages/_openbabel.so: > undefined symbol: _ZTVN9OpenBabel22OBEnergyConformerScoreE > > Can anyone please help me... > > -- > Regards/Groete/Mit freundlichen Grüßen/recuerdos/meilleures salutations/ > distinti saluti/siong/duì yú/привет > > Jurgens de Bruin > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > |
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 > |