You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but something wrong when I try to run "python server.py A"
It said
Traceback (most recent call last):
File "server.py", line 45, in <module>
m = Messenger(args.uid, config.peers, r)
File "C:\Users\xiaoj\Documents\multi-paxos-example\messenger.py", line 19, in __init__
for k,v in self.addrs.items():
RuntimeError: dictionary changed size during iteration
and the line 19 of messenger.py is here:
# provide two-way mapping between endpoints and server names
for k,v in self.addrs.items():
self.addrs[v] = k
I don't understand what's the meaning of those two line, you could help me about that? Thank you!
best wishes!
Jin
The text was updated successfully, but these errors were encountered:
That's a bug. I've just pushed the fix which is to wrap the
"self.addrs.items()" with a call to "list()". Let me know if that doesn't
solve the problem. Also, this code is written for Python 2.7. If you're
trying to run it with Python 3, it almost certainly will not work.
but something wrong when I try to run "python server.py A"
It said
Traceback (most recent call last):
File "server.py", line 45, in
m = Messenger(args.uid, config.peers, r)
File "C:\Users\xiaoj\Documents\multi-paxos-example\messenger.py", line 19, in init
for k,v in self.addrs.items():
RuntimeError: dictionary changed size during iteration
and the line 19 of messenger.py is here:
# provide two-way mapping between endpoints and server names
for k,v in self.addrs.items():
self.addrs[v] = k
I don't understand what's the meaning of those two line, you could help me
about that? Thank you!
Hi Tom:
How is everything going?
I listened your suggestion and read your code
https://github.com/cocagne/multi-paxos-example
but something wrong when I try to run "python server.py A"
It said
and the line 19 of messenger.py is here:
I don't understand what's the meaning of those two line, you could help me about that? Thank you!
best wishes!
Jin
The text was updated successfully, but these errors were encountered: