AttributeError in protobuf running from source
Closed this issue · 1 comments
oldnapalm commented
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
observed on Windows
AttributeError: 'EnumTypeWrapper' object has no attribute 'RealmID'
observed on Linux
Seems to be a protobuf issue protocolbuffers/protobuf#10075
For now the solution is using pip install protobuf==3.20.1
oldnapalm commented
The problem seems to be caused by appending the protobuf directory to sys path and using import protobuf.module
. Using import module
instead, it works with latest protobuf without issue.