Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"ERROR: Cannot find './util/python/python_lib'" #2703

@jplu

Description

@jplu

Hello,

I have the following error when I try to compile the pip package from the source code.

Environment info

Operating System: Ubuntu 14.04

Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):

ls -l /usr/local/cuda/lib64/libcud*
-rw-r--r-- 1 root root   322936 Aug 15  2015 /usr/local/cuda/lib64/libcudadevrt.a
lrwxrwxrwx 1 root root       16 Aug 15  2015 /usr/local/cuda/lib64/libcudart.so -> libcudart.so.7.5
lrwxrwxrwx 1 root root       19 Aug 15  2015 /usr/local/cuda/lib64/libcudart.so.7.5 -> libcudart.so.7.5.18
-rwxr-xr-x 1 root root   383336 Aug 15  2015 /usr/local/cuda/lib64/libcudart.so.7.5.18
-rw-r--r-- 1 root root   720192 Aug 15  2015 /usr/local/cuda/lib64/libcudart_static.a
lrwxrwxrwx 1 root root       13 Feb  9 18:48 /usr/local/cuda/lib64/libcudnn.so -> libcudnn.so.4
lrwxrwxrwx 1 root root       17 Feb  9 18:48 /usr/local/cuda/lib64/libcudnn.so.4 -> libcudnn.so.4.0.7
-rwxrwxr-x 1 root root 61453024 Feb  8 23:12 /usr/local/cuda/lib64/libcudnn.so.4.0.7
-rw-rw-r-- 1 root root 62025862 Feb  8 23:12 /usr/local/cuda/lib64/libcudnn_static.a

If installed from sources, provide the commit hash: ea9e00a

Steps to reproduce

  1. git clone https://github.com/tensorflow/tensorflow
  2. cd tensorflow
  3. ./configure
  4. bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
  5. bazel build -c opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures

Logs or other output that would be helpful

ERROR: /home/plu/git/tensorflow/util/python/BUILD:14:1: Executing genrule //util/python:python_check failed: bash failed: error executing command 
  (cd /homes/plu/.cache/bazel/_bazel_plu/5fecb6612d2e95475ff53a54e377c3f7/tensorflow && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/packages/bin:.:/homes/plu/docker/:/usr/local/cuda-7.5/bin/:/homes/plu/bin/:/usr/local/openmpi-1.10.1/bin/ \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; OUTPUTDIR="bazel-out/host/genfiles/util/python/"; util/python/python_config.sh --check && touch $OUTPUTDIR/python_checked'): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: bash failed: error executing command 
  (cd /homes/plu/.cache/bazel/_bazel_plu/5fecb6612d2e95475ff53a54e377c3f7/tensorflow && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/packages/bin:.:/homes/plu/docker/:/usr/local/cuda-7.5/bin/:/homes/plu/bin/:/usr/local/openmpi-1.10.1/bin/ \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; OUTPUTDIR="bazel-out/host/genfiles/util/python/"; util/python/python_config.sh --check && touch $OUTPUTDIR/python_checked'): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.


ERROR: Cannot find './util/python/python_lib'.  Did you run configure?

But, I do have this folder locally in the Tensorflow repository. Did I do something wrong? Or it is a bug coming from Tensorflow?

Thanks in advance for any help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions