googleapis / googleapis/python-aiplatform

Missing tensorflow dependency

Open
#5,725 0 comments 0 reactions 0 assignees View on GitHub
api: vertex-ai
Dominant language
Python
Stars
905
Forks
465
Avg merge
1d 13h
Merged PRs (30d)
44

Description

#### Environment details

- OS type and version: macOS Sequoia 15.6
- Python version: 3.10
- pip version: 24.3.1
- `google-cloud-aiplatform` version: 1.108.0

#### Steps to reproduce

1. `pip install "google-cloud-aiplatform[tensorboard]==1.108.0"`
2. `python -c "from google.cloud.aiplatform.tensorboard.uploader import TensorBoardUploader"`

The following error will appear:
```
ModuleNotFoundError: No module named 'tensorflow'
```

#### Code example

See above.

#### Stack trace
```
Traceback (most recent call last):
File "", line 1, in
File "/Users/.../.pyenv/versions/.../lib/python3.10/site-packages/google/cloud/aiplatform/tensorboard/uploader.py", line 41, in
from google.cloud.aiplatform.tensorboard import logdir_loader
File "/Users/.../.pyenv/versions/.../lib/python3.10/site-packages/google/cloud/aiplatform/tensorboard/logdir_loader.py", line 22, in
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
```

Contributor guide

Open the contributing guide

Research direction

Start with the installation command in the issue, then inspect google/cloud/aiplatform/tensorboard/uploader.py and logdir_loader.py to trace when TensorFlow is imported. Check the package dependency configuration and verify that installing the tensorboard extra allows the shown TensorBoardUploader import without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.