小编gua*_*lan的帖子

Python gprc AttributeError:“NoneType”对象没有属性“message_types_by_name”

我只想完成一个简单的演示,但收到此错误消息。

Traceback (most recent call last):
  File "E:/grpc/biliService.py", line 10, in <module>
    import hello_bilibili_pb2 as pb2
  File "E:\grpc\hello_bilibili_pb2.py", line 21, in <module>
    _HELLODEWEIREQ = DESCRIPTOR.message_types_by_name['HelloDeweiReq']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
Run Code Online (Sandbox Code Playgroud)

grpc-python

6
推荐指数
1
解决办法
6785
查看次数

标签 统计

grpc-python ×1