undefined symbol: _Py_ZeroStruct

Member Site Forums PyRosetta PyRosetta – Build/Install undefined symbol: _Py_ZeroStruct

Viewing 1 reply thread
  • Author
    Posts
    • #3547
      Anonymous

        Hello I installed the pyrosetta 4 for windows but it display the error “undefined symbol: _Py_ZeroStruct” what should I do to fix it?

        Executing test/Workshop9test.py…

        export PYTHONPATH=`pwd` && unset __PYVENV_LAUNCHER__ && ulimit -t 512 && /usr/bin/python3 test/Workshop9test.py

        Traceback (most recent call last):

          File “test/Workshop9test.py”, line 6, in <module>

            import pyrosetta

          File “/mnt/d/users/pyrosetta/pyrosetta/__init__.py”, line 15, in <module>

            import pyrosetta.rosetta as rosetta

        ImportError: /mnt/d/users/pyrosetta/pyrosetta/rosetta.so: undefined symbol: _Py_ZeroStruct

         

         

      • #15724
        Anonymous

          I can’t say for certain, but my guess is that you have a Python version mismatch. Compiled libraries like PyRosetta have to be compiled for a specific version of Python. If you compile it for 3.7, it won’t work on 3.6.  I’m guessing that, for whatever reason, you’re running a PyRosetta compiled with one version of Python with a verison of Python that doesn’t match.

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.