--Hello,I would like to use Google Cloud NLP APIWhen I run the example code on https://cloud.google.com/natural-language/docs/quickstart-client-libraries in PythonI have this as resultTraceback (most recent call last):
File "google.py", line 2, in <module>
from google.cloud import language
File "/home/aa/anaconda3/lib/python3.6/site-packages/google/cloud/language.py", line 17, in <module>
from google.cloud.language_v1 import LanguageServiceClient
File "/home/aa/anaconda3/lib/python3.6/site-packages/google/cloud/language_v1/__init__.py", line 17, in <module>
from google.cloud.language_v1 import types
File "/home/aa/anaconda3/lib/python3.6/site-packages/google/cloud/language_v1/types.py", line 18, in <module>
from google.api_core.protobuf_helpers import get_messages
File "/home/aa/anaconda3/lib/python3.6/site-packages/google/api_core/__init__.py", line 20, in <module>
from pkg_resources import get_distribution
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
@_call_aside
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
f(*args, **kwargs)
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3123, in _initialize_master_working_set
for dist in working_set
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3123, in <genexpr>
for dist in working_set
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2633, in activate
declare_namespace(pkg)
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2170, in declare_namespace
_handle_ns(packageName, path_item)
File "/home/aa/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2105, in _handle_ns
loader.load_module(packageName)
File "/home/aa/rn/scripts/google.py", line 3, in <module>
from google.cloud.language import enums
ImportError: cannot import name 'enums'I will appreciate any help.Thanks
You received this message because you are subscribed to the Google Groups "cloud-nl-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-nl-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to cloud-nl-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-nl-discuss/13cb44b6-0988-40cb-9d46-6f883bdcceb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-nl-discu...@googlegroups.com.
To post to this group, send email to cloud-nl...@googlegroups.com.