HI Hari, On Sun, Mar 20, 2011 at 11:51 PM, hari jayaram <hari...@gmail.com> wrote: > Hi , > I upgraded to python 2.7.1 on my OSX Leopard ( 32 bit) running laptop. > I did have the svn version of rdkit running very well on the machine > using the cmake build instructions from > > http://code.google.com/p/rdkit/wiki/BuildingWithCmake > > After the switch I rebuilt rdkit with pointers to the new python. > > cmake -D > PYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/2.7/bin/python > > > However after the cmake build I am getting a crash and message . > "Fatal Python error: Interpreter not initialized (version mismatch)" > This happens when I try a > import rdkit ----works fine > from rdkit import Chem ---immediately crashes python REPL and gives me > the error message > > I also rebuild boost after the switch to python 2.7 by running a > bootstrap and bjam install as detailed in the instructions > (http://code.google.com/p/rdkit/wiki/BuildingWithCmake) > but the crash and error persists. > > Any pointers on why the python commandline throws such a fit with an > import of rdkit.Chem and terminates after the switch to 2.7.1
It could be that cmake chose the wrong python libraries to link against. Try doing: grep PYTHON_LIBRARY CMakeCache.txt in your build dir. If what you see isn't what you expect (i.e. if it's still using the system python), then rerun cmake using "-D PYTHON_LIBRARY=/usr/lib/python2.7/config/libpython2.7.a" (or whatever the path is) You might also need to provide "-D PYTHON_INCLUDE_DIR=/usr/include/python2.7" (again, or whatever the path is) Best regards, -greg ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss