Hello all, I’m having a lot of difficulties trying to start rasa and each time it fails at the same step -
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 -
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 -
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 -
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?