-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Python package is missing ModuleSpec in tensorflow.__spec__ in tf 1.14.0 #30028
Comments
importlib throws the same error. Can't do custom imports in 1.14.
|
Another data point: this also happens in nightly |
Sorry for the breakage! This is caused by adding a module wrapper that prints deprecation messages. I will send a change to fix it. |
tensorflow#30184, tensorflow#30028. Also, while at it, reducing maximum deprecation warnings to 1 per module to reduce amount of spam. PiperOrigin-RevId: 255628386
Closing this issue since the associated PR has been merged. Thanks! |
Is there a work around in the mean time? |
We'll get the 1.14.1 patch release this week. |
Update: Instead of a 1.14.1 patch release, we will get a 1.15 version in a few weeks. Sorry for the extra delay this causes. |
System information
Describe the current behavior
In TF 1.14.0 the module spec in
tensorflow.__spec__
is None:Describe the expected behavior
This is different from tf 1.13.1 where it works as expected:
Missing spec causes some problems, e.g. pkgutil now fails when trying to find tensorflow. Note that the first call to
find_loader
is successful, it only fails after tensorflow is imported:Code to reproduce the issue
See above
Other info / logs
I've tested this using official tf docker image (tensorflow/tensorflow:1.14.0-py3) and also using python docker image (python:3.6) with tensorflow installed with pip.
The text was updated successfully, but these errors were encountered: