More information on this error.
I am using a python virtual environment.
<path to virtual environment>/lib/python3.10/site-packages/google/protobuf/message_factory.py
Message Factory does exist in the python virtual environment.
GetMessageClass function is defined in the message_factory.py file.
```
def GetMessageClass(descriptor):
"""Obtains a proto2 message class based on the passed in descriptor.
Passing a descriptor with a fully qualified name matching a previous
invocation will cause the same class to be returned.
Args:
descriptor: The descriptor to build from.
Returns:
A class describing the passed in descriptor.
"""
concrete_class = getattr(descriptor, '_concrete_class', None)
if concrete_class:
return concrete_class
return _InternalCreateMessageClass(descriptor)
```