blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 759 forks source link

ImportError: cannot import name 'set_shapes_for_outputs' #916

Open deehzee opened 6 years ago

deehzee commented 6 years ago

Installed package edward=1.35 (and tensorflow=1.9.0). Importing it in python gives ImportError:

$ python -c 'import edward'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/djn/anaconda3/envs/myra3/lib/python3.6/site-packages/edward/__init__.py", line 5, in <module>
    from edward import criticisms
  File "/Users/djn/anaconda3/envs/myra3/lib/python3.6/site-packages/edward/criticisms/__init__.py", line 7, in <module>
    from edward.criticisms.evaluate import *
  File "/Users/djn/anaconda3/envs/myra3/lib/python3.6/site-packages/edward/criticisms/evaluate.py", line 10, in <module>
    from edward.util import check_data, get_session, compute_multinomial_mode, \
  File "/Users/djn/anaconda3/envs/myra3/lib/python3.6/site-packages/edward/util/__init__.py", line 10, in <module>
    from edward.util.random_variables import *
  File "/Users/djn/anaconda3/envs/myra3/lib/python3.6/site-packages/edward/util/random_variables.py", line 15, in <module>
    from tensorflow.python.framework.ops import set_shapes_for_outputs
ImportError: cannot import name 'set_shapes_for_outputs'
sadatnfs commented 6 years ago

It's an ongoing issue with many other issues opened. TF changed their API and Edward still builds upon an older version

08zhangyi commented 6 years ago

You can see the problem #893https://github.com/blei-lab/edward/issues/893