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

no module name tensorflow_probability #3

Closed
devbhanu opened this issue Oct 19, 2018 · 6 comments
Closed

no module name tensorflow_probability #3

devbhanu opened this issue Oct 19, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@devbhanu
Copy link

import graph_nets as gp
Traceback (most recent call last):
File "", line 1, in
File "/home/bhanuteja/anaconda3/lib/python3.6/site-packages/graph_nets/init.py", line 21, in
from graph_nets import blocks
File "/home/desktopname/anaconda3/lib/python3.6/site-packages/graph_nets/blocks.py", line 38, in
import sonnet as snt
File "/home/desktopname /anaconda3/lib/python3.6/site-packages/sonnet/init.py", line 42, in
from sonnet.python import custom_getters
File "/home/desktopname/anaconda3/lib/python3.6/site-packages/sonnet/python/custom_getters/init.py", line 21, in
from sonnet.python.custom_getters import bayes_by_backprop
File "/home/desktopname/anaconda3/lib/python3.6/site-packages/sonnet/python/custom_getters/bayes_by_backprop.py", line 94, in
import tensorflow_probability as tfp

@tomas-wood
Copy link

Go install it.
https://github.com/tensorflow/probability

@alvarosg
Copy link
Collaborator

See this issue.

The current fix is: pip install -U dm-sonnet==1.23

@jhamrick
Copy link
Collaborator

For now, we have released a version which pins the version of sonnet to 1.23. Let's keep this issue open though so we remember to unpin it after the problem is fixed upstream.

@jhamrick jhamrick added the bug Something isn't working label Oct 22, 2018
@IMBurbank
Copy link

IMBurbank commented Oct 22, 2018

Hopefully this adds some useful information to the issue.

I haven't checked Colab, but Graph Nets seems to work locally with a fresh install using Tensorflow's Docker image.

I just checked the Docker images I proposed in PR #4 in light of this bug label. Those images only pull from Tensorflow base-images and follow your current install instructions.

FROM tensorflow/tensorflow

RUN pip install \
        graph_nets \
        tensorflow_probability \
...

dm-sonnet isn't explicitly installed, and all of the images run the tests and demos successfully.

For example, using the Graph Nets images I'm currently hosting

docker run --rm -u $(id -u):$(id -g) -p 8888:8888 -it imburbank/graph_nets:latest-demos

I just ran the shortest_path.

shortest-path-screenshot

@QianSong-Cherry
Copy link

ModuleNotFoundError: No module named 'tensorflow.contrib.framework.argsort'

Hi, I want to know which tensorflow version I should install?

@QianSong-Cherry
Copy link

ModuleNotFoundError: No module named 'tensorflow.contrib.framework.argsort'

Hi, I want to know which tensorflow version I should install?

I upgraded tensorflow to 1.12, now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants