Hello Chirag, What version of OpenBabel are you using? Did you compile and install it yourself?
Can you verify that you only have a single version of OpenBabel on your system and that all of the files, openbabel.py, _openbabel.so, and so forth come from that version? The usual problem is that there is a mixup between different versions due to incorrectly set environment variables. - Noel (please cc to list) On 2 April 2010 23:42, Chirag Patel <[email protected]> wrote: > Hello, > I am having trouble using the python bindings. I am using max OS 10.6.2 and > python 2.6.1: > > Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import openbabel > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Python/2.6/site-packages/openbabel.py", line 36, in <module> > _openbabel = swig_import_helper() > File "/Library/Python/2.6/site-packages/openbabel.py", line 35, in > swig_import_helper > return _mod > UnboundLocalError: local variable '_mod' referenced before assignment > >>>> import _openbabel > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: dlopen(/Library/Python/2.6/site-packages/_openbabel.so, 2): > Symbol not found: __ZN9OpenBabel10obErrorLogE > Referenced from: /Library/Python/2.6/site-packages/_openbabel.so > Expected in: flat namespace > in /Library/Python/2.6/site-packages/_openbabel.so > > > any ideas? I apologize if this is a repeat issue and I googled around to no > avail... > > > Chirag > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > OpenBabel-scripting mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ OpenBabel-scripting mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-scripting
