Skip to content

AttributeError: module 'tensorflow._api.v2.compat.v1' has no attribute 'pywrap_tensorflow' #2106

@janosh

Description

@janosh

Cross-posted here from TF issue 27719, as it might be a problem with TensorBoard.

System information

  • TensorBoard version: tb-nightly=1.14.0a20190319
  • TensorFlow version: tf-nightly-2-0-preview=2.0.0.dev20190411
  • OS: macOS 10.14.4
  • TensorFlow installed from: binary
  • TensorFlow version: 2.0.0-dev20190410 (latest nightly)
  • Python version: 3.6.7 (miniconda)

Current behavior & code to reproduce the issue

The following code

import tensorflow as tf

summary_writer = tf.summary.create_file_writer("tmp")

with summary_writer.as_default():
    for i in range(100):
        tf.summary.scalar("index", i, step=i)


summary_writer.close()

outputs this events file to /tmp but trying to view it with tensorboard --logdir ./tmp throws

Exception in thread Reloader:
AttributeError: module 'tensorflow._api.v2.compat.v1' has no attribute 'pywrap_tensorflow'

followed by

W0410 17:26:13.712886 123145489154048 core_plugin.py:172] Unable to get first event timestamp for run .: No event timestamp could be found

and an empty TB dashboard. Any ideas what's causing this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions