From afebf9ad9ac8d7ccc8d2556595493951fee365f8 Mon Sep 17 00:00:00 2001 From: Rahul Kulhari Date: Fri, 10 Jun 2016 18:27:02 +0530 Subject: [PATCH 1/2] updated plac version current new version of plac(0.9.3) is creating problem but it is working <0.9.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6ef0fbb77..11dff81f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ cymem>=1.30,<1.32 preshed>=0.46.1,<0.47.0 thinc>=5.0.0,<5.1.0 murmurhash>=0.26,<0.27 -plac +plac<0.9.3 six ujson cloudpickle From f1c0762443753c2efaa4fdd8d16d446aabf9d96a Mon Sep 17 00:00:00 2001 From: Adam Ever Hadani Date: Wed, 13 Jul 2016 16:22:14 -0700 Subject: [PATCH 2/2] exit code 0 for when downloading a model that already was downloaded --- spacy/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/download.py b/spacy/download.py index f7fc798ae..4fbc6b11b 100644 --- a/spacy/download.py +++ b/spacy/download.py @@ -17,7 +17,7 @@ def download(lang, force=False): sputnik.package(about.__title__, about.__version__, about.__models__[lang]) print("Model already installed. Please run 'python -m " "spacy.%s.download --force' to reinstall." % lang, file=sys.stderr) - sys.exit(1) + sys.exit(0) except (PackageNotFoundException, CompatiblePackageNotFoundException): pass