Bug 2010 - gracefully detect python2 vs python3 issues
gracefully detect python2 vs python3 issues
Status: RESOLVED FIXED
Product: bake
Classification: Unclassified
Component: bake
unspecified
PC Linux
: P5 normal
Assigned To: Daniel Camara
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-15 18:37 UTC by Tom Henderson
Modified: 2014-12-03 17:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.