Using Rasa in ubuntu 20.04

Hi All,

I have been using Rasa in ubuntu 18.04 and never faced any issue. I recently upgraded ubuntu to 20.04 and had to re-install rasa

I face below issue .

Blockquote python3 -m rasa_nlu.train -c nlu_config.yml --data data/ -o models --fixed_model_name nlu --project current --verbose Error while finding module specification for ‘rasa_nlu.train’ (ModuleNotFoundError: No module named ‘rasa_nlu’)

I tried to install rasa_nlu and notice below error. Appreciate any help


pip3 install rasa_nlu Collecting rasa_nlu Using cached rasa_nlu-0.15.1-py3-none-any.whl (147 kB) Collecting jsonschema~=2.6 Using cached jsonschema-2.6.0-py2.py3-none-any.whl (39 kB) Collecting future~=0.17.1 Using cached future-0.17.1.tar.gz (829 kB) Collecting gevent~=1.3 Using cached gevent-1.5.0-cp38-cp38-manylinux2010_x86_64.whl (5.9 MB) Requirement already satisfied: numpy>=1.16 in /home/shiva/Documents/Shiva/venv/lib/python3.8/site-packages (from rasa_nlu) (1.19.2) Requirement already satisfied: boto3~=1.9 in /home/shiva/Documents/Shiva/venv/lib/python3.8/site-packages (from rasa_nlu) (1.16.4) Requirement already satisfied: tqdm~=4.19 in /home/shiva/Documents/Shiva/venv/lib/python3.8/site-packages (from rasa_nlu) (4.50.2) Collecting typing~=3.6 Using cached typing- (78 kB) Collecting matplotlib~=2.2 Using cached matplotlib-2.2.5.tar.gz (36.7 MB) ERROR: Command errored out with exit status 1: command: /home/shiva/Documents/Shiva/venv/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-iaqw6z65/matplotlib/’“'”‘; file=’“'”‘/tmp/pip-install-iaqw6z65/matplotlib/’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --egg-base /tmp/pip-pip-egg-info-ddt3lrlr cwd: /tmp/pip-install-iaqw6z65/matplotlib/ Complete output (62 lines): ============================================================================ Edit setup.cfg to change the build options

            matplotlib: yes [2.2.5]
                python: yes [3.8.5 (default, Jul 28 2020, 12:59:40)  [GCC
              platform: yes [linux]

                 numpy: yes [version 1.19.2]
      install_requires: yes [handled by setuptools]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]
                   png: no  [pkg-config information for 'libpng' could not
                        be found.]
                 qhull: yes [pkg-config information for 'libqhull' could not
                        be found. Using local copy.]

           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: no  [skipping due to configuration]
        toolkits_tests: no  [skipping due to configuration]

                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: no  [Requires pygobject to be installed.]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-iaqw6z65/matplotlib/", line 252, in <module>
    msg = pkg.install_help_msg()
  File "/tmp/pip-install-iaqw6z65/matplotlib/", line 718, in install_help_msg
    release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
             gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                gtkagg: no  [Requires pygtk]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: no  [cairocffi or pycairo not found]
             windowing: no  [Microsoft Windows only]

                dvipng: no
           ghostscript: yes [version 9.50]
                 latex: no
               pdftops: yes [version 0.86.1]

                  dlls: no  [skipping due to configuration]

                        * The following required packages can not be built:
                        * freetype, png

ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.

The logs look like the install requires freetype and png, which you don’t have. Installing freetype and libpng should help, although you may also need freetype-devel and libpng-devel

You might could also try upgrading setup tools pip install --upgrade setuptools? Or possibly downgrading Python versions?