frenetic-lang / pyretic

The Pyretic language and runtime system
http://frenetic-lang.org/pyretic/
159 stars 99 forks source link

error in the first time running pyretic.py #38

Closed brianedwin closed 10 years ago

brianedwin commented 10 years ago

I have followed the intruction in https://github.com/frenetic-lang/pyretic/wiki/Building-the-Pyretic-VM, and then i tried to run 'pyretic.py -v high pyretic.modules.mac_learner' in my VM terminal but i got this error: Traceback (most recent call last): File "/root/pyretic/pyretic.py", line 192, in main() File "/root/pyretic/pyretic.py", line 163, in main runtime = Runtime(Backend(),main,kwargs,options.mode,options.verbosity) File "/root/pyretic/pyretic/core/runtime.py", line 75, in init self.update_dynamic_sub_pols() File "/root/pyretic/pyretic/core/runtime.py", line 228, in update_dynamic_sub_pols p.set_network(self.network) File "/root/pyretic/pyretic/core/language.py", line 1113, in set_network in self.mst.switches(with_ports=True)]) AttributeError: 'Topology' object has no attribute 'switches'

am i missing something...?? please, help me.

joshreich commented 10 years ago

You aren't missing anything; I pushed a commit last night that had a bug on line 1113 in language.py and you were the first to find it ;-) I've just pushed a new commit fixing that bug. Do a git pull from inside the pyretic directory and all should work.