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

pin tensorflow-estimator to 2.1.0 #5438

Merged
merged 4 commits into from
Mar 19, 2020
Merged

pin tensorflow-estimator to 2.1.0 #5438

merged 4 commits into from
Mar 19, 2020

Conversation

m-vdb
Copy link
Collaborator

@m-vdb m-vdb commented Mar 18, 2020

Context
I tried to install rasa using poetry and python 3.7.7, and it failed with this error: tensorflow/tensorflow#37525

I tried the solution in this comment in my own project and it worked, so I am porting the change on the repo, so that other may benefit from the fix. (apparently I was not the only rasa user with this issue)

Proposed changes:

  • Pin the version of tensorflow-estimator.

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@CLAassistant
Copy link

CLAassistant commented Mar 18, 2020

CLA assistant check
All committers have signed the CLA.

@alwx
Copy link
Contributor

alwx commented Mar 18, 2020

If you change the dependencies then you should also update poetry.lock (it happens automatically when you run poetry update or poetry install)

@m-vdb
Copy link
Collaborator Author

m-vdb commented Mar 18, 2020

@alwx I figured, but I have a weird diff ⬇️

diff --git a/poetry.lock b/poetry.lock
index a70b763a6aa..ef544ef07e9 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -55,7 +55,7 @@ version = "0.6.3"
 aiohttp = ">=2.0.0,<4.0.0"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "A configurable sidebar-enabled Sphinx theme"
 name = "alabaster"
 optional = false
@@ -216,7 +216,7 @@ cryptography = ">=2.1.4"
 msrest = ">=0.6.10"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Internationalization utilities"
 name = "babel"
 optional = false
@@ -962,7 +962,7 @@ version = "1.1.0"
 idna = ">=2.0"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Getting image size from png/jpeg/jpeg2000/gif file"
 name = "imagesize"
 optional = false
@@ -1062,7 +1062,7 @@ python-versions = "*"
 version = "0.39"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "A very fast and expressive template engine."
 name = "jinja2"
 optional = false
@@ -1251,7 +1251,7 @@ setuptools = ">=36"
 testing = ["coverage", "pyyaml"]
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Safely add untrusted strings to HTML/XML markup."
 name = "markupsafe"
 optional = false
@@ -1689,7 +1689,6 @@ version = "2.5.0"
 [[package]]
 category = "main"
 description = "C parser in Python"
-marker = "sys_platform == \"win32\" and platform_python_implementation == \"CPython\""
 name = "pycparser"
 optional = false
 python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
@@ -1715,7 +1714,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
 version = "2.1.1"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Pygments is a syntax highlighting package written in Python."
 name = "pygments"
 optional = false
@@ -2067,7 +2066,7 @@ category = "main"
 description = "YAML parser and emitter for Python"
 name = "pyyaml"
 optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+python-versions = "*"
 version = "5.3"
 
 [[package]]
@@ -2423,7 +2422,7 @@ python = "<3.7"
 version = ">=2.1"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "This package provides 26 stemmers for 25 languages generated from Snowball algorithms."
 name = "snowballstemmer"
 optional = false
@@ -2469,7 +2468,7 @@ ja = ["mecab-python3 (0.7)"]
 ko = ["natto-py (0.9.0)"]
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Python documentation generator"
 name = "sphinx"
 optional = false
@@ -2527,7 +2526,7 @@ Sphinx = ">=1.7"
 test = ["pytest (>=3.1.0)", "typing-extensions (>=3.5)"]
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Read the Docs theme for Sphinx"
 name = "sphinx-rtd-theme"
 optional = false
@@ -2585,7 +2584,7 @@ version = "1.0.2"
 sphinx = "*"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Sphinx extension that allows building versioned docs for self-hosting."
 name = "sphinxcontrib-versioning"
 optional = false
@@ -2603,7 +2602,7 @@ type = "git"
 url = "https://github.com/RasaHQ/sphinxcontrib-versioning.git"
 
 [[package]]
-category = "dev"
+category = "main"
 description = "Sphinx API for Web Apps"
 name = "sphinxcontrib-websupport"
 optional = false
@@ -3150,7 +3149,7 @@ spacy = ["spacy"]
 transformers = ["transformers"]
 
 [metadata]
-content-hash = "f11b37a3b8735943cebca76d0c8307b67dd2723641c7455b26b19ffadc9be14f"
+content-hash = "0aac797c555c164699a94d6324622c6cd8a8fec919ccac1a685f4583d5a1dc14"
 python-versions = "^3.6"
 
 [metadata.files]
@@ -3266,6 +3265,7 @@ boto = [
     {file = "boto-2.49.0.tar.gz", hash = "sha256:ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"},
 ]
 boto3 = [
+    {file = "boto3-1.12.8-py2.py3-none-any.whl", hash = "sha256:e8feb81da4602c5544bee1c106624b784315ae53b28ea6565a957318b8bf160a"},
     {file = "boto3-1.12.8.tar.gz", hash = "sha256:107fbf212daf1b25fff1efd6425c3e81be8db08d45e864197b0b61a6d12dbc60"},
 ]
 botocore = [

Any idea why? (poetry versions 1.0.0)

@alwx
Copy link
Contributor

alwx commented Mar 18, 2020

Well, the only thing I can suggest doing is updating to poetry 1.0.3 :)

But I don't see anything weird about that — poetry.lock updates automatically, and it's not very human-readable in general.

@m-vdb
Copy link
Collaborator Author

m-vdb commented Mar 18, 2020

ok I'll upgrade and push it then!

@m-vdb m-vdb force-pushed the fix-tensorflow-installation branch from 433b38d to 8504a08 Compare March 18, 2020 15:18
@tttthomasssss tttthomasssss added this to the Rasa 1.9 milestone Mar 18, 2020
@tmbo
Copy link
Member

tmbo commented Mar 18, 2020

Let’s also add a comment and a link to the original issue to make sure we know why we added this (since it is not a direct dependency)

@tmbo tmbo closed this Mar 18, 2020
@tmbo tmbo reopened this Mar 18, 2020
@m-vdb
Copy link
Collaborator Author

m-vdb commented Mar 18, 2020

should I also add this link in the changelog msg?

@tmbo
Copy link
Member

tmbo commented Mar 18, 2020

mhm, I'd say no - the changelog is for our users, e.g. for them the error message would be more important than how you fixed it.

@m-vdb m-vdb merged commit f44686f into 1.8.x Mar 19, 2020
@m-vdb m-vdb deleted the fix-tensorflow-installation branch March 19, 2020 08:45
@amn41
Copy link
Contributor

amn41 commented Mar 19, 2020

first PR!! 🎉

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

Successfully merging this pull request may close these issues.

6 participants