test unit error cxxtestgen.py TabError: inconsistent use of tabs and spaces in indentation

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install test unit error cxxtestgen.py TabError: inconsistent use of tabs and spaces in indentation

Viewing 2 reply threads
  • Author
    Posts
    • #2825
      Anonymous

        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

         

      • #13977
        Anonymous

          resolved: problem was due to python 3 versus python 2.7 (use the latter)

        • #13978
          Anonymous

            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

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