tensorflow / tensorflow/probability

Error on import of tensorflow_probability #321

Open
#955 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

tensorflow-gpu 2.0.0
tensorflow-probability 0.9.0
when I try to import tensorflow_probability I got following error:

import tensorflow_probability as tfp
Traceback (most recent call last):
File "", line 1, in
File "/home/jli/.local/lib/python3.6/site-packages/tensorflow_probability/init.py", line 75, in
from tensorflow_probability.python import * # pylint: disable=wildcard-import
File "/home/jli/.local/lib/python3.6/site-packages/tensorflow_probability/python/init.py", line 21, in
from tensorflow_probability.python import bijectors
File "/home/jli/.local/lib/python3.6/site-packages/tensorflow_probability/python/bijectors/init.py", line 23, in
from tensorflow_probability.python.bijectors.absolute_value import AbsoluteValue
File "/home/jli/.local/lib/python3.6/site-packages/tensorflow_probability/python/bijectors/absolute_value.py", line 23, in
from tensorflow_probability.python.bijectors import bijector
File "/home/jli/.local/lib/python3.6/site-packages/tensorflow_probability/python/bijectors/bijector.py", line 31, in
from tensorflow_probability.python.internal import assert_util
ModuleNotFoundError: No module named 'tensorflow_probability.python.internal'

