-
Notifications
You must be signed in to change notification settings - Fork 74
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
ImportError: cannot import name 'docstring' from 'tensorflow_probability.python.util' #37
Comments
Are you installing Edward2's development version?
The stable version hasn't been updated yet. |
@dustinvtran No, as I had said above, I was installing
So I tried to install To be specific, I am trying to run this example http://edwardlib.org/tutorials/bayesian-neural-network, which is supposed to run with Now, I have another error, but it is related to TensorFlow 2.
which is apparently due to inconsistent use of types. See https://stackoverflow.com/a/54255819/3924118. So, in the file https://github.com/blei-lab/edward/blob/master/examples/bayesian_nn.py, I changed the function Anyway, after having installed edward2 with |
Edward2 is a separate version number because it's not backwards compatible like that. We're still in the process of updating those examples to an Edward2-like workflow.
That's interesting.. That shouldn't happen. I'll look into it! |
Fixes #37. PiperOrigin-RevId: 276361268
Fixes #37. PiperOrigin-RevId: 276361268
I tried installing it with the above command. The installation was succesful but whenever I import it there is an error like "No module named edward2" |
I have a virtual environment (with Python 3.7.4) where I installed
edward2
,tensorflow
(2) andtensorflow_probability
. When I try to importedward2
withimport edward2 as ed
, I get the errorHere's the full Traceback
The text was updated successfully, but these errors were encountered: