Tests fail with tensorflow 2.2.0 release candidates
See original GitHub issueDescribe the bug
In #1077, I pinned the version of tensorflow to the first 2.2.0 release candidate https://github.com/tensorflow/tensorflow/releases/tag/v2.2.0-rc0.
Some of our tests failed. https://buildkite.com/stellar/stellargraph-public/builds/2284
To Reproduce
Steps to reproduce the behavior:
- Install the tensorflow release candidate
pip install tensorflow==2.2.0rc0
- Run test (e.g.
pytest
)
Observed behavior
4 tests fail:
FAILED tests/test_ensemble.py::test_compile - Failed: DID NOT RAISE <class 'V...
FAILED tests/reproducibility/test_graphsage.py::test_unsupervised[True] - Ass...
FAILED tests/reproducibility/test_graphsage.py::test_unsupervised[False] - As...
FAILED tests/reproducibility/test_graphsage.py::test_nai[True] - AssertionErr...
Expected behavior
No tests should fail.
Environment
Operating system: CI
Python version: 3.6.x and 3.7.x
Package versions:
absl-py==0.9.0
ansiwrap==0.8.4
appdirs==1.4.3
astunparse==1.6.3
attrs==19.3.0
backcall==0.1.0
black==19.10b0
bleach==3.1.1
boto==2.49.0
boto3==1.12.20
botocore==1.15.20
cachetools==4.0.0
certifi==2019.11.28
chardet==3.0.4
click==7.1.1
coverage==4.5.4
cycler==0.10.0
decorator==4.4.2
defusedxml==0.6.0
docopt==0.6.2
docutils==0.15.2
entrypoints==0.3
gast==0.3.3
gensim==3.8.1
google-auth==1.11.2
google-auth-oauthlib==0.4.1
google-pasta==0.1.8
grpcio==1.27.2
h5py==2.10.0
idna==2.9
importlib-metadata==1.5.0
ipykernel==5.1.4
ipython==7.13.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
isodate==0.6.0
jedi==0.16.0
Jinja2==2.11.1
jmespath==0.9.5
joblib==0.14.1
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.0.0
jupyter-console==6.1.0
jupyter-core==4.6.3
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
llvmlite==0.31.0
Markdown==3.2.1
MarkupSafe==1.1.1
matplotlib==3.2.0
mistune==0.8.4
more-itertools==8.2.0
mplleaflet==0.0.5
nbclient==0.1.0
nbconvert==5.6.1
nbformat==5.0.4
networkx==2.4
notebook==6.0.3
numba==0.48.0
numpy==1.18.1
oauthlib==3.1.0
opt-einsum==3.2.0
packaging==20.3
pandas==1.0.1
pandocfilters==1.4.2
papermill==2.0.0
parso==0.6.2
pathspec==0.7.0
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
prometheus-client==0.7.1
prompt-toolkit==3.0.4
protobuf==3.11.3
ptyprocess==0.6.0
py==1.8.1
py-cpuinfo==5.0.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.6.1
pyparsing==2.4.6
pyrsistent==0.15.7
pytest==5.3.1
pytest-benchmark==3.2.3
pytest-cov==2.8.1
python-dateutil==2.8.1
pytz==2019.3
PyYAML==5.3
pyzmq==19.0.0
qtconsole==4.7.1
QtPy==1.9.0
rdflib==4.2.2
regex==2020.2.20
requests==2.23.0
requests-oauthlib==1.3.0
rsa==4.0
s3transfer==0.3.3
scikit-learn==0.22.2.post1
scipy==1.4.1
seaborn==0.10.0
Send2Trash==1.5.0
six==1.14.0
smart-open==1.9.0
tenacity==6.1.0
tensorboard==2.1.1
tensorflow==2.2.0rc0
tensorflow-estimator==2.1.0
termcolor==1.1.0
terminado==0.8.3
testpath==0.4.4
textwrap3==0.9.2
toml==0.10.0
tornado==6.0.4
tqdm==4.43.0
traitlets==4.3.3
treon==0.1.3
typed-ast==1.4.1
urllib3==1.25.8
wcwidth==0.1.8
webencodings==0.5.1
Werkzeug==1.0.0
widgetsnbextension==3.5.1
wrapt==1.12.1
zipp==3.1.0
Additional context
N/A
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Tensorflow release 2.2.0 not found via pip install #39265
Sadly, pip install failed to install the update as it was unable to find release 2.2.0. (Clearing the cache of pip didn't help.) ......
Read more >Keras requires TensorFlow 2.2 or higher
I have both keras 2.4.3 and tensorflow 2.2.0 installed in anaconda environment. I uninstalled and installed jupiter notebook but it didn't help.
Read more >I can't install TensorFlow-macos a…
Yes, I am running python 3.8.10. And for whl files, I am using MacBook Pro 16' with intel CPU, so, I do have...
Read more >TensorFlow Model Analysis | TFX
The model we trained was for the Chicago Taxi Example, which uses the Taxi Trips dataset released by the City of Chicago. Explore...
Read more >Install spaCy · spaCy Usage Documentation
The latest spaCy releases are available over pip and conda. ... any pipelines have been loaded. require_gpu will raise an error if no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This seems to improve a lot (less failures) after upgrading from
2.2rc1
to2.2rc2
, I suspect it’s from this issue being resolved. There’s still some intermittent failures but it’s unclear how it compares to the flakiness prior to2.2
.Running
python -m pytest --count=300 tests/reproducibility/test_graphsage.py
(usingpytest-repeat
)Output:
The two failures out of 300 runs are for:
test_unsupervised[True]
(https://github.com/stellargraph/stellargraph/issues/1115)test_nai[False]
(new)Didn’t see any failures for #970 (I added
test_link_prediction[True]
back into the test set before running the above test)I didn’t include them here, because they’re huge and they’re available in the public buildkite logs linked in the description.