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

tfp-nightly Import error #49

Closed
nklarer opened this issue May 22, 2018 · 2 comments
Closed

tfp-nightly Import error #49

nklarer opened this issue May 22, 2018 · 2 comments

Comments

@nklarer
Copy link

nklarer commented May 22, 2018

Hi TFP Team,

I recently ran a Colab that functioned last week. It seems that the latest TFP nightly install has trouble importing the following function:

` ---> 22 from tensorflow.python.keras._impl.keras.backend import abs
23 from tensorflow.python.keras._impl.keras.backend import all
24 from tensorflow.python.keras._impl.keras.backend import any

ImportError: cannot import name 'abs' `

So, I reverted the tfp-nightly install to an earlier developer version based on the syntax available to me with pip show:

!pip install tfp-nightly==0.0.1.dev20180512

Unfortunately, I then ran into the following error:

`---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers

ImportError: cannot import name pywrap_tensorflow`

Which supposedly has to do with running Tensorflow in the install directory. So, I tried to cd out of the install directory - but colab limits changing directories. I will attempt to run this program in a Jupyter notebook to see if this resolves and update you then.

@nklarer
Copy link
Author

nklarer commented May 22, 2018

I have confirmed that the notebook runs locally using the following TFP version. It does not run in colab using this version.
Name: tfp-nightly Version: 0.0.1.dev20180503 Summary: Probabilistic modeling and statistical inference in TensorFlow Home-page: http://github.com/tensorflow/probability
Which means that I believe I've identified a compatibility problem with colab.

@srvasude
Copy link
Member

Going to close, because I think this issue is fixed. Please reopen if otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants