googleapis / googleapis/python-aiplatform

ModuleNotFoundError for vertexai.preview.agent_engine on clean install

Abierto
#5,833 0 comentarios 0 reacciones 0 asignados Ver en GitHub
api: vertex-ai
Lenguaje dominante
Python
Estrellas
905
Forks
465
Merge medio
1 d 13 h
PR fusionados (30 d)
44

Descripción

Title: ModuleNotFoundError for vertexai.preview.agent_engine on clean install
Bug Description
A clean installation of the latest google-cloud-aiplatform[preview] on a standard Python 3.11 environment fails to find the vertexai.preview.agent_engine module, resulting in a ModuleNotFoundError. This issue is reproducible on both macOS and clean Debian 12 VMs on Google Cloud.

Steps to Reproduce
Create a standard Debian 12 VM on Google Compute Engine.

SSH into the machine and run the following setup commands:

Bash

sudo apt-get update && sudo apt-get install -y python3-pip python3-venv
mkdir agent_test && cd agent_test
python3 -m venv .venv && source .venv/bin/activate
pip install --upgrade 'google-cloud-aiplatform[preview]'
Create a test file named test.py:

Python

from vertexai.preview.agent_engine import AgentEngineClient
print("Import successful!")
Run the script:

Bash

python test.py
Expected Behavior
The script should print "Import successful!"

Actual Behavior
The script fails with the following traceback:

Traceback (most recent call last):
File "/home/user/agent_test/test.py", line 1, in
from vertexai.preview.agent_engine import AgentEngineClient
ModuleNotFoundError: No module named 'vertexai.preview.agent_engine'
Environment Details
google-cloud-aiplatform version: (Run pip show google-cloud-aiplatform and add the version here)

Python Version: 3.11.9

Operating Systems Tested: macOS Sequoia (local), Debian 12 (on GCP)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.