Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › run.py is about to crash
- This topic has 3 replies, 2 voices, and was last updated 4 years, 8 months ago by Anonymous.
-
AuthorPosts
-
-
April 11, 2020 at 1:58 am #3393Anonymous
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,
-
April 11, 2020 at 2:10 am #15232Anonymous
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
-
April 11, 2020 at 3:26 am #15233Anonymous
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:
-
April 11, 2020 at 7:03 pm #15234Anonymous
Hi all,
Problem solved.
My scons.py was different from original. I fixed this and all unit test worked.
Thank you all.
Regards,
-
-
AuthorPosts
- You must be logged in to reply to this topic.