All self-test.py tests fail after installation

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install All self-test.py tests fail after installation

  • This topic has 2 replies, 2 voices, and was last updated 5 years ago by Anonymous.
Viewing 1 reply thread
  • Author
    Posts
    • #3312
      Anonymous

        Hello Rosetta community

        I am trying to install Pyrosetta3.7 in Linux-windows. The installation appears to go without a hitch. But then when I run the self-test.py script, all tests fail. Error messages look like the one below

        Executing test/Workshop9test.py…

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

        Traceback (most recent call last):

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

            import pyrosetta

          File “/home/joell/Pyrosetta3.7/pyrosetta/__init__.py”, line 15, in <module>

            import pyrosetta.rosetta as rosetta

        ImportError: /home/joell/Pyrosetta3.7/pyrosetta/rosetta.so: undefined symbol: PyThread_tss_alloc

        Segmentation fault (core dumped)

        When I open up ipython (Python 3.6.8) and type import pyrosetta, I get the following error message

        Traceback (most recent call last):

          File “<stdin>”, line 1, in <module>

          File “/home/joell/Pyrosetta3.7/pyrosetta/__init__.py”, line 15, in <module>

            import pyrosetta.rosetta as rosetta

        ImportError: /home/joell/Pyrosetta3.7/pyrosetta/rosetta.so: undefined symbol: PyThread_tss_alloc

        Does anyone know what might be going wrong (perhaps the wrong python version)?

        Thank you in advance

        Joel Lapin

      • #15087
        Anonymous

          Which PyRosetta are you trying to install? The current PyRosetta versions are all nominally version 4.x. Are you deliberately trying to install an older version of PyRosetta?

          If by PyRosetta3.7 you mean the version labled with “3.7” on the http://www.pyrosetta.org/dow page, that’s not PyRosetta version 3.7, but instead it’s the current version of PyRosetta for Python 3.7.

          Python packages with compiled code (like PyRosetta is) have to be compiled for the particular version of the Python interpreter it will be used with. So a version compiled for Python3.7 won’t run on a Python 3.6 interpreter. Instead, you should download and install the version compiled for the Python 3.6 interpreter. (Which should also be availible on the http://www.pyrosetta.org/dow page.) — It’s the same version of PyRosetta itself, with all the same features, it’s just compiled in a way that it will interact properly with a Python 3.6 interpreter, rather than a Python 3.7 one.

           

           

          • #15088
            Anonymous

              That was it! I was using a Python 3.6 interpreter for the 3.7 Pyrosetta version. Such a silly mistake by me. I always reflexively download the software with the biggest number. Thanks again, greatly appreciated.

              -Joel

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