googleapis / googleapis/python-aiplatform
ertex AI - Persistent AttributeError/ImportError with Python SDK in a Clean Environment
- Lenguaje dominante
- Python
- Estrellas
- 905
- Forks
- 465
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 44
Descripción
I am encountering persistent AttributeError and ImportError issues when trying to use the Vertex AI Python SDK (google-cloud-aiplatform) to create and query a Vector Search index. This issue persists despite extensive troubleshooting in a completely clean and isolated Python environment.
The library appears to be installing in an incomplete or corrupted state, as it is missing fundamental classes and methods (like VectorSearchIndex and .match()) that are present in the documentation.
Environment Details:
Project ID: guild-town (Project Number: 795877856274)
Python Version: Python 3.11 (downgraded from 3.13 to ensure stability)
Environment: Running inside a new, clean virtual environment (venv) on Windows.
Library Version: google-cloud-aiplatform==1.106.0 (and its dependencies).
Troubleshooting Steps Already Taken:
Confirmed the Project ID is correct and the Vertex AI API is enabled.
Resolved multiple local environment issues (Windows app execution aliases, pip command usage).
Downgraded from Python 3.13 to the stable version 3.11.
Created a completely isolated virtual environment (venv) to prevent any system-wide package conflicts.
Purged the pip cache (pip cache purge) to ensure fresh package downloads.
Force-reinstalled all libraries (--force-reinstall) inside the clean venv.
Attempted to use both the high-level SDK (aiplatform.VectorSearchIndex) and the low-level GAPIC clients (IndexServiceClient).
Final Blocking Errors:
When using the high-level API, the script fails with: AttributeError: module 'google.cloud.aiplatform' has no attribute 'VectorSearchIndex'.
When using the low-level API, the script fails with: AttributeError: 'IndexEndpointServiceClient' object has no attribute 'match'.
The issue seems to be that the library object being created is missing its core methods. After an exhaustive debugging process, it appears this is an environment-specific problem that is not resolvable through standard coding or environment setup practices.
Please help diagnose why the Python SDK is not installing or functioning as expected on this system.
Thank you.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.