Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

pyretic.py: command not found #65

Open
closedog opened this issue May 29, 2016 · 7 comments
Open

pyretic.py: command not found #65

closedog opened this issue May 29, 2016 · 7 comments

Comments

@closedog
Copy link

Hi all:

i have some problem when i start the tut as i print "pyretic.py -m p0 pyretic.modules.mac_learner" , it shows "pyretic.py: command not found" . Also when i run a exisit pyfile by"sudo python xxx.py", it shows " File "hotel_ctrl.py", line 2, in
from pyretic.lib.corelib import *
ImportError: No module named pyretic.lib.corelib"
How can i start it?

Thanks in advance.
Closedog

@jacostar
Copy link

jacostar commented Jun 3, 2016

Which tutorial you have?
Are you sure you have pyretic on it?
Try to look up at pyretic.lib.corelib to see if that module exists
(excuse my English, I´m Cuban)

@chelobarreto
Copy link

Hola, soy de Argentina sigamos en español :)

Te paso la receta:

Ubuntu 14.04 amd64 tiene que ser de 64 bits porque sino apt-get install
frenetic no instala nada

Clonas pyretic en una carpeta

cd /root

clone https://github.com/frenetic-lang/pyretic.git

Clonas pox

clone https://github.com/noxrepo/pox.git

Luego en /root tenes las carpetas pyretic y pox

Instalas Frenetic

Agregando en /etc/apt/sources.list

|deb https://dl.bintray.com/arjunguha/deb trusty main apt-get update &&
apt-get install frenetic |

Luego en /root/.profile agregas al final

PYTHONPATH=$PYTHONPATH:$HOME/pyretic:$HOME/pox
PATH=$PATH:$HOME/pyretic:$HOME/pox
export PYTHONPATH PATH

Y luego en /root/pyretic/start-frenetic.sh cambias el ./frenetic por la
ruta a frenetic que obtenes via
whereis frenetic

Espero que te sea de ayuda

On 03/06/16 09:41, jacostar wrote:

Which tutorial you have?
Are you sure you have pyretic on it?
Try to look up at pyretic.lib.corelib to see if that module exists
(excuse my English, I´m Cuban)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AQqwDb5UtoKkAp2lKaCCAZpBG1WoxEXRks5qICD8gaJpZM4IpNfX.

@jacostar
Copy link

jacostar commented Jun 3, 2016

Tengo ahora una duda, para que propones instalar frenetic si el tutorial que closedog habla es de pyretic?.
Yo he utilizado bastante a pyretic con una VM que se encuentra en SDNHUB (para mí mucho mejor que la VM que propone el sitio oficial del proyecto) y solo tiene instalado pyretic, he buscado y no aparece frenetic por ningun lugar.
Saludos

@closedog
Copy link
Author

closedog commented Jun 4, 2016

Thanks for u answers. I finish the project by Ryu controller finally :)

@jacostar
Copy link

jacostar commented Jun 4, 2016

what was your project about?

@closedog
Copy link
Author

closedog commented Jun 7, 2016

Just a mini project for my course

@himanshurawlani
Copy link

root@mininet-vm:/pyretic# ./pyretic.py pyretic.pyresonance.apps.ids
Traceback (most recent call last):
File "./pyretic.py", line 313, in
main()
File "./pyretic.py", line 275, in main
write_log=options.write_log)
File "/home/mininet/pyretic/pyretic/core/runtime.py", line 87, in init
self.forwarding = main(**kwargs)
TypeError: main() takes exactly 1 argument (0 given)
root@mininet-vm:/pyretic#

I'm following this wiki : https://github.com/Resonance-SDN/pyresonance/wiki/PyResonance-overhaul:-Running-example-applications
I'm stuck here, please help...

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

No branches or pull requests

4 participants