Hi all, I am trying to install openwisp server on Ubuntu 18.04 PC When I am trying to install the openwisp through ansible I am getting below error when installing python packages
TASK [openwisp.openwisp2-dev : Install openwisp2 controller and its dependencies] ************************************************************* changed: [182.73.129.29] TASK [openwisp.openwisp2-dev : Pin channels_redis to 2.4 for redis 4 compatibility] *********************************************************** changed: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install django-redis] ****************************************************************************************** ok: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install openwisp2 network topology and its dependencies] ******************************************************* skipping: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install openwisp firmware upgrader and its dependencies] ******************************************************* skipping: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install openwisp monitoring and its dependencies] ************************************************************** changed: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install openwisp2_radius and its dependencies] ***************************************************************** skipping: [182.73.129.29] TASK [openwisp.openwisp2-dev : Install extra python packages] ********************************************************************************* FAILED - RETRYING: Install extra python packages (5 retries left). FAILED - RETRYING: Install extra python packages (4 retries left). FAILED - RETRYING: Install extra python packages (3 retries left). FAILED - RETRYING: Install extra python packages (2 retries left). FAILED - RETRYING: Install extra python packages (1 retries left). fatal: [182.73.129.29]: FAILED! => {"attempts": 5, "changed": false, "cmd": ["/opt/openwisp2/env/bin/pip3", "install", "-U", "bpython"], "msg": "stdout: Collecting bpython\n Using cached bpython-0.22.1-py3-none-any.whl (187 kB)\nCollecting greenlet\n Using cached greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)\nCollecting curtsies>=0.3.5\n Using cached curtsies-0.3.10.tar.gz (53 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n\n:stderr: /usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead\n from cryptography.utils import int_from_bytes\n/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead\n from cryptography.utils import int_from_bytes\nERROR: Exception:\nTraceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/cli/base_command.py\", line 228, in _main\n status = self.run(options, args)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/cli/req_command.py\", line 182, in wrapper\n return func(self, options, args)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/commands/install.py\", line 323, in run\n requirement_set = resolver.resolve(\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py\", line 183, in resolve\n discovered_reqs.extend(self._resolve_one(requirement_set, req))\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py\", line 388, in _resolve_one\n abstract_dist = self._get_abstract_dist_for(req_to_install)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py\", line 340, in _get_abstract_dist_for\n abstract_dist = self.preparer.prepare_linked_requirement(req)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/operations/prepare.py\", line 482, in prepare_linked_requirement\n abstract_dist = _get_prepared_distribution(\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/operations/prepare.py\", line 91, in _get_prepared_distribution\n abstract_dist.prepare_distribution_metadata(finder, build_isolation)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py\", line 38, in prepare_distribution_metadata\n self._setup_isolation(finder)\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py\", line 96, in _setup_isolation\n reqs = backend.get_requires_for_build_wheel()\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_vendor/pep517/wrappers.py\", line 160, in get_requires_for_build_wheel\n return self._call_hook('get_requires_for_build_wheel', {\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_vendor/pep517/wrappers.py\", line 265, in _call_hook\n raise BackendUnavailable(data.get('traceback', ''))\npip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py\", line 86, in _build_backend\n obj = import_module(mod_path)\n File \"/usr/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 848, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/usr/lib/python3/dist-packages/setuptools/__init__.py\", line 5, in <module>\n import distutils.core\n File \"/opt/openwisp2/env/lib/python3.8/site-packages/_distutils_hack/__init__.py\", line 92, in create_module\n return importlib.import_module('setuptools._distutils')\n File \"/usr/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\nModuleNotFoundError: No module named 'setuptools._distutils'\n\nWARNING: You are using pip version 20.2.4; however, version 21.3.1 is available.\nYou should consider upgrading via the '/opt/openwisp2/env/bin/python -m pip install --upgrade pip' command.\n"} RUNNING HANDLER [openwisp.openwisp2-dev : reload supervisor] ********************************************************************************** PLAY RECAP ************************************************************************************************************************************ 182.73.129.29 : ok=46 changed=3 unreachable=0 failed=1 skipped=39 rescued=0 ignored=1 -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/f9796db7-13d6-465d-91ab-9e0661b96ca5n%40googlegroups.com.