Visitar URL original
[generative_ai]: extras packages not being installed · Issue #13326 · GoogleCloudPlatform/python-docs-samples · GitHub
Skip to content

[generative_ai]: extras packages not being installed #13326

Description

@glasnt

In which file did you encounter the issue?

#12865 (comment)

google-cloud-aiplatform[all]==1.90.0

google-cloud-aiplatform[all]==1.90.0

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 sklearn

E   ModuleNotFoundError: No module named 'sklearn'

https://btx.cloud.google.com/invocations/77bb07ba-75b4-483e-a46a-12c548954f7c/log

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    triage meI really want to be triaged.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Apr 29, 2025
  2. glasnt commented on Apr 29, 2025

    @glasnt
    ContributorAuthor

    sklearn comes from scikit-learn, which is installed optionally when using google-cloud-aiplatform, specifically in google-cloud-aiplatform[evaluation] or google-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.py

    google-cloud-aiplatform[all] is specified in a number of samples, but in theory is the same as just google-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. evaluation may 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions