<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi,
<div><br>
</div>
<div>Just met another problem when using “./waf xxxx —vis” command. It indeed gave me output showing the network topology. But I still get the errors below. I’m sure kiwi is installed successfully.</div>
<div><br>
</div>
<div>
<div><b>caster@ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-first --vis</b></div>
<div><b>Waf: Entering directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Build commands will be stored in build/compile_commands.json</b></div>
<div><b>'build' finished successfully (1.725s)</b></div>
<div><b>Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'</b></div>
<div><b>Could not load icon applets-screenshooter due to missing gnomedesktop Python module</b></div>
<div><b>scanning topology: 3 nodes...</b></div>
<div><b>scanning topology: calling graphviz layout</b></div>
<div><b>scanning topology: all done.</b></div>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Caster<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月22日 下午3:48,Sirapop Theeranantachai <sirapop741@gmail.com> 写道:</div>
<br class="Apple-interchange-newline">
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="cellpadding:0;border:0;cellspacing:0;display:table;width:100%;table-layout:fixed;border-collapse:seperate;float:none;" align="left">
<tbody style="display:block;">
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px;background-color:#A6A6A6;valign:middle">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="width:100%;background-color:#EAEAEA;padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;">
<div>你通常不会收到来自 sirapop741@gmail.com 的电子邮件。<a href="https://aka.ms/LearnAboutSenderIdentification">了解这一点为什么很重要</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="width:75px;background-color:#EAEAEA;padding:7px 5px 7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div dir="ltr">
<div dir="auto">*internal module.
<div dir="auto"><br>
</div>
<div>If renaming doesn't work, please let us know. You may take a look at how I modify a waf script here as an example:<br>
</div>
<div dir="auto"><a href="https://github.com/markverick/ndn-hypatia/blob/b253270e653aebc88bcf21c249877c446c000e25/wscript#L1036">https://github.com/markverick/ndn-hypatia/blob/b253270e653aebc88bcf21c249877c446c000e25/wscript#L1036</a></div>
<div dir="auto"><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2024, 12:41 AM Sirapop Theeranantachai <<a href="mailto:sirapop741@gmail.com" target="_blank">sirapop741@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">
<div>Hi Yitong, </div>
<div dir="auto"><br>
</div>
<div dir="auto">Let me explain briefly about what is happening during the installation. ndnSIM is an external module for ns-3. When you run the installation script, it pulls a patched version of ns-3, and then place the actual ndnSIM module inside ns-3 as /src/ndnSIM. </div>
<div dir="auto"><br>
</div>
<div dir="auto">When you want to run something, you would want to run it in ns-3 (not in the src folder). Normally, you wouldn't need to modify the wscript file if you place your codes in the /scratch folder. According to the root wscript (<a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/1b3bab9b6dba5f1e616c0b286eb889e9ce3d5d59/wscript#L1034" rel="noreferrer" target="_blank">https://github.com/named-data-ndnSIM/ns-3-dev/blob/1b3bab9b6dba5f1e616c0b286eb889e9ce3d5d59/wscript#L1034</a>),
 it will add files with extension ".cc".</div>
<div dir="auto"><br>
</div>
<div dir="auto">If your code does not end with .cc, you should rename it. If your code base is not a single file, you need create a folder inside /scratch to add your program as a folder. If nothing works, let me know or try tinkering with wscript. It's written
 in Python. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Good luck! </div>
<div dir="auto">Mark<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2024, 12:06 AM 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn" rel="noreferrer noreferrer" target="_blank">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi Mark,
<div><br>
</div>
<div>Thanks. But how to modify the “wscript” file, I haven’t found any demo for that.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Caster<br id="m_6789441000661660540m_-6055437893276282273m_6694408705657336913m_-5112373309994202555lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月22日 下午12:26,Sirapop Theeranantachai <<a href="mailto:sirapop741@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">sirapop741@gmail.com</a>> 写道:</div>
<br>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border:0px;display:table;width:100%;table-layout:fixed;float:none" align="left">
<tbody style="display:block">
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px;background-color:rgb(166,166,166)">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="width:100%;background-color:rgb(234,234,234);padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
<div>你通常不会收到来自 <a href="mailto:sirapop741@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">
sirapop741@gmail.com</a> 的电子邮件。<a href="https://aka.ms/LearnAboutSenderIdentification" rel="noreferrer noreferrer noreferrer" target="_blank">了解这一点为什么很重要</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="width:75px;background-color:rgb(234,234,234);padding:7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div dir="ltr">
<div>Hi Yitong,</div>
<div><br>
</div>
<div>You need to add an entry to the "wscript" file in the same directory you run ./waf. You can modify the script to make it either run on "/scratch" or "/examples".</div>
<div><br>
</div>
<div>Best,</div>
<div>Mark<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2024 at 8:14 PM 李怿曈 Yitong LI via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" rel="noreferrer noreferrer noreferrer" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi Junxiao,
<div><br>
</div>
<div>I’m confused about which directory should I store my .cpp in order to run it. I’ve tried putting them into "/scratch” and “/src/ndnSIM/examples”, my program is named “non-first.cpp”. Then I use "./waf --run ndn-first” to run it. An error shows that “program
 ’non-first’ not found;”</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Caster<br id="m_6789441000661660540m_-6055437893276282273m_6694408705657336913m_-5112373309994202555m_821376407121119106lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月21日 下午5:00,Junxiao Shi <<a href="mailto:shijunxiao@arizona.edu" rel="noreferrer noreferrer noreferrer" target="_blank">shijunxiao@arizona.edu</a>> 写道:</div>
<br>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border:0px;display:table;width:100%;table-layout:fixed;float:none" align="left">
<tbody style="display:block">
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px;background-color:rgb(166,166,166)">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="width:100%;background-color:rgb(234,234,234);padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
<div>你通常不会收到来自 <a href="mailto:shijunxiao@arizona.edu" rel="noreferrer noreferrer noreferrer" target="_blank">
shijunxiao@arizona.edu</a> 的电子邮件。<a href="https://aka.ms/LearnAboutSenderIdentification" rel="noreferrer noreferrer noreferrer" target="_blank">了解这一点为什么很重要</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="width:75px;background-color:rgb(234,234,234);padding:7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div dir="auto">Hi Yitong
<div dir="auto"><br>
</div>
<div dir="auto">Try installing this package:</div>
<div dir="auto">sudo apt install python-is-python3</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2024, 03:41 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn" rel="noreferrer noreferrer noreferrer" target="_blank">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p style="text-align:center"><font color="red"><strong>External Email</strong><br>
</font></p>
<span style="font-size:14.6667px">Hi,</span>
<div><span style="font-size:14.6667px"><br>
</span></div>
<div><span style="font-size:14.6667px">I’ve installed ndn successfully using “</span><span style="font-size:14.6667px;background-color:rgb(238,255,204)">./waf configure --disable-python --enable-examples</span><span style="font-size:14.6667px">” suggested in
 the documentation. When I tried running example using “./waf —run=ndn-simple”, it gave an error. It says “/usr/bin/env: ‘python’: No such file or directory”. I’ve exported the environment variable before.</span></div>
<div><span style="font-size:14.6667px"><br>
</span></div>
<div><span style="font-size:14.6667px">Thanks,</span></div>
<div><span style="font-size:14.6667px">Caster</span></div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer noreferrer noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>