You are here

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

3 posts / 0 new
Last post
test unit error cxxtestgen.py TabError: inconsistent use of tabs and spaces in indentation
#1

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

 

Category: 
Post Situation: 
Thu, 2018-01-04 23:21
chemaniac

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

Fri, 2018-01-05 13:20
smlewis

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

Fri, 2018-01-05 13:21
chemaniac