Skip to content

examples: correct pip-install package names in two tutorial notebooks#14

Open
x4v13r64 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
x4v13r64:fix-notebook-pip-install-package-names
Open

examples: correct pip-install package names in two tutorial notebooks#14
x4v13r64 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
x4v13r64:fix-notebook-pip-install-package-names

Conversation

@x4v13r64

Copy link
Copy Markdown

Two of the example notebooks instruct the user to pip install package names that don't exist on PyPI.

examples/04-wrapper-agents.ipynb installs google-cloud-dialogflow-v2beta1. That name is unclaimed on PyPI. The actual Dialogflow client library is published as google-cloud-dialogflow; it exposes the v2beta1 API surface as a google.cloud.dialogflow_v2beta1 submodule, which is what the notebook later imports:

from google.cloud import dialogflow_v2beta1

examples/07-wrapper-iam.ipynb installs google-cloud-resourcemanager and google-cloud-iam-admin. Both names are unclaimed on PyPI. The canonical packages use different naming:

  • The Resource Manager client library is published as google-cloud-resource-manager (with hyphens between words).
  • The iam_admin_v1 module is distributed by the google-cloud-iam package, not a separate google-cloud-iam-admin package.

The notebook's embedded iam.py imports both modules from those packages:

from google.cloud import iam_admin_v1
from google.cloud import resourcemanager_v3

This PR replaces the three invalid names with the correct ones so the install cells actually resolve.

* 04-wrapper-agents.ipynb installed google-cloud-dialogflow-v2beta1 which
  is not a real PyPI package. The Dialogflow client library is
  google-cloud-dialogflow; v2beta1 is the API version the package exposes
  as a google.cloud.dialogflow_v2beta1 submodule.

* 07-wrapper-iam.ipynb installed google-cloud-resourcemanager (which is
  not the real package, the canonical name uses hyphens:
  google-cloud-resource-manager) and google-cloud-iam-admin (also not a
  real package, the iam_admin_v1 module is distributed by
  google-cloud-iam).

The notebooks resolve correctly with the corrected names because both
the dialogflow_v2beta1 and iam_admin_v1 modules referenced later in
each notebook live inside the renamed packages.
@google-cla

google-cla Bot commented May 25, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant