run.py is about to crash

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install run.py is about to crash

Viewing 3 reply threads
  • Author
    Posts
    • #3393
      Anonymous

        Hi all,

        I’m trying to run all unit test by using test/run.py from /source and get the following:

         

        More than one test to run – enabling mute.

        Identifying platform…

        run.py is about to crash because it could not use SCons to detect your platform.  The most likely reason for this is that you are running it from the wrong directory – it must be run from the rosetta_source directory, not the rosetta_source/test directory, even though it lives in the latter.

        Scons output for command line /usr/bin/python ./scons.py unit_test_platform_only log=platform is:

         

        Then, I tried run.py in the /source/test directory to see what happens, and I get the follow:

         

        $ ./run.py -d ~/Downloads/rosetta_bin_linux_2020.11.61179_bundle/main/database/

        More than one test to run – enabling mute.

        Identifying platform…

        /usr/bin/python: can’t open file ‘./scons.py’: [Errno 2] No such file or directory

        Traceback (most recent call last):

          File “run.py”, line 768, in <module>

            if __name__ == “__main__”: main(sys.argv)

          File “run.py”, line 762, in main

            T.runUnitTests()

          File “run.py”, line 399, in runUnitTests

            self.getPlatformID()

          File “run.py”, line 164, in getPlatformID

            pl = subprocess.check_output(cmd_str, shell=True).decode(‘utf-8’, errors=”backslashreplace”)

          File “/usr/lib/python2.7/subprocess.py”, line 223, in check_output

            raise CalledProcessError(retcode, cmd, output=output)

        subprocess.CalledProcessError: Command ‘/usr/bin/python ./scons.py unit_test_platform_only log=platform’ returned non-zero exit status 2

         

        My system is Ubuntu 18.04.4 LTS, 64-bit, Python 2.7.17, SCons v3.1.2.

        I’m new using Rosetta and still learning linux commands. Thus, any advice will helpful.

        Cheers,

      • #15232
        Anonymous

          Hello,

          Try running this in the source directory instead of the source/test directory! 

          so your command would be:


          python ./test/run.py -d ~/Downloads/rosetta_bin_linux_2020.11.61179_bundle/main/database

           

        • #15233
          Anonymous

            Hi,

            Still the same message appears:

            $ python ./test/run.py -d ~/Downloads/rosetta_bin_linux_2020.11.61179_bundle/main/database/

            More than one test to run – enabling mute.

            Identifying platform…

            run.py is about to crash because it could not use SCons to detect your platform.  The most likely reason for this is that you are running it from the wrong directory – it must be run from the rosetta_source directory, not the rosetta_source/test directory, even though it lives in the latter.

            Scons output for command line /usr/bin/python ./scons.py unit_test_platform_only log=platform is:

             

          • #15234
            Anonymous

              Hi all,

              Problem solved.

              My scons.py was different from original. I fixed this and all unit test worked.

              Thank you all.

              Regards,

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