googleapis / googleapis/python-aiplatform

ertex AI - Persistent AttributeError/ImportError with Python SDK in a Clean Environment

Đang mở
#5,675 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: vertex-ai
Ngôn ngữ chính
Python
Star
905
Fork
465
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
44

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.