**my pip list **
absl-py 0.8.1
alabaster 0.7.10
anaconda-client 1.6.14
anaconda-navigator 1.8.7
anaconda-project 0.8.2
asn1crypto 0.24.0
astor 0.8.0
astroid 1.6.3
astropy 3.0.2
astunparse 1.6.3
attrs 18.1.0
Babel 2.5.3
backcall 0.1.0
backports.shutil-get-terminal-size 1.0.0
beautifulsoup4 4.6.0
bitarray 0.8.1
bkcharts 0.2
blaze 0.11.3
bleach 1.5.0
bokeh 0.12.16
boto 2.48.0
Bottleneck 1.2.1
cachetools 3.1.1
certifi 2019.9.11
cffi 1.11.5
chardet 3.0.4
click 6.7
cloudpickle 1.4.1
clyent 1.2.2
colorama 0.3.9
conda 4.5.4
conda-build 3.10.5
conda-verify 2.0.0
contextlib2 0.5.5
cryptography 2.2.2
cycler 0.10.0
Cython 0.28.2
cytoolz 0.9.0.1
dask 0.17.5
datashape 0.5.4
decorator 4.3.0
distributed 1.21.8
docutils 0.14
efficientnet 1.0.0
entrypoints 0.2.3
et-xmlfile 1.0.1
fastcache 1.0.2
filelock 3.0.4
Flask 1.0.2
Flask-Cors 3.0.4
gast 0.2.2
gevent 1.3.0
glob2 0.6
gmpy2 2.0.8
google-auth 1.7.1
google-auth-oauthlib 0.4.1
google-pasta 0.2.0
graphviz 0.8.4
greenlet 0.4.13
grpcio 1.24.3
h5py 2.10.0
hasel 1.0.1
heapdict 1.0.0
html5lib 0.9999999
idna 2.6
image-classifiers 1.0.0
imageio 2.6.1
imagesize 1.0.0
ipykernel 4.8.2
ipython 6.4.0
ipython-genutils 0.2.0
ipywidgets 7.2.1
isort 4.3.4
itsdangerous 0.24
jdcal 1.4
jedi 0.12.0
Jinja2 2.10
joblib 0.14.0
jsonschema 2.6.0
jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 5.2.0
jupyter-core 4.4.0
jupyterlab 0.32.1
jupyterlab-launcher 0.10.5
kaggle 1.5.6
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
kiwisolver 1.0.1
lazy-object-proxy 1.3.1
lisa 1.21.0
llvmlite 0.23.1
locket 0.2.0
lxml 4.2.1
Markdown 3.1.1
MarkupSafe 1.0
matplotlib 3.1.1
mccabe 0.6.1
mistune 0.8.3
mkl-fft 1.0.0
mkl-random 1.0.1
more-itertools 4.1.0
mpmath 1.0.0
msgpack-python 0.5.6
multipledispatch 0.5.0
mxnet-cu100mkl 1.5.1.post0
navigator-updater 0.2.1
nbconvert 5.3.1
nbformat 4.4.0
networkx 2.1
nltk 3.3
nose 1.3.7
notebook 5.5.0
numba 0.38.0
numexpr 2.6.5
numpy 1.17.3
numpydoc 0.8.0
oauthlib 3.1.0
odo 0.5.1
olefile 0.45.1
opencv-python 4.1.1.26
openpyxl 2.5.3
opt-einsum 3.1.0
packaging 17.1
pandas 0.23.0
pandocfilters 1.4.2
parso 0.2.0
partd 0.3.8
path.py 11.0.1
pathlib2 2.3.2
patsy 0.5.0
pep8 1.7.1
pexpect 4.5.0
pickleshare 0.7.4
Pillow 5.4.1
pip 20.1.1
pkginfo 1.4.2
pluggy 0.6.0
ply 3.11
prompt-toolkit 1.0.15
protobuf 3.10.1
psutil 5.4.5
ptyprocess 0.5.2
py 1.5.3
pyasn1 0.4.8
pyasn1-modules 0.2.7
pycodestyle 2.4.0
pycosat 0.6.3
pycparser 2.18
pycrypto 2.6.1
pycurl 7.43.0.1
pyflakes 1.6.0
Pygments 2.2.0
pylint 1.8.4
pyodbc 4.0.23
pyOpenSSL 18.0.0
pyparsing 2.2.0
PySocks 1.6.8
pytest 3.5.1
pytest-arraydiff 0.2
pytest-astropy 0.3.0
pytest-doctestplus 0.1.3
pytest-openfiles 0.3.0
pytest-remotedata 0.2.1
python-dateutil 2.7.3
python-slugify 4.0.0
pytz 2018.4
PyWavelets 1.1.1
PyYAML 3.12
pyzmq 17.0.0
QtAwesome 0.4.4
qtconsole 4.3.1
QtPy 1.4.1
requests 2.22.0
requests-oauthlib 1.3.0
rope 0.10.7
rsa 4.0
ruamel-yaml 0.15.35
scikit-image 0.16.2
scikit-learn 0.21.3
scipy 1.4.1
seaborn 0.8.1
segmentation-models 1.0.0
Send2Trash 1.5.0
setuptools 41.6.0
simplegeneric 0.8.1
singledispatch 3.4.0.3
six 1.13.0
snowballstemmer 1.2.1
sortedcollections 0.6.1
sortedcontainers 1.5.10
Sphinx 1.7.4
sphinxcontrib-websupport 1.0.1
spyder 3.2.8
SQLAlchemy 1.2.7
statsmodels 0.9.0
sympy 1.1.1
tables 3.4.3
tblib 1.3.2
tensorboard 2.0.2
tensorflow-estimator 2.0.1
tensorflow-gpu 2.0.0
tensorflow-probability 0.10.0
termcolor 1.1.0
terminado 0.8.1
testpath 0.3.1
text-unidecode 1.3
toolz 0.9.0
tornado 5.0.2
tqdm 4.37.0
traitlets 4.3.2
typing 3.6.4
unicodecsv 0.14.1
urllib3 1.22
wcwidth 0.1.7
webencodings 0.5.1
Werkzeug 0.16.0
wheel 0.33.6
widgetsnbextension 3.2.1
wrapt 1.11.2
xlrd 1.1.0
XlsxWriter 1.0.4
xlwt 1.3.0
zict 0.1.3

Can anyone help me to sort it out? Many thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the import using the reported Python 3.6, tensorflow-gpu 2.0.0, and tensorflow-probability versions, then inspect the traceback showing the missing tensorflow_probability.python.internal module. Done means identifying a reproducible package or version issue and confirming that importing tensorflow_probability succeeds with the supported dependency combination.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.