Cannot convert proto.marshal.collections.maps.MapComposite to a Python dictionary #12850
Closed
1 task done
Labels
needs more info
This issue needs more information from the customer to proceed.
type: question
Request for information or clarification. Not an issue.
Determine this is the right repository
Summary of the issue
According to a few answers on internet, I am expecting to use MessageToDict() to conver proto.marshal.collections.maps.MapComposite into a Python dictionary, but failed with
AttributeError: 'MapComposite' object has no attribute 'DESCRIPTOR'
API client name and version
altgraph 0.17.2
cachetools 5.3.3
certifi 2024.6.2
charset-normalizer 3.3.2
future 0.18.2
google-api-core 2.19.1
google-auth 2.30.0
google-cloud-access-context-manager 0.2.0
google-cloud-asset 3.26.1
google-cloud-iam 2.15.0
google-cloud-org-policy 1.11.0
google-cloud-os-config 1.17.3
googleapis-common-protos 1.63.2
grpc-google-iam-v1 0.13.1
grpcio 1.64.1
grpcio-status 1.62.2
idna 3.7
macholib 1.15.2
pip 24.1.1
proto-plus 1.24.0
protobuf 4.25.3
pyasn1 0.6.0
pyasn1_modules 0.4.0
requests 2.32.3
rsa 4.9
setuptools 58.0.4
six 1.15.0
urllib3 2.2.2
wheel 0.37.0
Reproduction steps: code
file: main.py
Reproduction steps: supporting files
None. The above script is self contained, but it depends on Application Default Credentials.
Reproduction steps: actual results
AttributeError: 'MapComposite' object has no attribute 'DESCRIPTOR'
Reproduction steps: expected results
Get a python disctionary
OS & version + platform
MacOS 14.5
Python environment
3.9.6
Python dependencies
Not sure
The text was updated successfully, but these errors were encountered: