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

Installation error with 1.2.4 #568

Closed
jingsliu opened this issue Mar 21, 2017 · 7 comments
Closed

Installation error with 1.2.4 #568

jingsliu opened this issue Mar 21, 2017 · 7 comments

Comments

@jingsliu
Copy link

Hi I got the following error importing the package after successful installation (pip --user on Linux):

import edward as ed
Traceback (most recent call last):
File "", line 1, in
File "xxx/.local/lib/python2.7/site-packages/edward/init.py", line 6, in
from edward import inferences
File "xxx/.local/lib/python2.7/site-packages/edward/inferences/init.py", line 11, in
from edward.inferences.laplace import *
File "xxx/.local/lib/python2.7/site-packages/edward/inferences/laplace.py", line 9, in
from edward.models import
ImportError: cannot import name MultivariateNormalCholesky

Could you please help check?
Also it'll be great if you can provide url of the binaries of previous versions. Thanks!

@dustinvtran
Copy link
Member

Can you provide your TensorFlow version? Most likely this means you need to update TensorFlow. Also see http://edwardlib.org/troubleshooting.

@jingsliu
Copy link
Author

It's version 1.0.0 so I thought it was fine.

@dustinvtran
Copy link
Member

Can you try the following line?

from tensorflow.contrib.distributions import MultivariateNormalCholesky

This should be supported in r1.0.

If you're using a master branch and not a stable release of TensorFlow, this isn't supported. (TensorFlow's distribution API changed, which we haven't officially supported yet (#452).)

@jingsliu
Copy link
Author

Thanks and that's it.
Unfortunately I'm working with the tensorflow installed by the system administrator... Any idea if an older version of tensorflow might work, or how soon would you expect this being supported?

@dustinvtran
Copy link
Member

All TensorFlow version releases after 1.0.0a0 are supported.

how soon would you expect this being supported?

We don't plan to support the newest API changes in TensorFlow's master branch until it makes it into a stable release.

Hope that helps. Closing issue; also see #452 for more details.

@bhomass
Copy link

bhomass commented Mar 9, 2018

I installed edward using conda and got version and got version 1.2.4. It automatically included tensorflow version 1.5.0. I am getting this ImportError: cannot import name 'MultivariateNormalCholesky' still, even for this version. What should I do to fix?

@dustinvtran
Copy link
Member

dustinvtran commented Mar 9, 2018

Edward 1.2.4 is definitely out of date; I also don't recall what TF version it's compatible with. Maybe update to latest Edward? Also, can you make a new Github issue if you're still having difficulties?

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

3 participants