Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: cannot import discoveryengine #1371

Closed
1 task done
valkyriekngt opened this issue Nov 4, 2024 · 1 comment
Closed
1 task done

[Bug]: cannot import discoveryengine #1371

valkyriekngt opened this issue Nov 4, 2024 · 1 comment
Assignees

Comments

@valkyriekngt
Copy link

File Name

search/create_datastore_and_searach.ipynb

What happened?

from google.cloud import discoveryengine can't find library, even though it was installed with pip. Problem persists in colab, vertex ai workbench and colab enterprise

Relevant log output

ImportError                               Traceback (most recent call last)
<ipython-input-2-9ea4f4fd212d> in <cell line: 2>()
      1 from google.api_core.client_options import ClientOptions
----> 2 from google.cloud import discoveryengine
      3 
      4 PROJECT_ID = "YOUR_PROJECT_ID"  # @param {type:"string"}
      5 LOCATION = "global"

ImportError: cannot import name 'discoveryengine' from 'google.cloud' (unknown location)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@holtskinner
Copy link
Collaborator

Be sure that you restart the kernel after installing the library.

Also try editing the pip install command to be:

%pip install --user --force-reinstall -q google-cloud-discoveryengine

@holtskinner holtskinner self-assigned this Nov 4, 2024
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

No branches or pull requests

2 participants