You are here

undefined symbol: _Py_ZeroStruct

2 posts / 0 new
Last post
undefined symbol: _Py_ZeroStruct

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/
export PYTHONPATH=`pwd` && unset __PYVENV_LAUNCHER__ && ulimit -t 512 && /usr/bin/python3 test/
Traceback (most recent call last):
  File "test/", line 6, in <module>
    import pyrosetta
  File "/mnt/d/users/pyrosetta/pyrosetta/", line 15, in <module>
    import pyrosetta.rosetta as rosetta
ImportError: /mnt/d/users/pyrosetta/pyrosetta/ undefined symbol: _Py_ZeroStruct



pyrosetta self-test.jpg105.21 KB
Post Situation: 
Thu, 2020-08-20 13:56

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.

Tue, 2021-02-09 09:02