SUMO Trace Generation using traceExporter.py

772 views
Skip to first unread message

Urvik Upadhyay

unread,
Jan 22, 2014, 5:01:55 PM1/22/14
to ns-3-...@googlegroups.com
Hello. I'm trying to convert the quck.xml file generated using --fcd-output but in the process, I'm getting some strange errors after executing the following command.

sumo-0.17.1/tools/bin$ ./traceExporter.py --fcd-input quick.xml --ns2mobilityoutput ns2mob.tcl

Output:

Traceback (most recent call last):
  File "./traceExporter.py", line 25, in <module>
    import sumolib.net
  File "./../../tools/sumolib/__init__.py", line 23, in <module>
    from . import net, shapes, output, files, sensors, color, geomhelper, miscutils, options, route
ImportError: cannot import name route

Can anyone please tell me what exactly is the problem here and how to correct it??

Urvik Upadhyay

unread,
Jan 22, 2014, 5:41:23 PM1/22/14
to ns-3-...@googlegroups.com
Do these errors have anything to do with python? I googled these errors but I'm not getting any useful info.

Konstantinos

unread,
Jan 23, 2014, 5:09:13 AM1/23/14
to ns-3-...@googlegroups.com
Hi Urvik,

I think you have mixed the mailing lists. This is the NS-3-USER mailing list.
You want to ask the sumo-user (sumo-user [AT] lists.sourceforge.net)

陳冠全

unread,
Sep 18, 2014, 4:28:26 AM9/18/14
to ns-3-...@googlegroups.com

chenguanquandeMacBook-Pro:sumo-0.21.0 chickdcing$ traceExporter.py -–fcd-input=hellotrace.xml -–ns2mobility-output=mobhello.tcl

-bash: traceExporter.py: command not found

i have no idea QQ


Urvik Upadhyay於 2014年1月23日星期四UTC+8上午6時01分55秒寫道:

Konstantinos

unread,
Sep 18, 2014, 4:42:22 AM9/18/14
to ns-3-...@googlegroups.com
Please do not spam the list asking the same questions.
In your previous question, you asked how you can use SUMO trace files, and you found it by yourself. Great.

Now you get an error that the traceExporter.py tool you need to use is not in the sumo "base" folder.
Search a little bit. It could be in another folder within sumo. 

陳冠全

unread,
Sep 18, 2014, 4:53:57 AM9/18/14
to ns-3-...@googlegroups.com
sorry this is my first time using this platform
i have no idea about what you mean 
i change the folder in to the file which i named hello.sumo.cfg
But i use command line traceExporter.py in order to get ns2mobility tcl file
however terminal tells me command not found


Konstantinos於 2014年9月18日星期四UTC+8下午4時42分22秒寫道:

Tommaso Pecorella

unread,
Sep 18, 2014, 4:56:12 AM9/18/14
to ns-3-...@googlegroups.com
He's missing a "./" in front of the "traceExporter.py" command. Most probably it should be "./traceExporter.py".

And please, PLEASE. Before QQ'ing, read the ***** manual. In this case the command line ***** manual. Otherwise the next thing you'll ask is why you can't execute a script that doesn't have the executable bit set.
Thanks,

T.
Reply all
Reply to author
Forward
0 new messages