-
Notifications
You must be signed in to change notification settings - Fork 99
frenetic not found #59
Comments
Same problem.
Patch for message KeyError: 'queries': def json_to_classifier(fname, qdict, multistage): |
same problem in latest branch on 14.04. @chelobarreto can you provide right indent format? Thanks~ |
Check that frenetic is intalled, run frenetic from command line. If it runs then check whereis installed in mi case in /usr/bin/frenetic: user@localhost#whereis frenetic Then update the path in /pyretic/start-frenetic.sh |
I have the same issue with the provided VirtualBox VM. |
root@mininet-vm:/pyretic# ./pyretic.py pyretic.pyresonance.apps.ids I'm following this wiki : https://github.com/Resonance-SDN/pyresonance/wiki/PyResonance-overhaul:-Running-example-applications |
running
pyretic.py -m p0 pyretic.modules.mac_learner
in the tutorial gives the following errors
./frenetic: No such file or directory.
ERROR:pyretic.core.netkat.netkat:2015-12-07 10:32:03,111: Compiling with the netkat compilation server failed. ([Errno 97] Address family not supported by protocol)
Tried working cloning and running frenetic by
frenetic compile-server --verbosity=error
gives the following error when mininet boots up.
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/runtime.py", line 2194, in f
self.runtime.handle_network_change()
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/runtime.py", line 402, in handle_network_change
self.update_switch_classifiers()
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/runtime.py", line 462, in update_switch_classifiers
classifier = self.whole_policy_compile()
File "/home/bovenyan/Documents/src/pyretic/pyretic/evaluations/stat.py", line 158, in profiled_func
res = func(_args, *_kwargs)
File "/home/bovenyan/Documents/src/pyretic/pyretic/evaluations/stat.py", line 109, in profiled_func
res = func(_args, *_kwargs)
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/runtime.py", line 424, in whole_policy_compile
p = self.policy.netkat_compile(self.sw_cnt())[0] # directly compile with netkat
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/language.py", line 174, in netkat_compile
print_json)
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/netkat.py", line 137, in generate_classifier
return httplib_channel_compilation(pol, qdict)
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/netkat.py", line 131, in httplib_channel_compilation
classifier = json_to_classifier(netkat_out, qdict, multistage)
File "/home/bovenyan/Documents/src/pyretic/pyretic/core/netkat.py", line 464, in json_to_classifier
queries = get_queries_from_names(rule['queries'], qdict)
KeyError: 'queries'
The text was updated successfully, but these errors were encountered: