咨询,用例执行报错问题
按照P4D2_2017_Fall/exercises/p4runtime/README的说明,执行./mycontroller.py 时遇到报错:
File "./mycontroller.py", line 179, in <module>
main(args.p4info, args.bmv2_json)
File "./mycontroller.py", line 124, in main 3 def describe(self):
s1 = p4runtime_lib.bmv2.Bmv2SwitchConnection('s1', address='127.0.0.1:50051')
File "p4lang/tutorials/P4D2_2017_Fall/exercises/p4runtime/p4runtime_lib/switch.py", line
28, in __init__
self.client_stub = p4runtime_pb2.P4RuntimeStub(self.channel)
AttributeError: 'module' object has no attribute 'P4RuntimeStub'
有人遇到吗,多谢!
1 个回复
Wasdns
赞同来自:
可以参考:https://github.com/p4lang/tutorials/issues/109