b

    Bob Colner

    4 months ago
    Hi again! I’ve got a Prefect2.0
    prefect-gcp
    authentication issue/question. I’m trying to follow the example docs, but getting an error Importing
    GcpCredentials
    :
    NameError: name 'SecretManagerServiceClient' is not defined
    . FIY the prefect1.0 GCP/bigquery tasks are working fine in my environment. Any advise?
    Kevin Kho

    Kevin Kho

    4 months ago
    Which sample are you following? The one here ?
    alex

    alex

    4 months ago
    Hey @Bob Colner! Did you install
    prefect-gcp
    with the
    secret_manager
    extra? That’s necessary to make sure that the underlying GCP secret manager library is installed.
    I did not install the
    secret_manager
    , let me try that
    I don’t see this documented btw
    cool,
    pip install "prefect-gcp[secret_manager]"
    did the trick!
    Andrew Huang

    Andrew Huang

    4 months ago
    Thanks for letting us know! I created a PR to improve installation instructionshttps://github.com/PrefectHQ/prefect-gcp/pull/18