Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running python code #7

Open
najianasrink opened this issue Feb 28, 2020 · 3 comments
Open

Running python code #7

najianasrink opened this issue Feb 28, 2020 · 3 comments

Comments

@najianasrink
Copy link

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
Copy link
Owner

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

@GUO787878
Copy link

@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
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants