No handlers could be found for logger "grpc._plugin_wrapping"
(完整错误文本)
类似
https://github.com/googlecodelabs/iot-data-pipeline/issues/6
我们正在使用python2.7和googlecloud,googlecloud语言。
预期没有错误,代码以前正在工作。不知道什么是导火索。错误发生在
client.analyze_entities()
from google.cloud import language
creds = {
...
}
client = language.LanguageServiceClient(credentials=creds)
class EntityExtractionModule(BaseModule):
"""
Extract entities from text
"""
def __init__(self, data):
BaseModule.__init__(self, data)
def run(self):
document = language.types.Document(content=full_text, language='en', type='PLAIN_TEXT',)
r = client.analyze_entities(
document=document,
encoding_type='UTF32',
)
requests_log["entities"] = r