https://prefect.io logo
Title
b

Bob Colner

05/10/2022, 2:39 PM
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?
k

Kevin Kho

05/10/2022, 2:41 PM
Which sample are you following? The one here ?
a

alex

05/10/2022, 2:41 PM
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!
a

Andrew Huang

05/10/2022, 3:58 PM
Thanks for letting us know! I created a PR to improve installation instructions https://github.com/PrefectHQ/prefect-gcp/pull/18