Bug 2010

Summary: gracefully detect python2 vs python3 issues
Product: bake Reporter: Tom Henderson <tomh>
Component: bakeAssignee: Daniel Camara <daniel.camara>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   

Description Tom Henderson 2014-10-15 18:37:07 UTC
Default to python3 will lead to these problems:
https://groups.google.com/forum/#!topic/ns-3-users/9ctTQAt84Ec

bake should check that /usr/bin/env python version is 2 when it does 'bake show'
Comment 1 Tom Henderson 2014-12-03 17:07:42 UTC
pushed a fix in changeset 332:8c5306f4b658.  It turned out to be necessary to detect this early in the init process due to import errors, rather than trying to detect later in the main method.