HELP - could not find a task generator

1,196 views
Skip to first unread message

David Janelidze

unread,
Jul 10, 2018, 4:59:48 PM7/10/18
to ns-3-users
Hello, I'm trying to implement LoRa module in ns-3. I've tried it for two different modules downloaded from github.

First one is this ===> https://github.com/signetlabdei/lorawan
And the second one is this ===> https://github.com/networkedsystems/lora-ns3

I prefer to include second one, however if any of them will work - it's fine.

The problem is the next: I copy folder of the module in the src folder, then I input command : ./waf configure --enable-tests --enable-examples and after that ./waf build, after ./waf build it outputs that ==> ' Could not find a task generator for the name 'ns3-lorawan-master' ' for the first one

and for the second one it says:

 wscript:104: Warning: (in LoRa) Requested to build modular python bindings, but apidefs dir not found => skipped the bindings.
 
Could not find a task generator for the name 'ns3-LoRa'
 
What I have to do? Please help, I really don't have much experience in networking and linux, but I need to do this please.

Gabriel Arrobo

unread,
Jul 10, 2018, 5:16:48 PM7/10/18
to ns-3-...@googlegroups.com
Hello,

For the second repo try the followinig change in the wscript:

Change the following lines from:

#  if (bld.env['ENABLE_EXAMPLES']):
#      bld.recurse('examples')

bld.ns3_python_bindings()

to 
  if (bld.env['ENABLE_EXAMPLES']):
      bld.recurse('examples')

# bld.ns3_python_bindings()

In other words, remove the '#' from lines 101 and 102 and add '#' to line 104 (I understand/assume that you are not going to use the python bindings)

Best regards,
Gabriel



--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

David Janelidze

unread,
Jul 10, 2018, 5:36:43 PM7/10/18
to ns-3-...@googlegroups.com
Thanks for response, I have tried that but after trying configure with ./waf configure --enable examples

it outputed this :

Traceback (most recent call last):
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 110, in waf_entry_point
    run_commands()
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 167, in run_commands
    parse_options()
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 140, in parse_options
    Context.create_context('options').execute()
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Options.py", line 146, in execute
    super(OptionsContext,self).execute()
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 93, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/wscript", line 249, in options
    opt.recurse('src')
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/src/wscript", line 49, in options
    opt.recurse(module, mandatory=False)
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 128, in recurse
    wscript_module=load_module(node.abspath(),encoding=encoding)
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 354, in load_module
    try:exec(compile(code,path,'exec'),module.__dict__)
  File "/home/david/kidev/ns-allinone-3.28/ns-3.28/src/LoRa/wscript", line 101
    if (bld.env['ENABLE_EXAMPLES']):
                                   ^
IndentationError: unindent does not match any outer indentation level




So it didn't allow me to do it, however then I wrote #s on all three lines and tried configuring again and after ./waf build output was only this: " Could not find a task generator for the name 'ns3-LoRa' " <=== Could you please help me out for this one? Thank you in advance.



To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Gabriel Arrobo

unread,
Jul 10, 2018, 5:49:38 PM7/10/18
to ns-3-...@googlegroups.com
Taking into account that no example is enabled inside the lora/examples folder, just put back the '#' in front of lines 101 and 102. 

Best regards,
Gabriel



To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

David Janelidze

unread,
Jul 10, 2018, 5:53:07 PM7/10/18
to ns-3-...@googlegroups.com
As I said I have done it already but how to solve  " Could not find a task generator for the name 'ns3-LoRa' " <== this problem? Thanks again.

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Gabriel Arrobo

unread,
Jul 10, 2018, 6:40:56 PM7/10/18
to ns-3-...@googlegroups.com
I just downloaded ns-3.28 and clone the lora module in the SRC folder and ns-3 builds without any problem. I did not have to make any change in the lora module. Keep in mind that the module is called "lora".

image.png


Best regards,
Gabriel



To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

David Janelidze

unread,
Jul 10, 2018, 6:54:40 PM7/10/18
to ns-3-...@googlegroups.com
Thank you very much, I will try on different PC, I didn't really get what's problem, but I will try thank you.

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Gabriel Arrobo

unread,
Jul 10, 2018, 8:02:45 PM7/10/18
to ns-3-...@googlegroups.com
Just in case, the folder name is "lora", same as the module's name.


Best regards,
Gabriel
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

say...@gmail.com

unread,
Jul 10, 2018, 9:41:04 PM7/10/18
to ns-3-users
That means when you delete the "#", you also need to drag the if statement to exactly where it was.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Dayrene Frometa

unread,
Mar 3, 2019, 9:06:03 AM3/3/19
to ns-3-users
Hi David, I am trying to implement LoRa module in NS3 (the second one ==> https://github.com/networkedsystems/lora-ns3) and I got the same error:

wscript:104: Warning: (in lora-ns3-master) Requested to build modular python bindings, but apidefs dir not found => skipped the bindings.
 
Could not find a task generator for the name 'ns3-lora-ns3-master'

Have you finally solved this problem? Please help me I really don't have much experience in NS-3, but I need to do this.

Dayrene

MYDHILY M R

unread,
Nov 25, 2019, 8:55:14 AM11/25/19
to ns-3-users
I am also having the same error. How did you solved it?

Tom Henderson

unread,
Nov 25, 2019, 10:38:01 AM11/25/19
to ns-3-...@googlegroups.com
This error "Could not find a task generator for the name ..." arises when the name of the module directory does not match the name expressed in the module's wscript.

For instance, see this line:

It declares the module name to be 'lorawan'.  If the directory containing this module is not named 'lorawan', but is instead something like 'ns3-lorawan-master', then Waf will raise that error.

- Tom
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Harunur Roshid

unread,
Nov 26, 2019, 10:00:54 AM11/26/19
to ns-3-...@googlegroups.com
hi
i need to transfer packet among 4 nodes using  ns3.28.1 simulation version, how to get of this ns3 code. please help me sharing code. thnks

Enrique Geovanny Merino Vera

unread,
Mar 3, 2020, 2:34:39 PM3/3/20
to ns-3-users
hello, the wscript files in /lora/ and /lora/examples/ have problems with the ideation ... check them and correct those problems. 
You can check this module for comparison: https://github.com/signetlabdei/lorawan
Reply all
Reply to author
Forward
0 new messages