Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

AttributeError: 'dict' object has no attribute 'index' #598

Closed
ElissonRodrigues opened this issue Nov 26, 2022 · 2 comments
Closed

AttributeError: 'dict' object has no attribute 'index' #598

ElissonRodrigues opened this issue Nov 26, 2022 · 2 comments
Assignees
Labels
api: dialogflow Issues related to the googleapis/python-dialogflow API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@ElissonRodrigues
Copy link

Environment details

  • OS type and version:
  • Python version: 3.11
  • pip version: 22.3.1
  • google-cloud-dialogflow version: 2.16.1

Steps to reproduce

to reproduce to install python3.11 and import the agent:

from google.cloud.dialogflow_v2beta1.types import agent

Traceback

from google.cloud.dialogflow_v2beta1.types import agent File "/usr/local/lib/python3.11/dist-packages/google/cloud/dialogflow_v2beta1/types/init.py", line 103, in from .document import ( File "/usr/local/lib/python3.11/dist-packages/google/cloud/dialogflow_v2beta1/types/document.py", line 44, in class Document(proto.Message): File "/usr/local/lib/python3.11/dist-packages/google/cloud/dialogflow_v2beta1/types/document.py", line 135, in Document class KnowledgeType(proto.Enum): File "/usr/local/lib/python3.11/dist-packages/proto/enums.py", line 61, in new idx = attrs._member_names.index(pb_options) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'dict' object has no attribute 'index'

@product-auto-label product-auto-label bot added the api: dialogflow Issues related to the googleapis/python-dialogflow API. label Nov 26, 2022
@parthea parthea added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Dec 16, 2022
@parthea
Copy link
Contributor

parthea commented Jan 5, 2023

Thanks for reporting this issue. I've published a pre-release version of proto-plus with the fix. https://pypi.org/project/proto-plus/1.22.2rc1/

The release will be published on Monday
googleapis/proto-plus-python#343

@parthea parthea self-assigned this Jan 5, 2023
@parthea
Copy link
Contributor

parthea commented Jan 10, 2023

@parthea parthea closed this as completed Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dialogflow Issues related to the googleapis/python-dialogflow API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants