[Ns-developers] Integration tool for ns-3
gjcarneiro at gmail.com
Tue Mar 13 09:17:27 PDT 2012
On Tue, Mar 13, 2012 at 16:47, Daniel Camara <daniel.camara at inria.fr> wrote:
> Hi Gustavo,
> I guess the problem is that you configure it with one file
> >gjc at gjc-laptiop:bake$ python bake.py -f nsfile.xml configure -c
> bakeconf.xml -e ns-3-dev
> and tried to download with another
> >gjc at gjc-laptop:bake$ python bake.py -f bakeconf.xml download/home/gjc/projects/ns/bake/bake/Bake.py:679:
> isn't that?
> it should be:
> > gjc at gjc-laptiop:bake$ python bake.py -f nsfile.xml download
> About the errors, I agree with you, but to be honest we are still in a
> "development" phase... and for now the traces still help us to find the
> errors :).
I would have thought that full stack trace, given by default by python, is
more ugly but a lot more useful to fix the errors that may occur...
Anyway, I guess bake.py needs usability improvements. I simply don't "get
I would recommend that the work flow "bake configure ; bake download ; bake
build" just works by default without special command-line options like -f.
Or at least, allow giving the -f option only once (in bake configure) and
then it remembers the configuration for the other commands.
Anyway, it looks promising. Thanks.
> Best regards...
> *De: *"Gustavo Carneiro" <gjcarneiro at gmail.com>
> *À: *"Daniel Camara" <daniel.camara at inria.fr>
> *Envoyé: *Mardi 13 Mars 2012 15:54:25
> *Objet: *Re: [Ns-developers] Integration tool for ns-3
> I was trying it, and I get an error:
> gjc at gjc-laptiop:bake$ python bake.py -f nsfile.xml configure -c
> bakeconf.xml -e ns-3-dev
> gjc at gjc-laptop:bake$ python bake.py -f bakeconf.xml
> download/home/gjc/projects/ns/bake/bake/Bake.py:679: DeprecationWarning:
> BaseException.message has been deprecated as of Python 2.6
> print e.message
> 'NoneType' object has no attribute 'startswith'
> Printing the exception and not the full stack is bad: you get no sense on
> what piece of code is causing the error. This is partially the "error
> hiding" anti-pattern. Instead of printing the error, it's better to simply
> not catch the exception, by default.
> Fixing the error-hiding, I get this:
> gjc at gjc-laptop:bake$ python bake.py -f bakeconf.xml download
> Traceback (most recent call last):
> File "bake.py", line 8, in <module>
> File "/home/gjc/projects/ns/bake/bake/Bake.py", line 676, in main
> function(config=options.config_file, args=args_left[1:])
> File "/home/gjc/projects/ns/bake/bake/Bake.py", line 447, in _download
> self._check_source_version(config, options)
> File "/home/gjc/projects/ns/bake/bake/Bake.py", line 476, in
> self._do_operation(config, options, _do_check)
> File "/home/gjc/projects/ns/bake/bake/Bake.py", line 395, in
> File "/home/gjc/projects/ns/bake/bake/Configuration.py", line 394, in
> return self._compute_path(self._installdir)
> File "/home/gjc/projects/ns/bake/bake/Configuration.py", line 384, in
> if os.path.isabs(p):
> File "/usr/lib/python2.7/posixpath.py", line 53, in isabs
> return s.startswith('/')
> AttributeError: 'NoneType' object has no attribute 'startswith'
> Sounds like self._installdir is None. I was only following the
> instructions in the web site...
> On Tue, Mar 13, 2012 at 09:57, Daniel Camara <daniel.camara at inria.fr>wrote:
>> A Tom Henderson and a few of us at INRIA, have been working on the next
>> steps towards the ns-3 app store concept that we have discussed at the past
>> few developers' meetings. We'd like to spend some time at the meeting to
>> review the recent progress and discuss the long-term goal and short-term
>> priorities/schedule on these topics:
>> - typical use cases from an ns-3 user and also ns-3 model provider
>> - the bake build tool
>> - metadata about each module, for users to understand the maintenance
>> status, version compatibility, etc. of each module
>> - the concept and working prototype for the app store infrastructure
>> For those who want to read more about this ahead of the meeting, please
>> visit: http://www-sop.inria.fr/members/Daniel.Camara/bake/
>> Best regards...
>> Daniel Camara
> Gustavo J. A. M. Carneiro
> INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
> "The universe is always one step beyond logic." -- Frank Herbert
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers