Skip to content

ImportError: cannot import name tf_logging #1

@qinghua2016

Description

@qinghua2016

I can successfuly run " bazel test --local_resources 2048,.5,1.0 --genrule_strategy=standalone syntaxnet/... util/utf8/..." with 17 tests pass. Also I succeed to run "echo 'Bob brought the pizza to Alice.' | syntaxnet/demo.sh". But when I run the command "python pyparseface.py "in terminal, it print as "I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:99] Couldn't open CUDA library libcudnn.so. LD_LIBRARY_PATH:
I tensorflow/stream_executor/cuda/cuda_dnn.cc:1562] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
Traceback (most recent call last):
File "pyparseface.py", line 19, in
from tensorflow.python.platform import tf_logging as logging
ImportError: cannot import name tf_logging
"
it is actually that the python code also failed to do operations as follows:
"from syntaxnet import sentence_pb2, structured_graph_builder
from syntaxnet.ops import gen_parser_ops"
Do you know why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions