Hi all,
I have a new mac with Lion. I just installed the Enthought Python
Distribution (7.2-2 32-bit). I then downloaded the OpenBabel 2.3.1 source.
I compiled things according to the instructions on the wiki:
tar xfz openbabel-2.3.1.tar.gz
mkdir build
cd build
cmake ../openbabel-2.3.1 -DPYTHON_BINDINGS=ON
make
A slight deviation is that I need root to install:
sudo make install
and that it installs into a different location:
/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/
When I fire up python and try to use openbabel, I get the following:
[mglerner@Michaels-MacBook-Air ~/src]$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.2-2 (32-bit)
Python 2.7.2 |EPD 7.2-2 (32-bit)| (default, Sep 7 2011, 09:16:50)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "packages", "demo" or "enthought" for more information.
>>> import openbabel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/openbabel.py",
line 121, in <module>
_openbabel = swig_import_helper()
File
"/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/openbabel.py",
line 117, in swig_import_helper
_mod = imp.load_module('_openbabel', fp, pathname, description)
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/_openbabel.so,
2): Symbol not found: __ZN9OpenBabel8OBPlugin7DisplayERSsPKcS3_
Referenced from:
/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/_openbabel.so
Expected in: dynamic lookup
>>>
I have googled around, but have not found out how to fix this. Any pointers
would be appreciated.
Thanks,
-Michael
--
Michael Lerner
Department of Physics and Astronomy
Earlham College - Drawer 111
801 National Road West
Richmond, IN 47374-4095
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss