On Mon, Aug 30, 2010 at 9:20 AM, Noel O'Boyle <baoille...@gmail.com> wrote: > Hi, > > It is a (dumb) feature of cmake's FindPython that it choose the > highest version of Python it can find on your computer, instead of > using the first one on the path, which leads to these types of > problems. > > If you "grep -i python CMakeCache.txt", you'll see a number of > variables associated with python, e.g. PYTHON_EXECUTABLE, > PYTHON_INCLUDE_PATH, PYTHON_LIBRARY. You can set these at the > command-line with -Dvariable_name=value.
Thanks, that fixed it. But when I try to import openbabel in Python I still get >>> import openbabel Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.5/site-packages/openbabel.py", line 14, in <module> import _openbabel ImportError: dlopen(/Library/Python/2.5/site-packages/_openbabel.so, 2): Library not loaded: /usr/local/lib/libopenbabel.3.dylib Referenced from: /Library/Python/2.5/site-packages/_openbabel.so Reason: image not found It turns out that I have v4 of the dylibs gu...@office:~/src/openbabel $ find /usr/local -name "libopenbabel*" /usr/local/openbabel/lib/libopenbabel.4.0.0.dylib /usr/local/openbabel/lib/libopenbabel.4.dylib /usr/local/openbabel/lib/libopenbabel.dylib generating a symlink to satisfy the error doesn't help - I get a missing symbol error Maybe something needs to be updated somewhere? -- Rajarshi Guha NIH Chemical Genomics Center ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss