Repository navigation
[generative_ai]: extras packages not being installed #13326
Description
Activity
- addedpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Apr 29, 2025 - addedsamplesIssues that are directly related to samples.Issues that are directly related to samples.
on Apr 29, 2025 sklearn comes from
scikit-learn, which is installed optionally when usinggoogle-cloud-aiplatform, specifically ingoogle-cloud-aiplatform[evaluation]orgoogle-cloud-aiplatform[testing].It appears
[all]is not a default extras specification (dependency specifiers, originally PEP-0508), and it is not explicitly defined in https://github.com/googleapis/python-aiplatform/blob/main/setup.pygoogle-cloud-aiplatform[all]is specified in a number of samples, but in theory is the same as justgoogle-cloud-aiplatform.Checking other extras options,
[full]is possibly whats intended by[all], but this adds an additional ~74 packages and may not be appropriate for samples.evaluationmay be the minimal change required.The dependencies required by other samples should be confirmed and updated (in theory, would be the default no-extras if the samples work without extra dependencies)
In which file did you encounter the issue?
#12865 (comment)
python-docs-samples/generative_ai/model_tuning/requirements.txt
Line 6 in 5d0f1fa
python-docs-samples/generative_ai/evaluation/requirements.txt
Line 6 in 5d0f1fa
Did you change the file? If so, how?
Updating to google-cloud-aiplatform version 1.90.0
Describe the issue
Testing returns import errors for
sklearnhttps://btx.cloud.google.com/invocations/77bb07ba-75b4-483e-a46a-12c548954f7c/log