Issue 1:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):win 10 x64

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary):pip install

TensorFlow version (use command below):tf_nightly_gpu_2.0_preview2.0.0.dev20190420

Python version:3.6.4

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

You can collect some of this information using our environment capture script

You can also obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the current behavior

import tensorflow as tf

Describe the expected behavior

Able to import

Code to reproduce the issue

import tensorflow as tf

Other info / logs

Traceback (most recent call last):

File "D:/Python/Project/PythonProject/TF20/code/NFFM/code/NFFM-2.0.py", line 21, in

import tensorflow as tf

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 42, in

from tensorflow.api.v2 import compat

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_api\v2\compat_init.py", line 21, in

from tensorflow.api.v2.compat import v1

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_api\v2\compat\v1_init.py", line 643, in

'tensorflow_estimator.python.estimator.api.v1.estimator'))

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\tools\component_api_helper.py", line 56, in package_hook

child_pkg = importlib.import_module(child_package_str)

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\importlib_init.py", line 126, in import_module

return _bootstrap.gcd_import(name[level:], package, level)

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_estimator\python\estimator\api_v1\estimator_init.py", line 8, in

from tensorflow_estimator.python.estimator.api.v1.estimator import experimental

File "C:\Users\Z&J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_estimator\python\estimator\api_v1\estimator\experimental_init.py", line 29, in

_sys.modules[name], "estimator.experimental")

TypeError: init() missing 1 required positional argument: 'deprecated_to_canonical'

Issue 2:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04

TensorFlow installed from (source or binary): Binary

TensorFlow version (use command below): tf-nightly-20190418

Python version: 3.6

Describe the current behavior

Nightly tensorflow crashes on importing estimator-nightly

Describe the expected behavior

Able to import

Code to reproduce the issue

pip install tf-nightly==1.14.1.dev20190418
import tensorflow

Other info / logs

https://colab.research.google.com/drive/1mvVTcAWHwJY1Kko49Ae93iQum6lT9W8D

Crash:

TypeError Traceback (most recent call last)
<ipython-input-2-64156d691fe5> in <module>()
----> 1 import tensorflow as tf

/usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py in <module>()
32 from tensorflow._api.v1 import autograph
33 from tensorflow._api.v1 import bitwise
---> 34 from tensorflow._api.v1 import compat
35 from tensorflow._api.v1 import config
36 from tensorflow._api.v1 import data

/usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/__init__.py in <module>()
19 from __future__ import print_function as _print_function
20
---> 21 from tensorflow._api.v1.compat import v1
22 from tensorflow._api.v1.compat import v2
23 from tensorflow.python.compat.compat import forward_compatibility_horizon

/usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/v1/__init__.py in <module>()
641 parent_package_str=__name__,
642 child_package_str=(
--> 643 'tensorflow_estimator.python.estimator.api._v1.estimator'))
644 _component_api_helper.package_hook(
645 parent_package_str=__name__,

/usr/local/lib/python3.6/dist-packages/tensorflow/python/tools/component_api_helper.py in package_hook(parent_package_str, child_package_str, error_msg)
54 parent_pkg = importlib.import_module(parent_package_str)
55 try:
---> 56 child_pkg = importlib.import_module(child_package_str)
57 except ImportError:
58 if error_msg:

/usr/lib/python3.6/importlib/__init__.py in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
127
128

/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/__init__.py in <module>()
6 from __future__ import print_function as _print_function
7
----> 8 from tensorflow_estimator._api.v1 import estimator
9 _names_with_underscore = []
10 __all__ = [_s for _s in dir() if not _s.startswith('_')]

/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/__init__.py in <module>()
6 from __future__ import print_function as _print_function
7
----> 8 from tensorflow_estimator._api.v1.estimator import experimental
9 from tensorflow_estimator._api.v1.estimator import export
10 from tensorflow_estimator._api.v1.estimator import inputs

/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/experimental/__init__.py in <module>()
33 if not isinstance(_sys.modules[__name__], _deprecation_wrapper.DeprecationWrapper):
34 _sys.modules[__name__] = _deprecation_wrapper.DeprecationWrapper(
---> 35 _sys.modules[__name__], "estimator.experimental", _DEPRECATED_TO_CANONICAL)

TypeError: __init__() takes 3 positional arguments but 4 were given