# Is anyone else having problems trying to download the poly-ai model?

**URL:** <https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057>\
**Category:** Rasa Open Source\
**Created:** [September 22, 2020, 3:54pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057 "2020-09-22T15:54:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 22, 2020, 3:54pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/1 "2020-09-22T15:54:12Z")

</div>

Hello all, I’m having a lot of difficulties trying to start rasa and each time it fails at the same step -

```auto
2020-09-22 15:29:44 INFO absl - Downloading TF-Hub Module 'http://models.poly-ai.com/convert/v1/model.tar.gz'.

```

Once it attempts this, I get a list of 404s. First of which is below -

```auto
rasa_1 | 2020-09-22 15:29:45 ERROR rasa.core.agent - Could not load model due to HTTP Error 404: Not Found.
rasa_1 | [2020-09-22 15:29:45 +0000] [1] [ERROR] Experienced exception while trying to serve
rasa_1 | Traceback (most recent call last):
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/utils/train_utils.py", line 169, in load_tf_hub_model
rasa_1 | return tfhub.load(model_url)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/module_v2.py", line 97, in load
rasa_1 | module_path = resolve(handle)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/module_v2.py", line 53, in resolve
rasa_1 | return registry.resolver(handle)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/registry.py", line 42, in __call__
rasa_1 | return impl(*args, **kwargs)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/compressed_module_resolver.py", line 88, in __call__
rasa_1 | self._lock_file_timeout_sec())
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/resolver.py", line 415, in atomic_download
rasa_1 | download_fn(handle, tmp_dir)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/compressed_module_resolver.py", line 83, in download
rasa_1 | response = self._call_urlopen(request)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/tensorflow_hub/compressed_module_resolver.py", line 96, in _call_urlopen
rasa_1 | return url.urlopen(request)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
rasa_1 | return opener.open(url, data, timeout)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 531, in open
rasa_1 | response = meth(req, response)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 641, in http_response
rasa_1 | 'http', request, response, code, msg, hdrs)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 569, in error
rasa_1 | return self._call_chain(*args)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
rasa_1 | result = func(*args)
rasa_1 | File "/usr/local/lib/python3.7/urllib/request.py", line 649, in http_error_default
rasa_1 | raise HTTPError(req.full_url, code, msg, hdrs, fp)
rasa_1 | urllib.error.HTTPError: HTTP Error 404: Not Found

```

I tried this with rasa and rasa-sdk version 2.0.0a1 and with rasa version 1.10.13-full and rasa-sdk version 1.10.1-full. I even tried switching the config.yml to use the spacy pipeline, but it’s still failing. Here’s my config.yml -

```auto
language: "en"

pipeline:
  - name: ConveRTTokenizer
    intent_tokenization_flag: True
    # Set to true to spot multiple intents
    case_sensitive: False
    intent_split_symbol: "+"
  - name: ConveRTFeaturizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: TEDPolicy
  - name: MappingPolicy
  - name: FormPolicy
  - name: FallbackPolicy
    nlu_threshold: 0.6
    core_threshold: 0.3
    fallback_action_name: "fallback_action"

```

I had tried this through Docker using the base setup as specified in the docs. But when I tried doing this through virtualenv, I keep getting blocked at the tensorflow\<2.2,\>=2.1 requirement. See error below -

```auto
ERROR: Could not find a version that satisfies the requirement tensorflow==2.1 (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)

```

I’m quite blocked by this ☹ . Can someone help?

---

<div class="post-metadata">

**Author:** ![elyase](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/elyase/32/3350_2.png) [@elyase](https://forum.rasa.com/u/elyase)\
**Post date:** [September 22, 2020, 4:24pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/2 "2020-09-22T16:24:28Z")

</div>

> [@ganeshv](#):
>
> `http://models.poly-ai.com/convert/v1/model.tar.gz`

yep the file is not on that URL anymore. You can follow this ticket:

> <https://github.com/RasaHQ/rasa/issues/6741>
>
> \*\*Rasa version\*\*:
> 
> 
> 
> \*\*Python version\*\*:
> 
> 3.7.7
> 
> \*\*Operating system\*\* (w…indows, osx, ...):
> 
> Tested on OS X, Linux, probably occurs on Windows too
> 
> \*\*Issue\*\*:
> 
> The hosting location of the ConveRT Tensorflow Hub module has been updated. It now is available from the following URL:
> \`\`\`
> https://github.com/PolyAI-LDN/polyai-models/releases/download/v1.0/model.tar.gz
> \`\`\`
> 
> The \[old hosting location\](http://models.poly-ai.com/convert/v1/model.tar.gz) has been taken down. This means that any Rasa model currently using ConveRT without the TFHub module cached cannot be loaded.
> 
> \*\*Error (including full traceback)\*\*:
> \`\`\`
> \---------------------------------------------------------------------------
> HTTPError Traceback (most recent call last)
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/utils/train\_utils.py in load\_tf\_hub\_model(model\_url)
> 168 try:
> \--\> 169 return tfhub.load(model\_url)
> 170 except OSError:
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py in load(handle, tags)
> 96 raise ValueError("Expected a string, got %s" % handle)
> \---\> 97 module\_path = resolve(handle)
> 98 is\_hub\_module\_v1 = tf.io.gfile.exists(
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py in resolve(handle)
> 52 """
> \---\> 53 return registry.resolver(handle)
> 54 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/registry.py in \_\_call\_\_(self, \*args, \*\*kwargs)
> 41 if impl.is\_supported(\*args, \*\*kwargs):
> \---\> 42 return impl(\*args, \*\*kwargs)
> 43 raise RuntimeError(
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in \_\_call\_\_(self, handle)
> 87 return resolver.atomic\_download(handle, download, module\_dir,
> \---\> 88 self.\_lock\_file\_timeout\_sec())
> 89 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/resolver.py in atomic\_download(handle, download\_fn, module\_dir, lock\_file\_timeout\_sec)
> 414 tf\_v1.gfile.MakeDirs(tmp\_dir)
> \--\> 415 download\_fn(handle, tmp\_dir)
> 416 # Write module descriptor to capture information about which module was
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in download(handle, tmp\_dir)
> 82 request = url.Request(\_append\_compressed\_format\_query(handle))
> \---\> 83 response = self.\_call\_urlopen(request)
> 84 return resolver.DownloadManager(handle).download\_and\_uncompress(
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in \_call\_urlopen(self, request)
> 95 # Overriding this method allows setting SSL context in Python 3.
> \---\> 96 return url.urlopen(request)
> 97 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
> 221 opener = \_opener
> \--\> 222 return opener.open(url, data, timeout)
> 223 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in open(self, fullurl, data, timeout)
> 530 meth = getattr(processor, meth\_name)
> \--\> 531 response = meth(req, response)
> 532 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in http\_response(self, request, response)
> 640 response = self.parent.error(
> \--\> 641 'http', request, response, code, msg, hdrs)
> 642 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in error(self, proto, \*args)
> 568 args = (dict, 'default', 'http\_error\_default') + orig\_args
> \--\> 569 return self.\_call\_chain(\*args)
> 570 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in \_call\_chain(self, chain, kind, meth\_name, \*args)
> 502 func = getattr(handler, meth\_name)
> \--\> 503 result = func(\*args)
> 504 if result is not None:
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in http\_error\_default(self, req, fp, code, msg, hdrs)
> 648 def http\_error\_default(self, req, fp, code, msg, hdrs):
> \--\> 649 raise HTTPError(req.full\_url, code, msg, hdrs, fp)
> 650 
> 
> HTTPError: HTTP Error 404: Not Found
> 
> During handling of the above exception, another exception occurred:
> 
> HTTPError Traceback (most recent call last)
> \<ipython-input-6-e85fa5c3071d\> in \<module\>
> \----\> 1 tokenizer = ConveRTTokenizer()
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/tokenizers/convert\_tokenizer.py in \_\_init\_\_(self, component\_config)
> 31 
> 32 model\_url = "http://models.poly-ai.com/convert/v1/model.tar.gz"
> \---\> 33 self.module = train\_utils.load\_tf\_hub\_model(model\_url)
> 34 
> 35 self.tokenize\_signature = self.module.signatures\["tokenize"\]
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/utils/train\_utils.py in load\_tf\_hub\_model(model\_url)
> 171 directory = io\_utils.create\_temporary\_directory()
> 172 os.environ\["TFHUB\_CACHE\_DIR"\] = directory
> \--\> 173 return tfhub.load(model\_url)
> 174 
> 175 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py in load(handle, tags)
> 95 if not isinstance(handle, six.string\_types):
> 96 raise ValueError("Expected a string, got %s" % handle)
> \---\> 97 module\_path = resolve(handle)
> 98 is\_hub\_module\_v1 = tf.io.gfile.exists(
> 99 native\_module.get\_module\_proto\_path(module\_path))
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py in resolve(handle)
> 51 A string representing the Module path.
> 52 """
> \---\> 53 return registry.resolver(handle)
> 54 
> 55 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/registry.py in \_\_call\_\_(self, \*args, \*\*kwargs)
> 40 for impl in reversed(self.\_impls):
> 41 if impl.is\_supported(\*args, \*\*kwargs):
> \---\> 42 return impl(\*args, \*\*kwargs)
> 43 raise RuntimeError(
> 44 "Missing implementation that supports: %s(\*%r, \*\*%r)" % (
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in \_\_call\_\_(self, handle)
> 86 
> 87 return resolver.atomic\_download(handle, download, module\_dir,
> \---\> 88 self.\_lock\_file\_timeout\_sec())
> 89 
> 90 def \_lock\_file\_timeout\_sec(self):
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/resolver.py in atomic\_download(handle, download\_fn, module\_dir, lock\_file\_timeout\_sec)
> 413 logging.info("Downloading TF-Hub Module '%s'.", handle)
> 414 tf\_v1.gfile.MakeDirs(tmp\_dir)
> \--\> 415 download\_fn(handle, tmp\_dir)
> 416 # Write module descriptor to capture information about which module was
> 417 # downloaded by whom and when. The file stored at the same level as a
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in download(handle, tmp\_dir)
> 81 """Fetch a module via HTTP(S), handling redirect and download headers."""
> 82 request = url.Request(\_append\_compressed\_format\_query(handle))
> \---\> 83 response = self.\_call\_urlopen(request)
> 84 return resolver.DownloadManager(handle).download\_and\_uncompress(
> 85 response, tmp\_dir)
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py in \_call\_urlopen(self, request)
> 94 def \_call\_urlopen(self, request):
> 95 # Overriding this method allows setting SSL context in Python 3.
> \---\> 96 return url.urlopen(request)
> 97 
> 98 
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
> 220 else:
> 221 opener = \_opener
> \--\> 222 return opener.open(url, data, timeout)
> 223 
> 224 def install\_opener(opener):
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in open(self, fullurl, data, timeout)
> 529 for processor in self.process\_response.get(protocol, \[\]):
> 530 meth = getattr(processor, meth\_name)
> \--\> 531 response = meth(req, response)
> 532 
> 533 return response
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in http\_response(self, request, response)
> 639 if not (200 \<= code \< 300):
> 640 response = self.parent.error(
> \--\> 641 'http', request, response, code, msg, hdrs)
> 642 
> 643 return response
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in error(self, proto, \*args)
> 567 if http\_err:
> 568 args = (dict, 'default', 'http\_error\_default') + orig\_args
> \--\> 569 return self.\_call\_chain(\*args)
> 570 
> 571 # XXX probably also want an abstract factory that knows when it makes
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in \_call\_chain(self, chain, kind, meth\_name, \*args)
> 501 for handler in handlers:
> 502 func = getattr(handler, meth\_name)
> \--\> 503 result = func(\*args)
> 504 if result is not None:
> 505 return result
> 
> ~/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py in http\_error\_default(self, req, fp, code, msg, hdrs)
> 647 class HTTPDefaultErrorHandler(BaseHandler):
> 648 def http\_error\_default(self, req, fp, code, msg, hdrs):
> \--\> 649 raise HTTPError(req.full\_url, code, msg, hdrs, fp)
> 650 
> 651 class HTTPRedirectHandler(BaseHandler):
> 
> HTTPError: HTTP Error 404: Not Found
> \`\`\`
> 
> \*\*Command or request that led to error\*\*:
> \`\`\`python
> import rasa
> from rasa.nlu.tokenizers.convert\_tokenizer import ConveRTTokenizer
> tokenizer = ConveRTTokenizer()
> \`\`\`
> 
> Or anything that requires loading the ConveRT model (including loading previously trained models that use the ConveRT TFHub model).

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 22, 2020, 4:54pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/3 "2020-09-22T16:54:32Z")

</div>

@elyase Thank you so much! I’ll keep an eye on the bug and await the fix.

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 23, 2020, 6:23am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/4 "2020-09-23T06:23:48Z")

</div>

@elyase @dakshvar22 - Looks like the fix was merged into master, but I’m still getting the same error when using the 2.0.0a1 image. Should I be using another version?

---

<div class="post-metadata">

**Author:** ![ridhimagarg](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ridhimagarg](https://forum.rasa.com/u/ridhimagarg)\
**Post date:** [September 23, 2020, 6:24am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/5 "2020-09-23T06:24:33Z")

</div>

I am also facing this issue.

Any resolution for this?

---

<div class="post-metadata">

**Author:** ![dakshvar22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dakshvar22/32/3993_2.png) [@dakshvar22](https://forum.rasa.com/u/dakshvar22)\
**Post date:** [September 23, 2020, 6:52am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/6 "2020-09-23T06:52:07Z")

</div>

@ganeshv As the fix was merged into master yesterday and `2.0.0a1` was cut from master before that, you wouldn’t be able to use the fix in `2.0.0a1`. I am currently porting the fix for `1.10` version and will release that as a patch today. We are discussing internally about what can we do for the fix to appear in Rasa Open Source 2.0 release asap.

---

<div class="post-metadata">

**Author:** ![ridhimagarg](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ridhimagarg](https://forum.rasa.com/u/ridhimagarg)\
**Post date:** [September 23, 2020, 7:31am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/7 "2020-09-23T07:31:33Z")

</div>

@dakshvar22 Do we need to update RASA from `1.10` version to `2.0`. Or we can use RASA 1.10 itself as currently, I am using 1.10

---

<div class="post-metadata">

**Author:** ![dakshvar22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dakshvar22/32/3993_2.png) [@dakshvar22](https://forum.rasa.com/u/dakshvar22)\
**Post date:** [September 23, 2020, 7:58am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/8 "2020-09-23T07:58:53Z")

</div>

@ridhimagarg A new patch version for 1.10 will be released today with the fix.

---

<div class="post-metadata">

**Author:** ![benohear](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@benohear](https://forum.rasa.com/u/benohear)\
**Post date:** [September 23, 2020, 9:18am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/9 "2020-09-23T09:18:02Z")

</div>

Thanks for the quick reaction!

It seems to me that this dependency on an external url at runtime is really fragile, especially in combination with Docker. If the container is for any reason rebuilt before the patch is released, we are completely toast.

Are you guys planning to work on a “root cause” solution once the fire is out? Not sure if the dependencies could be included in the image. If not, maybe saving them to a directory that one could easily persist outside the container might be an idea (under /app or something).

---

<div class="post-metadata">

**Author:** ![abhishek166](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abhishek166/32/6087_2.png) [@abhishek166](https://forum.rasa.com/u/abhishek166)\
**Post date:** [September 23, 2020, 11:04am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/10 "2020-09-23T11:04:34Z")

</div>

hey, @dakshvar22 facing same issue with the Rasa 1.9.7 version.

---

<div class="post-metadata">

**Author:** ![rishivaca](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rishivaca](https://forum.rasa.com/u/rishivaca)\
**Post date:** [September 23, 2020, 5:31pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/11 "2020-09-23T17:31:39Z")

</div>

Any further updates on this? We’d prefer to stay with 2.0 since we are using some of the newer capabilities, but need to make a decision in the next 24 hours or so.

Appreciate the work you all are doing!

---

<div class="post-metadata">

**Author:** ![ridhimagarg](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ridhimagarg](https://forum.rasa.com/u/ridhimagarg)\
**Post date:** [September 24, 2020, 6:20am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/12 "2020-09-24T06:20:42Z")

</div>

The issue is been fixed in Rasa `1.10.14` .

You can update rasa from `1.10.2` to `1.10.14` using

> pip install rasa==1.10.14

Thanks to @RASA Team, for such a quick fix.

---

<div class="post-metadata">

**Author:** ![dakshvar22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dakshvar22/32/3993_2.png) [@dakshvar22](https://forum.rasa.com/u/dakshvar22)\
**Post date:** [September 24, 2020, 11:24am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/13 "2020-09-24T11:24:44Z")

</div>

@rishivaca We’ll be tagging another release candidate for 2.0 which should have the fix for this. Thanks for being patient. 🙂

---

<div class="post-metadata">

**Author:** ![Akhil](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Akhil](https://forum.rasa.com/u/Akhil)\
**Post date:** [September 24, 2020, 11:46am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/14 "2020-09-24T11:46:04Z")

</div>

Hi @dakshvar22. Is Rasa X 0.32.2 is also updated to pull the rasa image of version 1.10.14?

---

<div class="post-metadata">

**Author:** ![ridhimagarg](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ridhimagarg](https://forum.rasa.com/u/ridhimagarg)\
**Post date:** [September 24, 2020, 12:14pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/15 "2020-09-24T12:14:07Z")

</div>

After updating to RASA 1.10.14 entity extraction is not performed well as before in 1.10.2 Do I need to change something?

pls help

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 24, 2020, 12:50pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/16 "2020-09-24T12:50:33Z")

</div>

@dakshvar22 - thanks for your help! I did find another problem, but considering that others haven’t reported it, I suspect it may be local to me.

Is anyone else having a key error come up? I’m now using 1.10.14 and this error comes up -

```auto
rasa_1 | 2020-09-24 11:53:20 INFO absl - Downloaded TF-Hub Module 'https://github.com/PolyAI-LDN/polyai-models/releases/download/v1.0/model.tar.gz'.
rasa_1 | 2020-09-24 11:53:21.214864: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
rasa_1 | 2020-09-24 11:53:39 DEBUG root - Could not load interpreter from 'models'.
rasa_1 | 2020-09-24 11:53:39 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore.
rasa_1 | 2020-09-24 11:53:39 DEBUG rasa.core.lock_store - Connected to lock store 'InMemoryLockStore'.
rasa_1 | 2020-09-24 11:53:41 DEBUG rasa.model - Extracted model to '/tmp/tmp74wzxiz9'.
rasa_1 | 2020-09-24 11:54:00 ERROR rasa.core.agent - Could not load model due to 'token_pattern'.

```

The key error is as shown below -

```auto
rasa_1 | Traceback (most recent call last):
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/app.py", line 1167, in run
rasa_1 | serve(**server_settings)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/server.py", line 892, in serve
rasa_1 | trigger_events(before_start, loop)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/server.py", line 668, in trigger_events
rasa_1 | loop.run_until_complete(result)
rasa_1 | File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/run.py", line 257, in load_agent_on_start
rasa_1 | action_endpoint=endpoints.action,
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/agent.py", line 306, in load_agent
rasa_1 | remote_storage=remote_storage,
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/agent.py", line 973, in load_local_model
rasa_1 | path_to_model_archive=model_archive,
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/agent.py", line 422, in load
rasa_1 | interpreter = NaturalLanguageInterpreter.create(nlu_model)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/interpreter.py", line 54, in create
rasa_1 | return RasaNLUInterpreter(model_directory=obj)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/interpreter.py", line 274, in __init__
rasa_1 | self._load_interpreter()
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/core/interpreter.py", line 297, in _load_interpreter
rasa_1 | self.interpreter = Interpreter.load(self.model_directory)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/model.py", line 301, in load
rasa_1 | return Interpreter.create(model_metadata, component_builder, skip_validation)
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/model.py", line 328, in create
rasa_1 | component_meta, model_metadata.model_dir, model_metadata, **context
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/components.py", line 744, in load_component
rasa_1 | component_meta, model_dir, model_metadata, cached_component, **context
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/registry.py", line 231, in load_component_by_meta
rasa_1 | component_meta, model_dir, metadata, cached_component, **kwargs
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py", line 662, in load
rasa_1 | meta, vocabulary=vocabulary
rasa_1 | File "/opt/venv/lib/python3.7/site-packages/rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py", line 621, in _create_independent_vocab_vectorizers
rasa_1 | token_pattern=parameters["token_pattern"],
rasa_1 | KeyError: 'token_pattern'

```

Nothing else has changed from my initial report (other than the fact that I’m now pulling the 1.10.14-full image for rasa and 1.10.1-full for rasa-sdk).

---

<div class="post-metadata">

**Author:** ![Rushikesh](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Rushikesh](https://forum.rasa.com/u/Rushikesh)\
**Post date:** [September 24, 2020, 6:28pm UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/17 "2020-09-24T18:28:30Z")

</div>

@dakshvar22 I am also facing similar issue with rasa/rasa:2.0.0a3-full Image, when I am trying to train my project. Can anyone let me know in which version or docker image it will be fixed. Thank you in advance for your help

> > docker run -v ${pwd}:/app rasa/rasa:2.0.0a3-full train

/opt/venv/lib/python3.7/site-packages/tensorflow\_addons/utils/ensure\_tf\_install.py:68: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.2.0 and strictly below 2.3.0 (nightly versions are not supported). The versions of TensorFlow you are currently using is 2.3.0 and is not supported. Some things might work, some things might not. If you were to encounter a bug, do not file an issue. If you want to make sure you’re using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons’s version. You can find the compatibility matrix in TensorFlow Addon’s readme:

> **[GitHub - tensorflow/addons: Useful extra functionality for TensorFlow 2.x...](https://github.com/tensorflow/addons)**
>
> Useful extra functionality for TensorFlow 2.x maintained by SIG-addons - GitHub - tensorflow/addons: Useful extra functionality for TensorFlow 2.x maintained by SIG-addons

UserWarning, 2020-09-24 17:59:21 INFO absl - Using /tmp/tfhub\_modules to cache modules. 2020-09-24 17:59:21 INFO absl - Downloading TF-Hub Module ‘[http://models.poly-ai.com/convert/v1/model.tar.gz](http://models.poly-ai.com/convert/v1/model.tar.gz)’. The configuration for pipeline and policies was chosen automatically. It was written into the config file at ‘config.yml’. Training NLU model… Traceback (most recent call last): File “/opt/venv/lib/python3.7/site-packages/rasa/utils/train\_utils.py”, line 140, in load\_tf\_hub\_model return tfhub.load(model\_url) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py”, line 97, in load module\_path = resolve(handle) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py”, line 53, in resolve return registry.resolver(handle) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/registry.py”, line 42, in **call** return impl(\*args, \*\*kwargs) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 88, in **call** self.\_lock\_file\_timeout\_sec()) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/resolver.py”, line 415, in atomic\_download download\_fn(handle, tmp\_dir) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 83, in download response = self.\_call\_urlopen(request) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 96, in \_call\_urlopen return url.urlopen(request) File “/usr/local/lib/python3.7/urllib/request.py”, line 222, in urlopen return opener.open(url, data, timeout) File “/usr/local/lib/python3.7/urllib/request.py”, line 531, in open response = meth(req, response) File “/usr/local/lib/python3.7/urllib/request.py”, line 641, in http\_response ‘http’, request, response, code, msg, hdrs) File “/usr/local/lib/python3.7/urllib/request.py”, line 569, in error return self.\_call\_chain(\*args) File “/usr/local/lib/python3.7/urllib/request.py”, line 503, in \_call\_chain result = func(\*args) File “/usr/local/lib/python3.7/urllib/request.py”, line 649, in http\_error\_default raise HTTPError(req.full\_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/opt/venv/bin/rasa”, line 8, in sys.exit(main()) File “/opt/venv/lib/python3.7/site-packages/rasa/ **main**.py”, line 109, in main cmdline\_arguments.func(cmdline\_arguments) File “/opt/venv/lib/python3.7/site-packages/rasa/cli/train.py”, line 77, in train nlu\_additional\_arguments=extract\_nlu\_additional\_arguments(args), File “/opt/venv/lib/python3.7/site-packages/rasa/train.py”, line 58, in train nlu\_additional\_arguments=nlu\_additional\_arguments, File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run\_until\_complete File “/opt/venv/lib/python3.7/site-packages/rasa/train.py”, line 114, in train\_async nlu\_additional\_arguments=nlu\_additional\_arguments, File “/opt/venv/lib/python3.7/site-packages/rasa/train.py”, line 207, in \_train\_async\_internal old\_model\_zip\_path=old\_model, File “/opt/venv/lib/python3.7/site-packages/rasa/train.py”, line 246, in \_do\_training additional\_arguments=nlu\_additional\_arguments, File “/opt/venv/lib/python3.7/site-packages/rasa/train.py”, line 541, in \_train\_nlu\_with\_validated\_data \*\*additional\_arguments, File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/train.py”, line 75, in train trainer = Trainer(nlu\_config, component\_builder) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/model.py”, line 146, in **init** self.pipeline = self.\_build\_pipeline(cfg, component\_builder) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/model.py”, line 158, in \_build\_pipeline component = component\_builder.create\_component(component\_cfg, cfg) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/components.py”, line 758, in create\_component component = registry.create\_component\_by\_config(component\_config, cfg) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/registry.py”, line 163, in create\_component\_by\_config return component\_class.create(component\_config, config) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/components.py”, line 463, in create return cls(component\_config) File “/opt/venv/lib/python3.7/site-packages/rasa/nlu/tokenizers/convert\_tokenizer.py”, line 38, in **init** self.module = train\_utils.load\_tf\_hub\_model(TF\_HUB\_MODULE\_URL) File “/opt/venv/lib/python3.7/site-packages/rasa/utils/train\_utils.py”, line 144, in load\_tf\_hub\_model return tfhub.load(model\_url) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py”, line 97, in load module\_path = resolve(handle) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/module\_v2.py”, line 53, in resolve return registry.resolver(handle) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/registry.py”, line 42, in **call** return impl(\*args, \*\*kwargs) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 88, in **call** self.\_lock\_file\_timeout\_sec()) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/resolver.py”, line 415, in atomic\_download download\_fn(handle, tmp\_dir) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 83, in download response = self.\_call\_urlopen(request) File “/opt/venv/lib/python3.7/site-packages/tensorflow\_hub/compressed\_module\_resolver.py”, line 96, in \_call\_urlopen return url.urlopen(request) File “/usr/local/lib/python3.7/urllib/request.py”, line 222, in urlopen return opener.open(url, data, timeout) File “/usr/local/lib/python3.7/urllib/request.py”, line 531, in open response = meth(req, response) File “/usr/local/lib/python3.7/urllib/request.py”, line 641, in http\_response ‘http’, request, response, code, msg, hdrs) File “/usr/local/lib/python3.7/urllib/request.py”, line 569, in error return self.\_call\_chain(\*args) File “/usr/local/lib/python3.7/urllib/request.py”, line 503, in \_call\_chain result = func(\*args) File “/usr/local/lib/python3.7/urllib/request.py”, line 649, in http\_error\_default **raise HTTPError(req.full\_url, code, msg, hdrs, fp)****urllib.error.HTTPError: HTTP Error 404: Not Found**

---

<div class="post-metadata">

**Author:** ![Akhil](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Akhil](https://forum.rasa.com/u/Akhil)\
**Post date:** [September 25, 2020, 9:27am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/18 "2020-09-25T09:27:17Z")

</div>

Hi @ganeshv. How to get these logs in Rasa-X?

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 25, 2020, 9:29am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/19 "2020-09-25T09:29:24Z")

</div>

Use the `--debug` flag when starting the rasa and the rasa action server through Docker.

---

<div class="post-metadata">

**Author:** ![Akhil](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Akhil](https://forum.rasa.com/u/Akhil)\
**Post date:** [September 25, 2020, 9:32am UTC](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057/20 "2020-09-25T09:32:18Z")

</div>

I followed the docker-compose deployment method. I use the following commands

`docker-compose up -d`

`docker-compose down`

Could you help in more detail?

[Next page](https://forum.rasa.com/t/is-anyone-else-having-problems-trying-to-download-the-poly-ai-model/34057.md?page=2)
