Hi Michael,

You can find better instructions at
http://openbabel.org/docs/2.3.1/Installation/install.html#compiling-open-babel.
In particular, Eigen2 is required for the bindings.

Also you are going to have conflicts between the different Pythons on
your Mac, so you need to check what Cmake has detected using
grep -i python build\CMakeCache.txt
You should ensure that all of the references to Python are to the same
Python. You can either edit CMakeCache.txt directly, or else use
-DPYHON_EXECUTABLE=whereever, etc. as an argument to CMake.

- Noel

On 28 February 2012 23:44, Michael Lerner <mgler...@gmail.com> wrote:
> 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
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to