Closed hexiaoting closed 4 years ago
@hexiaoting, Could you please help me with the TensorFlow version you are using?
Also, were you able to build TensorBoard outside the virtual environment without any issues?
version:
(tensorboard-dev) [root@hwtnode tensorboard]# bazel-bin/tensorboard/tensorboard --version
2.2.0a0
outside the virtual environment, I can build TensorBoard successfully(binary TensorBoard in bazel-bin/tensorboard), but still no TensorBoard package in python environment.
@amahendrakar
bazel build tensorboard:tensorboard
produces a "binary" which is a script that launches a python interpreter to run the main.py for TensorBoard, and this script is specially configured to look for Python source files that were built with Bazel.
The build doesn't in any way update the normal Python environment that you have available.
If you want to build and install the TensorBoard pip package locally, you'll want to run instead the following from within a Python 3 virtual environment (first uninstalling tensorboard if you already had a pip package for it installed):
$ pip uninstall -y tensorboard tb-nightly tensorboard-plugin-wit
$ bazel run //tensorboard/pip_package:extract_pip_package -- /tmp/tb
$ pip install --upgrade /tmp/tb/tensorboard*py3*.whl
@nfelt That's exactly what I want, thank you.
I follow READER.md to install TensorBoard, That's ok,
But I cannot find TensorBoard in python env
Environment information (required)
(tensorboard-dev) [root@hwtnode repos]# python tensorboard/tensorboard/tools/diagnose_tensorboard.py
Diagnostics
Diagnostics output
`````` --- check: autoidentify INFO: diagnose_tensorboard.py version d515ab103e2b1cfcea2b096187741a0eeb8822ef --- check: general INFO: sys.version_info: sys.version_info(major=3, minor=6, micro=9, releaselevel='final', serial=0) INFO: os.name: posix INFO: os.uname(): posix.uname_result(sysname='Linux', nodename='hwtnode', release='3.10.0-862.11.6.el7.x86_64', version='#1 SMP Tue Aug 14 21:49:04 UTC 2018', machine='x86_64') INFO: sys.getwindowsversion(): N/A --- check: package_management INFO: has conda-meta: False INFO: $VIRTUAL_ENV: '/root/tensorboard-dev' --- check: installed_packages WARNING: no installation among: ['tb-nightly', 'tensorboard', 'tensorflow-tensorboard'] INFO: installed: tensorflow==1.14.0 INFO: installed: tensorflow-estimator==1.14.0 --- check: tensorboard_python_version Traceback (most recent call last): File "tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 470, in main suggestions.extend(check()) File "tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 78, in wrapper result = fn() File "tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 246, in tensorboard_python_version from tensorboard import version ModuleNotFoundError: No module named 'tensorboard' --- check: tensorflow_python_version /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /root/tensorboard-dev/lib64/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation. INFO: tensorflow.__version__: '1.14.0' INFO: tensorflow.__git_version__: 'v1.14.0-rc1-22-gaf24dc91b5' --- check: tensorboard_binary_path which: no tensorboard in (/root/tensorboard-dev/bin:/opt/node/bin:/opt/rh/rh-python36/root/usr/bin:/opt/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin:/root/bin) INFO: which tensorboard: None --- check: addrinfos socket.has_ipv6 = True socket.AF_UNSPEC =My question:
Does bazel build will not build TensorBoard python package? How can I build and install TensorBoard python package using TensorBoard source code?