You are here

PyRosetta compilation errors: Mac with python 2.6.7 from macports

3 posts / 0 new
Last post
PyRosetta compilation errors: Mac with python 2.6.7 from macports
#1

I've been trying to install PyRosetta on my 64-bit Mac running Snow Leopard (10.6). I'm using the macports version of python (2.6.7) because that version is required for scipy and matplotlib. However, the pre-combiled binaries for PyRosetta do not work for this version of python. I get this error:


Fatal Python error: Interpreter not initialized (version mismatch?)

So instead I tried installing Rosetta by source, which worked fine. But when I try to build PyRosetta, running the BuildBindings.py script, I get the attached errors. I'm not sure, but perhaps there is some macro that's redefined in PyRosetta that's already defined in my version of boost? Note that I do have the python bindings of boost installed.

Thanks for your help.

AttachmentSize
errors.txt13.99 KB
Post Situation: 
Thu, 2011-08-25 15:06
greatm31

After searching around, it seems this problem stems from some incompatibilities between c++ and c headers. One solution seems to be to include Python.h from all the source files...but this is a lot of files to modify. Has anyone seen this problem come up before on OS X Snow Leopard? I'm curious as to how the official PyRosetta binaries were compiled, maybe that could help me.

Mon, 2011-08-29 16:41
greatm31

What version of Python do you use to run official binaries? If it from MacPorts or 3rd parties vendors - it will not work. But it certainly should work with Apple python, just make sure to use Python 2.6 for SnowLeopard and Python2.7 for Lion.

Thu, 2011-09-15 19:47
Sergey