santhisenan / SDN_DDoS_Simulation

An attempt to detect and prevent DDoS attacks using reinforcement learning. The simulation was done using Mininet.
MIT License
108 stars 26 forks source link

Running python code #7

Open najianasrink opened 4 years ago

najianasrink commented 4 years ago

Installed the prerequisites.On running, the topology is up.But PYTHONPATH is not getting.On running the python file "main.py " the following error comes.

najiya@najiya-LIFEBOOK-A514:~/SDN_DDoS_Simulation$ PYTHONPATH=. ryu/bin/ryu-manager main.py Traceback (most recent call last): File "ryu/bin/ryu-manager", line 18, in from ryu.cmd.manager import main File "/home/najiya/.local/lib/python2.7/site-packages/ryu/cmd/manager.py", line 33, in from ryu.app import wsgi File "/home/najiya/.local/lib/python2.7/site-packages/ryu/app/wsgi.py", line 23, in from tinyrpc.server import RPCServer File "/home/najiya/.local/lib/python2.7/site-packages/tinyrpc/init.py", line 4, in from .protocols import * File "/home/najiya/.local/lib/python2.7/site-packages/tinyrpc/protocols/init.py", line 15 def init(self) -> None: ^ SyntaxError: invalid syntax

santhisenan commented 4 years ago

@najianasrink It seems that you are using python 2. Can you try using python 3?

GUO787878 commented 3 years ago

@najianasrink Do Tensorflow, Keras, Ryu and Mininet , all of them need to use python3? And Please tell me what the version of Tensorflow and Keras,Thank you very much!

BoBoBird-coder commented 1 year ago

the following error comes .Is the PYTHONPATH wrong?

root@ubuntu:/home/bobo-coder/Desktop/ryu/bin# PYTHONPATH=. ryu-manager /home/bobo-coder/Desktop/SDN_DDoS_Simulation/main.py loading app /home/bobo-coder/Desktop/SDN_DDoS_Simulation/main.py

File "/home/bobo-coder/Desktop/SDN_DDoS_Simulation/main.py", line 29, in from actor_network import ActorNetwork as Actor ModuleNotFoundError: No module named 'actor_network'