<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Peter,</div>
<div class=""><br class="">
</div>
Thank you very much for sharing your tips.  Your feedback can really help us improve Mini-NDN.  You can also directly contribute to the codebase (we have a list of open issues at
<a href="https://redmine.named-data.net/projects/mini-ndn" class="">https://redmine.named-data.net/projects/mini-ndn</a>).
<div class=""><br class="">
</div>
<div class="">Lan <br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 13, 2021, at 2:50 AM, Peter Kietzmann <<a href="mailto:Peter.Kietzmann@haw-hamburg.de" class="">Peter.Kietzmann@haw-hamburg.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi Lan, Xinyu, all,<br class="">
<br class="">
thanks for your responses. I got that running now, after going through a<br class="">
bunch of beginners mistakes I made / had to deal with. Maybe it helps<br class="">
someone:<br class="">
<br class="">
- Calling python-ndn applications from mini-ndn led to some unresolved<br class="">
dependencies. I worked around it by compiling executables from<br class="">
producer/consumer examples (pyinstaller --onefile *.py) .<br class="">
- From the new producer/consumer class in mini-ndn, execute the app<br class="">
like: Application.start(self, <python executable>, self.logFile).<br class="">
- I do not add FIB entries manually but utilize NLSR. To do so, I had to<br class="">
change name prefixes of producer/consumer applications, e.g.,<br class="">
/ndn/<node-site>/<node> .<br class="">
- From mini-ndn, start producer first, to register prefix. Then, run<br class="">
NLSR and give it a good amount of time (tens of seconds) before<br class="">
requesting content on the consumer.<br class="">
<br class="">
Cheers<br class="">
Peter<br class="">
<br class="">
On 13.08.21 04:58, Xinyu Ma wrote:<br class="">
<blockquote type="cite" class="">Hello, Peter,<br class="">
<br class="">
Unfortunately, I have never used mini-NDN.<br class="">
There are some python-ndn example applications under the examples<br class="">
<<a href="https://github.com/named-data/python-ndn/tree/master/examples" class="">https://github.com/named-data/python-ndn/tree/master/examples</a>> folder,<br class="">
but I don’t know how to run them on mini-NDN.<br class="">
If you know how to execute python programs on mini-NDN, you can try to<br class="">
run consumer.py and producer.py on two nodes, where the consumer’s node<br class="">
has a FIB entry `/example` pointing to the producer’s node.<br class="">
<br class="">
Best regards,<br class="">
Xinyu Ma.<br class="">
<br class="">
<blockquote type="cite" class="">On Aug 12, 3 Reiwa, at 15:17, Lan Wang (lanwang) <<a href="mailto:lanwang@memphis.edu" class="">lanwang@memphis.edu</a><br class="">
<<a href="mailto:lanwang@memphis.edu" class="">mailto:lanwang@memphis.edu</a>>> wrote:<br class="">
<br class="">
I doubt people on the Mini-NDN mailing list know the answer.  It’s<br class="">
best for Xinyu to help you.<br class="">
<br class="">
Lan<br class="">
<br class="">
<blockquote type="cite" class="">On Jul 30, 2021, at 10:43 AM, Peter Kietzmann<br class="">
<<a href="mailto:Peter.Kietzmann@haw-hamburg.de" class="">Peter.Kietzmann@haw-hamburg.de</a><br class="">
<<a href="mailto:Peter.Kietzmann@haw-hamburg.de" class="">mailto:Peter.Kietzmann@haw-hamburg.de</a>>> wrote:<br class="">
<br class="">
Dear list, Lan, Xinyu Ma,<br class="">
<br class="">
TL;DR:<br class="">
does anyone have an example of how to run the python-NDN<br class="">
producer/consumer example applications on multiple hosts started from<br class="">
mini-NDN?<br class="">
<br class="">
--<br class="">
<br class="">
Many thanks for your guidance. I was able to move a bit forward (with<br class="">
Philipps help), however, two questions remain open. Not sure which is<br class="">
mini-NDN or python-NDN related.<br class="">
<br class="">
Basically, I implement consumer/producer classes in<br class="">
mini-NDN/examples/mnndn.py and start them separately (using AppManager)<br class="">
on two different hosts in a three-node line topology. Internally, these<br class="">
classes should call python-NDN/examples/consumer.py (and producer.py<br class="">
respectively).<br class="">
<br class="">
1. Calling the python script from the consumer class alike "python3<br class="">
<path>/consumer.py" leads to:<br class="">
<br class="">
"python3 /home/vagrant/python-ndn/examples/consumer.py" == Traceback<br class="">
(most recent call last):<br class="">
File "/home/vagrant/python-ndn/examples/consumer.py", line 19, in<br class="">
<module><br class="">
  import ndn.utils<br class="">
ModuleNotFoundError: No module named 'ndn'<br class="">
<br class="">
This can be "fixed", creating a standalone executable from the<br class="">
respective python script beforehand, but is very un-handy. What is a<br class="">
better solution?<br class="">
<br class="">
2. The current python-NDN producer is blocking. Where would be the right<br class="">
place to make it asynchronous, within the python-NDN application, or<br class="">
within mini-NDN that runs the application on a host?<br class="">
<br class="">
Thanks again and cheers<br class="">
Peter<br class="">
<br class="">
On 29.07.21 18:30, Lan Wang (lanwang) wrote:<br class="">
<blockquote type="cite" class="">Hi Peter,<br class="">
<br class="">
Welcome to Mini-NDN.  I think developing a Python-NDN application in<br class="">
Mini-NDN is the same as developing it outside Mini-NDN.  The purpose of<br class="">
using Mini-NDN is to avoid having to change any applications.  For<br class="">
specific questions about Python NDN, it’s best to read the documentation<br class="">
<a href="https://python-ndn.readthedocs.io/en/latest/src/examples/examples.html" class="">https://python-ndn.readthedocs.io/en/latest/src/examples/examples.html</a><br class="">
and<br class="">
ask the developers, e.g., Xinyu Ma (xinyu.ma@cs.ucla.edu<br class="">
<mailto:xinyu.ma@cs.ucla.edu><br class="">
<mailto:xinyu.ma@cs.ucla.edu>).<br class="">
<br class="">
Lan<br class="">
<br class="">
<blockquote type="cite" class="">On Jul 28, 2021, at 10:12 AM, Peter Kietzmann<br class="">
<peter.kietzmann@haw-hamburg.de <mailto:peter.kietzmann@haw-hamburg.de><br class="">
<mailto:peter.kietzmann@haw-hamburg.de>> wrote:<br class="">
<br class="">
CAUTION: This email originated from outside of the organization. Do<br class="">
not click links or open attachments unless you recognize the sender<br class="">
and trust the content is safe.<br class="">
<br class="">
<br class="">
Dear Community,<br class="">
<br class="">
first of all: I am an absolute newbie to Mini-NDN (/the whole NDN code<br class="">
base), so apologies for asking basic or duplicate questions :).<br class="">
<br class="">
I've successfully installed your VM and played with built-in examples<br class="">
(ndnping etc.) and my own topologies -> that worked well! Now I would<br class="">
like to implement consumer/producer application logic. Python-NDN [1]<br class="">
seems like a promising candidate, however, I cannot find starter<br class="">
material. How to run Python-NDN applications on top of Mini-NDN?<br class="">
<br class="">
Can anyone navigate me to a tutorial, a similar topic on this list, or<br class="">
share first steps that might help to get started?<br class="">
<br class="">
Many thanks in advance!<br class="">
<br class="">
Cheers<br class="">
Peter<br class="">
<br class="">
[1] https://github.com/named-data/python-ndn<br class="">
<br class="">
<br class="">
<br class="">
--<br class="">
Peter Kietzmann<br class="">
<br class="">
Hamburg University of Applied Sciences<br class="">
Dept. Informatik, Internet Technologies Group<br class="">
Berliner Tor 7, 20099 Hamburg, Germany<br class="">
Fon: +49-40-42875-8426<br class="">
Web: http://www.haw-hamburg.de/inet<br class="">
<br class="">
_______________________________________________<br class="">
Mini-NDN mailing list<br class="">
Mini-NDN@lists.cs.ucla.edu <mailto:Mini-NDN@lists.cs.ucla.edu><br class="">
<mailto:Mini-NDN@lists.cs.ucla.edu><br class="">
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn<br class="">
</blockquote>
<br class="">
</blockquote>
<br class="">
-- <br class="">
Peter Kietzmann<br class="">
<br class="">
Hamburg University of Applied Sciences<br class="">
Dept. Informatik, Internet Technologies Group<br class="">
Berliner Tor 7, 20099 Hamburg, Germany<br class="">
Fon: +49-40-42875-8426<br class="">
Web: <a href="http://www.haw-hamburg.de/inet" class="">http://www.haw-hamburg.de/inet</a><br class="">
<br class="">
_______________________________________________<br class="">
Mini-NDN mailing list<br class="">
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" class="">Mini-NDN@lists.cs.ucla.edu</a> <<a href="mailto:Mini-NDN@lists.cs.ucla.edu" class="">mailto:Mini-NDN@lists.cs.ucla.edu</a>><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br class="">
</blockquote>
<br class="">
</blockquote>
<br class="">
</blockquote>
<br class="">
-- <br class="">
Peter Kietzmann<br class="">
<br class="">
Hamburg University of Applied Sciences<br class="">
Dept. Informatik, Internet Technologies Group<br class="">
Berliner Tor 7, 20099 Hamburg, Germany<br class="">
Fon: +49-40-42875-8426<br class="">
Web: <a href="http://www.haw-hamburg.de/inet" class="">http://www.haw-hamburg.de/inet</a><br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>