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

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package #29973

Closed
harsh204016 opened this issue Jun 19, 2019 · 11 comments
Closed
Assignees
Labels
stat:awaiting response Status - Awaiting response from author subtype:bazel Bazel related Build_Installation issues subtype:windows Windows Build/Installation Issues TF 1.13 Issues related to TF 1.13 type:build/install Build and install issues

Comments

@harsh204016
Copy link

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
Hello Tensorflow team
System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows 10 64bit
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:NA
  • TensorFlow installed from (source or binary):Don't know
  • TensorFlow version:1.13.1
  • Python version:3.6.5
  • Installed using virtualenv? pip? conda? :pip
  • Bazel version (if compiling from source):0.22
  • GCC/Compiler version (if compiling from source):Don't know
  • CUDA/cuDNN version:NA
  • GPU model and memory:NA

Describe the problem
I am following the commands Build from source on Windows and got stuck

C:\Users\DELL\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
c:\users\dell\tensorflow/tools/bazel.rc
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=120
INFO: Options provided by the client:
'build' options: --python_path=C:/Users/DELL/Miniconda3/python.exe
INFO: Reading rc options for 'build' from c:\users\dell\tensorflow.tf_configure.bazelrc:
'build' options: --action_env PYTHON_BIN_PATH=C:/Users/DELL/Miniconda3/python.exe --action_env PYTHON_LIB_PATH=C:/Users/DELL/Miniconda3/lib/site-packages --python_path=C:/Users/DELL/Miniconda3/python.exe --action_env TF_NEED_OPENCL_SYCL=0 --action_env TF_NEED_CUDA=0 --action_env TF_DOWNLOAD_CLANG=0 --define grpc_no_ares=true --strip=always --config monolithic --copt=-w --host_copt=-w --verbose_failures
ERROR: Config value monolithic is not defined in any .rc file
INFO: Invocation ID: 0388987f-5098-402f-afd1-3cf7ab4f3e40

Provide the exact sequence of commands / steps that you executed before running into the problem
I installed Msys2
then used pacman -S git patch unzip
set path as C:\msys64\usr\bin\bash.exe for BAZEL_SH
I installed Visual C++ Build Tools 2015
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
git checkout r1.9
python ./configure.py
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
I tried many ways to resolve this but can't find the solution please help me out and if possible please make video for this

@achandraa achandraa self-assigned this Jun 20, 2019
@achandraa achandraa added subtype:bazel Bazel related Build_Installation issues subtype:windows Windows Build/Installation Issues TF 1.13 Issues related to TF 1.13 type:build/install Build and install issues labels Jun 20, 2019
@achandraa
Copy link

Please have a look on this similar issue and let us know if that resolves the error. Thanks!

@achandraa achandraa added the stat:awaiting response Status - Awaiting response from author label Jun 20, 2019
@achandraa
Copy link

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@harsh204016
Copy link
Author

while running the command git checkout branchname
which branchname I have to used in this command??

@mihaimaruseac
Copy link
Collaborator

Where did you get the command from? There is some context which is missing in your question above

@harsh204016
Copy link
Author

I am following the commands given on this

Build from source on Windows
https://www.tensorflow.org/install/source_windows

@mihaimaruseac
Copy link
Collaborator

Quoting from there

git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow

The repo defaults to the master development branch. You can also checkout a release branch to build:

git checkout branch_name  # r1.9, r1.10, etc.

You can use master (getting you the latest code) or the release branch corresponding to the TF version you want to build from source (e.g., r1.13 for 1.13.* series)

@harsh204016
Copy link
Author

Now when I am running this command
python ./configure.py

I am getting this error:

(base) C:\Users\DELL\tensorflow>python ./configure.py
python: can't open file './configure.py': [Errno 2] No such file or directory

@mihaimaruseac
Copy link
Collaborator

Do you have configure.py in that directory? Try dir/ls

@harsh204016
Copy link
Author

Yes,In tensorflow folder configure file is present but not in .py extension.

@mihaimaruseac
Copy link
Collaborator

That's strange. It is supposed to exist in both formats as configure just calls configure.py:

"$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"

@mihaimaruseac
Copy link
Collaborator

Most likely you didn't get a full clone of the repository, or accidentally removed files. I suggest trying again from scratch, from a new fresh clone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author subtype:bazel Bazel related Build_Installation issues subtype:windows Windows Build/Installation Issues TF 1.13 Issues related to TF 1.13 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants