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

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

@ElissonRodrigues

Description

@ElissonRodrigues

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'

Metadata

Metadata

Assignees

Labels

api: dialogflowIssues related to the googleapis/python-dialogflow API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions