Can Rasa support up to 1.20.0?

I have the latest rasa, and it specified that:

numpy = ">=1.19.2,<1.20.0"

I have a project and specified dependencies:

[tool.poetry.dependencies]
python = ">=3.7,<3.9"
rasa = {path = "rasa", develop = true}
spacy = {path = "spaCy", develop = true}
ipython = "7.29.0"

Then when I use: poetry update

I got this error:

Package operations: 0 installs, 3 updates, 0 removals

  • Updating numpy (1.20.0 -> 1.19.5): Pending...
  • Updating numpy (1.20.0 -> 1.19.5): Failed

  ValueError

  relative path can't be expressed as a file URI

  at /usr/local/Cellar/python@3.7/3.7.12_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py:739 in as_uri
       735│ 
       736│     def as_uri(self):
       737│         """Return the path as a 'file' URI."""
       738│         if not self.is_absolute():
    →  739│             raise ValueError("relative path can't be expressed as a file URI")
       740│         return self._flavour.make_uri(self)
       741│ 
       742│     @property
       743│     def _cparts(self):

Is this because iPython require numpy>=1.20.0? because Spacy only requires numpy>=1.15.

Can I manually change the rasa’s numpy to be:

numpy = ">=1.19.2,<=1.20.0"

@lingvisa your issue is related to rasa installation or some package compatibility? OR it’s just a NumPy version supported by Rasa? Sorry, a bit confused.

I am on MacPro, and I think it’s a package compatibility issue. As you can see from my pyproject.toml, it depends on rasa, spacy, ipython. it might be because of ipython required numpy>=1.20 but rasa requires numpy<1.20?

I changed numpy setting to ‘numpy = “>=1.19.2,<=1.20.0”’. in rasa’s pyproject.toml, and it seems fine without error.

So why does the latest rasa require numpy<1.20.0?

@lingvisa which version did you install for rasa? Did you create any virtual environment for the same?

 % rasa --version
Rasa Version      :         3.0.8
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.0.5
Rasa X Version    :         None
Python Version    :         3.7.12
Operating System  :         Darwin-20.6.0-x86_64-i386-64bit
Python Path       :         /Users/cmin/nlp/voice/assistant/.venv/bin/python

@lingvisa Alright, yes I guess rasa only using less then 1.20.0 for numpy i.e numpy 1.19.5 in my case I am have install version rasa 3.0.6 sdk-3.0.4 and its using 1.19.5.