# Installation issue

**URL:** <https://discourse.edwardlib.org/t/installation-issue/79>\
**Category:** General\
**Created:** [April 14, 2017, 6:49am UTC](https://discourse.edwardlib.org/t/installation-issue/79 "2017-04-14T06:49:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpchen](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jpchen](https://discourse.edwardlib.org/u/jpchen)\
**Post date:** [April 14, 2017, 6:49am UTC](https://discourse.edwardlib.org/t/installation-issue/79/1 "2017-04-14T06:49:03Z")

</div>

Trying to setup Edward on Mac using the GAN tutorial.

```auto
git:(master) ✗ pip install edward
Collecting edward
  Downloading edward-1.2.4-py2-none-any.whl (57kB)
    100% |████████████████████████████████| 61kB 1.6MB/s
Requirement already satisfied: numpy>=1.7 in /Library/Python/2.7/site-packages (from edward)
Requirement already satisfied: six>=1.10.0 in /Library/Python/2.7/site-packages (from edward)
Installing collected packages: edward
Successfully installed edward-1.2.4
git:(master) ✗ python main.py
Traceback (most recent call last):
  File "main.py", line 10, in <module>
    import edward as ed
  File "/usr/local/lib/python2.7/site-packages/edward/ __init__.py", line 5, in <module>
    from edward import criticisms
  File "/usr/local/lib/python2.7/site-packages/edward/criticisms/ __init__.py", line 5, in <module>
    from edward.criticisms.evaluate import *
  File "/usr/local/lib/python2.7/site-packages/edward/criticisms/evaluate.py", line 9, in <module>
    from edward.models import RandomVariable
  File "/usr/local/lib/python2.7/site-packages/edward/models/ __init__.py", line 5, in <module>
    from edward.models.dirichlet_process import *
  File "/usr/local/lib/python2.7/site-packages/edward/models/dirichlet_process.py", line 7, in <module>
    from edward.models.random_variable import RandomVariable
  File "/usr/local/lib/python2.7/site-packages/edward/models/random_variable.py", line 7, in <module>
    from tensorflow.python.client.session import \
ImportError: cannot import name register_session_run_conversion_functions

```

---

<div class="post-metadata">

**Author:** ![dustin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.edwardlib.org/dustin/32/134_2.png) [@dustin](https://discourse.edwardlib.org/u/dustin)\
**Post date:** [April 14, 2017, 7:00am UTC](https://discourse.edwardlib.org/t/installation-issue/79/2 "2017-04-14T07:00:40Z")

</div>

Thanks for raising this.

Can you report your TensorFlow version? From the troubleshooting page ([http://edwardlib.org/troubleshooting](http://edwardlib.org/troubleshooting)), you need TensorFlow between 1.0.0a0 and 1.0.1. I think that import error occurs if you have something like TensorFlow \<=0.7. In any case, updating to the latest TensorFlow will solve it.

---

<div class="post-metadata">

**Author:** ![jpchen](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jpchen](https://discourse.edwardlib.org/u/jpchen)\
**Post date:** [April 14, 2017, 9:04am UTC](https://discourse.edwardlib.org/t/installation-issue/79/3 "2017-04-14T09:04:43Z")

</div>

Ah got it, thanks! Do you know when support for 1.1.0 be merged in?

---

<div class="post-metadata">

**Author:** ![dustin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.edwardlib.org/dustin/32/134_2.png) [@dustin](https://discourse.edwardlib.org/u/dustin)\
**Post date:** [April 14, 2017, 4:10pm UTC](https://discourse.edwardlib.org/t/installation-issue/79/4 "2017-04-14T16:10:17Z")

</div>

We’ll officially support 1.1.0 when it becomes a stable and not pre- release.

---

<div class="post-metadata">

**Author:** ![sonaliparbhoo](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sonaliparbhoo](https://discourse.edwardlib.org/u/sonaliparbhoo)\
**Post date:** [August 31, 2017, 8:40am UTC](https://discourse.edwardlib.org/t/installation-issue/79/5 "2017-08-31T08:40:06Z")

</div>

Hi. I’m also getting a similar issue with my installation of edward. Here’s the message I get. I checked my version of tensorflow - currently have version 1.3.0 installed so I’m not sure what the problem is

Traceback (most recent call last):  
File “”, line 1, in   
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/ **init**.py”, line 5, in   
from edward import criticisms  
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/criticisms/ **init**.py”, line 5, in   
from edward.criticisms.evaluate import \*  
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/criticisms/evaluate.py”, line 9, in   
from edward.models import RandomVariable  
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/models/ **init**.py”, line 5, in   
from edward.models.dirichlet\_process import \*  
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/models/dirichlet\_process.py”, line 7, in   
from edward.models.random\_variable import RandomVariable  
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/edward/models/random\_variable.py”, line 11, in   
raise ImportError("{0}. Your TensorFlow version is not supported.".format(e))  
ImportError: cannot import name register\_session\_run\_conversion\_functions. Your TensorFlow version is not supported.

---

<div class="post-metadata">

**Author:** ![dustin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.edwardlib.org/dustin/32/134_2.png) [@dustin](https://discourse.edwardlib.org/u/dustin)\
**Post date:** [August 31, 2017, 7:07pm UTC](https://discourse.edwardlib.org/t/installation-issue/79/6 "2017-08-31T19:07:59Z")

</div>

Are you sure your TF install works correctly? Try the following in terminal:

```python
print(tf. __version__ )
from tensorflow.python.client.session import \
      register_session_run_conversion_functions

```

---

<div class="post-metadata">

**Author:** ![sonaliparbhoo](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sonaliparbhoo](https://discourse.edwardlib.org/u/sonaliparbhoo)\
**Post date:** [August 31, 2017, 7:25pm UTC](https://discourse.edwardlib.org/t/installation-issue/79/8 "2017-08-31T19:25:18Z")

</div>

I get an error when I try both these commands:

print(tf. **version** )  
Traceback (most recent call last):  
File “”, line 1, in   
AttributeError: ‘module’ object has no attribute ‘ **version** ’

from tensorflow.python.client.session import register\_session\_run\_conversion\_functions  
Traceback (most recent call last):  
File “”, line 1, in   
ImportError: cannot import name register\_session\_run\_conversion\_functions

However, when I try the examples shown on the tensorflow website where you start a session and print a message etc, these seem to work without any errors.
