Rasa Installation Problem in Ubuntu

Hi all,

I get Rasa Installation problem in Ubuntu 16. Please advise. Details are as follows: Python 3.5.2 pip 19.3.1 from /home/wilson/.local/lib/python3.5/site-packages/pip (python 3.5)

Last run command: pip install rasa-x --extra-index-url https://pypi.rasa.com/simple

My error details are: (venv) wilson@wilson-VirtualBox:~$ pip install rasa-x --extra-index-url https://pypi.rasa.com/simple Looking in indexes: https://pypi.org/simple, https://pypi.rasa.com/simple Collecting rasa-x Downloading https://pypi.rasa.com/api/package/rasa-x/rasa-x-0.21.5.tar.gz (1.5MB) |████████████████████████████████| 1.5MB 557kB/s Installing build dependencies … done Getting requirements to build wheel … done ERROR: Exception: Traceback (most recent call last): File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/cli/base_command.py”, line 153, in _main status = self.run(options, args) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/commands/install.py”, line 382, in run resolver.resolve(requirement_set) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/legacy_resolve.py”, line 201, in resolve self._resolve_one(requirement_set, req) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/legacy_resolve.py”, line 365, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/legacy_resolve.py”, line 313, in _get_abstract_dist_for req, self.session, self.finder, self.require_hashes File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/operations/prepare.py”, line 224, in prepare_linked_requirement req, self.req_tracker, finder, self.build_isolation, File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/operations/prepare.py”, line 49, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata(finder, build_isolation) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/distributions/source/legacy.py”, line 37, in prepare_distribution_metadata self._setup_isolation(finder) File “/home/wilson/.local/lib/python3.5/site-packages/pip/_internal/distributions/source/legacy.py”, line 90, in _setup_isolation reqs = backend.get_requires_for_build_wheel() File “/home/wilson/.local/lib/python3.5/site-packages/pip/_vendor/pep517/wrappers.py”, line 152, in get_requires_for_build_wheel ‘config_settings’: config_settings File “/home/wilson/.local/lib/python3.5/site-packages/pip/_vendor/pep517/wrappers.py”, line 255, in _call_hook raise BackendUnavailable(data.get(‘traceback’, ‘’)) pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File “/home/wilson/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py”, line 63, in _build_backend obj = import_module(mod_path) File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “”, line 986, in _gcd_import File “”, line 969, in _find_and_load File “”, line 956, in _find_and_load_unlocked ImportError: No module named ‘setuptools.build_meta’

Regards, Wilson

Hi @wilson, Thanks for your question! The minimum Python version for the 0.21.x releases of rasa X is Python 3.5.4.

I’d recommend upgrading to Python 3.6 though because 3.5 will no longer be supported as of the upcoming 0.22.0 release.

I hope that helps

Hi, after I upgrade pip using the following command in Ubuntu 16 terminal: sudo apt install python3-dev python3-pip pip3 --version

I got the following exception: wilson@wilson-VirtualBox:~$ pip --version Traceback (most recent call last): File “/home/wilson/.local/bin/pip”, line 7, in from pip._internal.main import main ModuleNotFoundError: No module named ‘pip._internal’ Error in sys.excepthook: Traceback (most recent call last): File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File “/usr/lib/python3/dist-packages/apport/ init .py”, line 5, in from apport.report import Report File “/usr/lib/python3/dist-packages/apport/report.py”, line 30, in import apport.fileutils File “/usr/lib/python3/dist-packages/apport/fileutils.py”, line 23, in from apport.packaging_impl import impl as packaging File “/usr/lib/python3/dist-packages/apport/packaging_impl.py”, line 23, in import apt File “/usr/lib/python3/dist-packages/apt/ init .py”, line 23, in import apt_pkg ModuleNotFoundError: No module named ‘apt_pkg’

Original exception was: Traceback (most recent call last): File “/home/wilson/.local/bin/pip”, line 7, in from pip._internal.main import main ModuleNotFoundError: No module named ‘pip._internal’

I am using Python 3.6.8. Please advice.

Regards, Wilson

It seems that you called pip --version, whereas your newly installed would probably have to be called with pip3.6 --version. In any case, can you try to pip3.6 install rasa-x --extra-index-url https://pypi.rasa.com/simple?

Hi,

The problem has been solved. Thanks.

Regards, Wilson

Hi @ricwo Hope u will help me in resolving this issue. Am using Python 3.7.6 and pip 20.0.2 ubuntu 16.04 LTS.

Facing Similar Issue when tried with the command: pip install --upgrade rasa-x==0.25.0 --extra-index-url https://pypi.rasa.com/simple

Log:

(bot) nithin@nithin-virtual-machine:~/Desktop/rasabot$ pip -V pip 20.0.2 from /home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip (python 3.7) (bot) nithin@nithin-virtual-machine:~/Desktop/rasabot$ pip install --upgrade rasa-x==0.25.0 --extra-index-url https://pypi.rasa.com/simple Looking in indexes: https://pypi.org/simple, https://pypi.rasa.com/simple Collecting rasa-x==0.25.0 Downloading https://pypi.rasa.com/api/package/rasa-x/rasa-x-0.25.0.tar.gz (1.6 MB) |████████████████████████████████| 1.6 MB 12 kB/s Installing build dependencies … done Getting requirements to build wheel … done ERROR: Exception: Traceback (most recent call last): File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/cli/base_command.py”, line 186, in _main status = self.run(options, args) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/commands/install.py”, line 331, in run resolver.resolve(requirement_set) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 177, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 333, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 282, in _get_abstract_dist_for abstract_dist = self.preparer.prepare_linked_requirement(req) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 516, in prepare_linked_requirement req, self.req_tracker, self.finder, self.build_isolation, File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 95, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata(finder, build_isolation) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py”, line 38, in prepare_distribution_metadata self._setup_isolation(finder) File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py”, line 96, in _setup_isolation reqs = backend.get_requires_for_build_wheel() File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py”, line 152, in get_requires_for_build_wheel ‘config_settings’: config_settings File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py”, line 255, in _call_hook raise BackendUnavailable(data.get(‘traceback’, ‘’)) pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File “/home/nithin/Desktop/rasabot/bot/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py”, line 63, in _build_backend obj = import_module(mod_path) File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “”, line 1006, in _gcd_import File “”, line 983, in _find_and_load File “”, line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named ‘setuptools.build_meta’

Hi @NithinAIML, can you run pip3.7 show setuptools?

Hi @ricwo, Thanks alot it worked for me.