hust-diangroup / ns3-ai

Enable the interaction between ns-3 and popular frameworks using Python, which mean you can train and test your AI algorithms in ns-3 without changing any frameworks you are using now!
GNU General Public License v2.0
240 stars 85 forks source link

when I run ./waf --run "rl-tcp",these errors accurred. #39

Open LiYufengzz opened 3 years ago

LiYufengzz commented 3 years ago

In file included from ../scratch/rl-tcp/tcp-rl-env.cc:2: ../scratch/rl-tcp/tcp-rl-env.h:6:10: fatal error: 'ns3/ns3-ai-module.h' file not found

include "ns3/ns3-ai-module.h"

     ^~~~~~~~~~~~~~~~~~~~~

1 error generated.

In file included from ../scratch/rl-tcp/tcp-rl.cc:1: In file included from ../scratch/rl-tcp/tcp-rl.h:6: ../scratch/rl-tcp/tcp-rl-env.h:6:10: fatal error: 'ns3/ns3-ai-module.h' file not found

include "ns3/ns3-ai-module.h"

     ^~~~~~~~~~~~~~~~~~~~~

1 error generated.

../scratch/rl-tcp/sim.cc:19:10: fatal error: 'ns3/ns3-ai-module.h' file not found

include "ns3/ns3-ai-module.h"

     ^~~~~~~~~~~~~~~~~~~~~

1 error generated.

Could you tell me why?thanks a lot

Mauriyin commented 3 years ago

I think you need to run ./waf configure again and then try to compile the new example.

LiYufengzz commented 3 years ago

yes,I get errors when I compile ns3 use"./waf "but I don't know the reason.Anyway,thanks for the reply

---Original--- From: @.> Date: Thu, Jun 24, 2021 14:05 PM To: @.>; Cc: @.**@.>; Subject: Re: [hust-diangroup/ns3-ai] when I run ./waf --run "rl-tcp",these errors accurred. (#39)

I think you need to run ./waf configure again and then try to compile the new example.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Mauriyin commented 3 years ago

where did you put the ns3-ai model folder? If it is under contrib/, it should be able to link.

The error means it couldn't find ns3-ai, so I suggest you configure again:

./waf configure

Then you can check if there is ns3-ai in the log.

LiYufengzz commented 3 years ago

Ok,I will have a try

LiYufengzz commented 3 years ago

Hi,I have a question. ./waf --run "rl-tcp" this step will cost a lot of time,right? It has stuck at here for a long time.

Mauriyin commented 3 years ago

you can use this script to run:

python3 run_rl_tcp.py
LiYufengzz commented 3 years ago

I can run the run_rl_tcp.py correctly,but the output figures are empty.I want to ask what the problem is.Thanks a lot.

igs3000 commented 2 years ago

I can run the run_rl_tcp.py correctly,but the output figures are empty.I want to ask what the problem is.Thanks a lot.

Same problem - I am also getting blank graphs in my test also