PyRosetta compilation errors: Mac with python 2.6.7 from macports

Member Site Forums PyRosetta PyRosetta – Build/Install PyRosetta compilation errors: Mac with python 2.6.7 from macports

Viewing 2 reply threads
  • Author
    Posts
    • #1012
      Anonymous

        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.

      • #6000
        Anonymous

          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.

        • #6046
          Anonymous

            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.

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.