Skip to content

Fix AttributeError in courses/ai-agents-with-databases/notebooks/1_setup_and_explore_databases.ipynb - #3205

Open
LorenzoPeve wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
LorenzoPeve:fix/google-auth-transport-requests-import
Open

LorenzoPeve wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
LorenzoPeve:fix/google-auth-transport-requests-import

Conversation

@LorenzoPeve

Copy link
Copy Markdown

The cell imports google.auth and then calls google.auth.transport.requests.AuthorizedSession, but google.auth.transport.requests is a submodule that is not loaded by importing the parent package.

This raises AttributeError: module 'google.auth.transport' has no attribute 'requests'" unless some earlier import happens to have loaded it.

…equests

The cell imports google.auth and then calls
google.auth.transport.requests.AuthorizedSession, but google.auth.transport.requests
is a submodule that is not loaded by importing the parent package. This raises
"AttributeError: module 'google.auth.transport' has no attribute 'requests'"
unless some earlier import happens to have loaded it.
@LorenzoPeve

Copy link
Copy Markdown
Author

@googlyrahman

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