tkn-tub / ns3-gym

ns3-gym - The Playground for Reinforcement Learning in Networking Research
GNU General Public License v2.0
529 stars 198 forks source link

sim.cc #26

Closed llllllllluGquan closed 4 years ago

llllllllluGquan commented 4 years ago

hi, when i modified the parameters of sim.cc in tcp-rl. then it show me some errors.

Build ns-3 project if required Waf: Entering directory /home/ubuntu/ns3-gym-master/build' [1819/1880] Compiling scratch/rl-tcp/sim.cc Waf: Leaving directory/home/ubuntu/ns3-gym-master/build'

so what shoud i do ?thanks.

chwang1996 commented 4 years ago

Are you running the python script? If your ns3 scratch is crash or has compile error, the python script would stuck to wait for the ns3 response. You can run ./waf --run "rl-tcp" first to check if the ns3 script run successfully, you can also modify the ns3-gym/src/opengym/model/ns3gym/ns3gym/start_sim.py start_sim_script function to output the stderr to file to debug

llllllllluGquan commented 4 years ago

Are you running the python script? If your ns3 scratch is crash or has compile error, the python script would stuck to wait for the ns3 response. You can run ./waf --run "rl-tcp" first to check if the ns3 script run successfully, you can also modify the ns3-gym/src/opengym/model/ns3gym/ns3gym/start_sim.py start_sim_script function to output the stderr to file to debug

thanks for your replay!