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

Import Error #918

Open
spjohn opened this issue Aug 11, 2018 · 9 comments
Open

Import Error #918

spjohn opened this issue Aug 11, 2018 · 9 comments

Comments

@spjohn
Copy link

spjohn commented Aug 11, 2018

import edward is giving Import Error.
ImportError: cannot import name 'set_shapes_for_outputs'

@gowthamasu
Copy link

from .conv import register_converters as register_converters
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\gowth\Anaconda3\envs\py36\lib\site-packages\edward_init
.py", line 5, in
from edward import criticisms
File "C:\Users\gowth\Anaconda3\envs\py36\lib\site-packages\edward\criticisms_init
.py", line 7, in
from edward.criticisms.evaluate import *
File "C:\Users\gowth\Anaconda3\envs\py36\lib\site-packages\edward\criticisms\evaluate.py", line 10, in
from edward.util import check_data, get_session, compute_multinomial_mode,
File "C:\Users\gowth\Anaconda3\envs\py36\lib\site-packages\edward\util_init_.py", line 10, in
from edward.util.random_variables import *
File "C:\Users\gowth\Anaconda3\envs\py36\lib\site-packages\edward\util\random_variables.py", line 15, in
from tensorflow.python.framework.ops import set_shapes_for_outputs
ImportError: cannot import name 'set_shapes_for_outputs'

@jamesbsilva
Copy link

Same here

@liuchenbaidu
Copy link

import edward
Traceback (most recent call last):
File "", line 1, in
File "/home/liuchen/anaconda3/lib/python3.6/site-packages/edward/init.py", line 5, in
from edward import criticisms
File "/home/liuchen/anaconda3/lib/python3.6/site-packages/edward/criticisms/init.py", line 7, in
from edward.criticisms.evaluate import *
File "/home/liuchen/anaconda3/lib/python3.6/site-packages/edward/criticisms/evaluate.py", line 10, in
from edward.util import check_data, get_session, compute_multinomial_mode,
File "/home/liuchen/anaconda3/lib/python3.6/site-packages/edward/util/init.py", line 10, in
from edward.util.random_variables import *
File "/home/liuchen/anaconda3/lib/python3.6/site-packages/edward/util/random_variables.py", line 15, in
from tensorflow.python.framework.ops import set_shapes_for_outputs
ImportError: cannot import name 'set_shapes_for_outputs'

@gowthamasu
Copy link

I downgraded tf version to required specifications, it is working now. It's tf version 1.2.0

@xixi9
Copy link

xixi9 commented Nov 3, 2018

first
import tensorflow as tf
then
from edward.models import Normal

@cpoptic
Copy link

cpoptic commented Dec 19, 2018

Could edward devs please be more explicit about which version of tensorflow is required to run edward? It's frustrating and a time-sink to iterate through various TF versions trying to find the most recent version that is still compatible with Edward.

The TF API is changing rapidly, so it's hard to keep up, but even a simple requirements.txt would suffice.

@wingwingtwo
Copy link

it still does not work

first
import tensorflow as tf
then
from edward.models import Normal

@tqi2
Copy link

tqi2 commented Mar 1, 2019

After tried many times with different combinations of tensorflow and edward version, I finally found the newest Edward and tensorflow 1.2.0 works!

@cymqqqq
Copy link

cymqqqq commented Jan 16, 2020

use google colab
install tf1.2.0 can solve this question

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

9 participants