<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><base href="x-msg://194/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The ./run.py command without any options will just attempt to build graph based on data obtained from previous simulations.</div><div>To actually run simulations and then build graph, just add -s option, like this</div><div><br></div><div>./run.py -s figure-3-data-propagation-vs-time</div><div><br></div>---<div>Alex</div><div><br><div><div>On Apr 19, 2013, at 2:36 AM, "cheewii126@gmail" <<a href="mailto:cheewii126@gmail.com">cheewii126@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: 微软雅黑; color: rgb(0, 0, 128); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hi Alex,</div><div> </div><div><div>After sloving the previous problems, I encounter a new error as follows:</div><div></div><div></div><div><div>root@ubuntu:/home/sally/ndnSIM/ndnSIM-nom-rapid-car2car# ./run.py figure-3-data-propagation-vs-time</div><div>Building graphs for the following scenarios: figure-3-data-propagation-vs-time</div><div style="font-style: italic; font-weight: bold; ">Error in bzfile(input, "r") : cannot open the connection</div><div style="font-style: italic; font-weight: bold; ">Calls: read.table -> bzfile</div><div style="font-style: italic; font-weight: bold; ">In addition: Warning message:</div><div style="font-style: italic; font-weight: bold; ">In bzfile(input, "r") :</div><div style="font-style: italic; font-weight: bold; ">cannot open bzip2-ed file 'results/figure-3-data-propagation-vs-time/car-relay-jump-distance.txt.bz2', probable reason 'No such file or directory'</div><div>Execution halted</div><div><a href="mailto:root@ubuntu:/home/sally/ndnSIM/ndnSIM-nom-rapid-car2car">root@ubuntu:/home/sally/ndnSIM/ndnSIM-nom-rapid-car2car</a>#</div><div> </div><div>It seems that the program can not built the bz2 files. Is there any R-related source-bag I did not install?</div><div> </div><div>Best regards~</div></div></div><div> </div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>cheewii126@gmail</span></div><div> </div><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-top-color: rgb(181, 196, 223); "><div style="padding: 8px; background-color: rgb(239, 239, 239); font-size: 12px; "><div><b>From:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>Date:</b> 2013-04-18 09:37</div><div><b>To:</b> <a href="mailto:mahdian.m@husky.neu.edu">Milad Mahdian</a></div><div><b>CC:</b> <a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a></div><div><b>Subject:</b> Re: [ndnSIM] car2car example</div></div></div><div><div class="FoxDiv20130419173232120800" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Milad,<div><br></div><div>I pushed a small update of ndnSIM-nom-rapid-car2car repository.  I didn't change any code, just updated README instructions and fixed the directory structure: the scenarios and scripts assume that there is results/ and graphs/pdfs/ folders exist, but they were missing from the clone.</div><div><br></div><div>I also checked on my ubuntu installation and ./run.py -s figure-5-retx-count   succeeded and produced the graph.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><br><div><div>On Apr 17, 2013, at 5:43 PM, Milad Mahdian <<a href="mailto:mahdian.m@husky.neu.edu">mahdian.m@husky.neu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div dir="ltr"><div><div><div><div>Alex,<br><br></div>After running the commands, it starts building the graph and then I get this error:<br>...<br>./build/car-relay --run=8 --distance=170<br>./build/car-relay --run=9 --distance=170<br>./build/car-relay --run=10 --distance=170<br>Traceback (most recent call last):<br>  File "./run.py", line 139, in <module><br>    fig5.run ()<br>  File "./run.py", line 74, in run<br>    self.postprocess ()<br>  File "./run.py", line 107, in postprocess<br>    f_out = open ("%s-%s.txt" % (prefix_out, subtype), "w")<br>IOError: [Errno 2] No such file or directory: 'results/figure-5-retx-count/car-relay-jump-distance.txt'<br><br></div>I have installed R and ggplot2 previously.<br><br></div>Regards,<br></div>Milad<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 8:04 PM, Alex Afanasyev<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; padding-left: 1ex; "><div style="word-wrap: break-word; ">Hi Milad,<div><br></div><div>Just run the following command, which will install the missing python library</div><div><br></div><pre style="border: 1px solid rgb(136, 136, 136); padding: 2px; background-color: rgb(238, 232, 217); margin-top: 0px; font-family: 'Courier New'; margin-bottom: 12px; color: rgb(63, 63, 63); font-size: 14px; overflow: auto; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; "><span>sudo easy_install workerpool</span></pre><div><br></div><div>If it complains that easy_install is not found, then just install it using:</div><div><br></div><div><pre style="border: 1px solid rgb(136, 136, 136); padding: 2px; background-color: rgb(238, 232, 217); margin-top: 0px; font-family: 'Courier New'; margin-bottom: 12px; color: rgb(63, 63, 63); font-size: 14px; overflow: auto; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; "><span>sudo apt</span><span style="color: rgb(102, 102, 0); ">-</span><span style="color: rgb(0, 0, 136); ">get</span><span> install python</span><span style="color: rgb(102, 102, 0); ">-</span><span>setuptools</span></pre><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div><div class="h5"><div>On Apr 17, 2013, at 4:59 PM, Milad Mahdian <<a href="mailto:mahdian.m@husky.neu.edu" target="_blank">mahdian.m@husky.neu.edu</a>> wrote:</div><br></div></div><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div>Hi Alex,<br><br></div>I am trying to run the car2car example. After following the instructions on :<a href="http://ndnsim.net/getting-started.html#simulating-using-ndnsim" target="_blank">http://ndnsim.net/getting-started.html#simulating-using-ndnsim</a>, building the scenario, and running it successfully, I get :<br> <br>milad@ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./waf --run car-relay<br>Waf: Entering directory `/home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build'<br>Waf: Leaving directory `/home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build'<br>'build' finished successfully (0.017s)<br><br></div>However, when I want it to show the results in a figure I get this error<br><br>milad@ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./run.py -s figure-4-data-propagation-vs-distance<br>Traceback (most recent call last):<br>  File "./run.py", line 8, in <module><br>    import workerpool<br>ImportError: No module named workerpool<br>milad@ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./run.py figure-5-retx-count<br>Traceback (most recent call last):<br>  File "./run.py", line 8, in <module><br>    import workerpool<br>ImportError: No module named workerpool<br><br></div>And this is the waf configuration:<br>milad@ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./waf configure<br>Setting top to                           : /home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car<span class="Apple-converted-space"> </span><br>Setting out to                           : /home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build<span class="Apple-converted-space"> </span><br>Checking for 'g++' (c++ compiler)        : /usr/bin/g++<span class="Apple-converted-space"> </span><br>Checking boost includes                  : 1_49<span class="Apple-converted-space"> </span><br>Checking boost libs                      : ok<span class="Apple-converted-space"> </span><br>Checking for boost linkage               : ok<span class="Apple-converted-space"> </span><br>Checking for program pkg-config          : /usr/bin/pkg-config<span class="Apple-converted-space"> </span><br>Checking for pkg-config version >= '0.0.0' : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-ndnSIM                    : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-core                      : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-network                   : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-internet                  : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-point-to-point            : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-topology-read             : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-applications              : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-mobility                  : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-wifi                      : yes<span class="Apple-converted-space"> </span><br>Checking for ns3-visualizer                : yes<span class="Apple-converted-space"> </span><br>'configure' finished successfully (0.300s)<br><br></div>can you please help me solve this problem?<br><br><br></div>Regards,<br></div>Milad<br></div></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></blockquote></div><br></div></div></blockquote></div><br></div></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></blockquote></div></div></div></div></div></blockquote></div><br></div></body></html>