Bug 2850

Summary: external modules defining `min_version` lead to bake crashing when using Python 3
Product: bake Reporter: Mathias Ettinger <mettinger>
Component: bakeAssignee: Daniel Camara <daniel.camara>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, tomh
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: Patch that solved the issue

Description Mathias Ettinger 2018-01-12 04:49:36 UTC
Created attachment 2999 [details]
Patch that solved the issue

When using an external XML file in the `contrib` folder of Bake, if this file defines a module using `min_version` (e.g. min_version="ns-3.26") then running configure lead to an error:

    $ python3 bake.py configure -e ns-3.27 -e sns3-satellite

    '<=' not supported between instances of 'str' and 'NoneType'

Please find attached a patch that resolved this issue for me and let me install and build both NS-3 and the SNS-3 external module.
Comment 1 Tom Henderson 2018-01-12 14:24:01 UTC
+1; moving to last call
Comment 2 Tom Henderson 2018-03-05 23:55:14 UTC
fixed in changeset 394:6dfa00ee748f