Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › test unit error cxxtestgen.py TabError: inconsistent use of tabs and spaces in indentation
- This topic has 2 replies, 2 voices, and was last updated 6 years, 12 months ago by Anonymous.
-
AuthorPosts
-
-
January 5, 2018 at 7:21 am #2825Anonymous
Hi,
I sucessufully compiled release and debug libraries and excecutables. However, when I get an error message for test units. This is my log:
/scons.py mode=debug cat=test -j2
scons: Reading SConscript files …
Running versioning script … Done. (0.1 seconds)
Number of option files updated: 0
Total 4123 options.
Finished updating ResidueProperty code — no changes needed
Finished updating VariantType code — no changes needed
scons: done reading SConscript files.
scons: Building targets …
external/cxxtest/cxxtestgen.py –error-printer –root -o build/test/debug/linux/4.14/64/x86/gcc/7.2/default/ObjexxFCL/ObjexxFCL.cxxtest.cpp test/ObjexxFCL/ObjexxFCL.cxxtest.hh
File “external/cxxtest/cxxtestgen.py”, line 463
output.write( ‘ } catch( utility::excn::Exception& excn ) {n’ )
^
TabError: inconsistent use of tabs and spaces in indentation
scons: *** [build/test/debug/linux/4.14/64/x86/gcc/7.2/default/ObjexxFCL/ObjexxFCL.cxxtest.cpp] Error 1
external/cxxtest/cxxtestgen.py –error-printer –root -o build/test/debug/linux/4.14/64/x86/gcc/7.2/default/apps/apps.cxxtest.cpp test/apps/apps.cxxtest.hh
File “external/cxxtest/cxxtestgen.py”, line 463
output.write( ‘ } catch( utility::excn::Exception& excn ) {n’ )
^
TabError: inconsistent use of tabs and spaces in indentation
scons: *** [build/test/debug/linux/4.14/64/x86/gcc/7.2/default/apps/apps.cxxtest.cpp] Error 1
scons: building terminated because of errors.
Any ideas?
thanks
-
January 5, 2018 at 9:20 pm #13977Anonymous
resolved: problem was due to python 3 versus python 2.7 (use the latter)
-
January 5, 2018 at 9:21 pm #13978Anonymous
The problem was due to python version used by cxxtestgen.py. This program works fine with python2.7 but in my OS (Manjaro linux) python3.0 is the default option.
So after adding 2.7 to the /usr/bin/python line every compiled fine!!
/usr/bin/python2.7
thanks anyway
-
-
AuthorPosts
- You must be logged in to reply to this topic.