Just rebuilt my Raspberry Pi with ubuntu 20.10 and re-do the installation again. I still get the python2-cffi error, since the installation process expecting the package python3-cffi-backend on the Pi to be at least version 1.14.4-0, and the command running the command 'apt install python3-cffi-backend' doesn't really help within the distribution, since it keeps downloading the same version (1.14.2-1 in ubuntu 20.10). I have to change the /etc/apt/sources.list to add the hirsute repository which include python3-cffi-backend version 1.14.4-1 that satisfies the condition for installation of openwisp2. That went well, but now I have a new error at the "migrage" step, which indicating that it doesn't find the module 'celery', just wondering if you can help troubleshoot that!? Error message below.
fatal: [raspberry-pi.localdomain.vsta]: FAILED! => {"changed": false, "cmd": "./manage.py migrate --noinput", "msg": "\n:stderr: Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/base.py\", line 330, in run_from_argv\n self.execute(*args, **cmd_options)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/base.py\", line 371, in execute\n output = self.handle(*args, **options)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/base.py\", line 82, in wrapped\n saved_locale = translation.get_language()\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/utils/translation/__init__.py\", line 254, in get_language\n return _trans.get_language()\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/utils/translation/__init__.py\", line 57, in __getattr__\n if settings.USE_I18N:\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 83, in __getattr__\n self._setup(name)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 70, in _setup\n self._wrapped = Settings(settings_module)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 177, in __init__\n mod = importlib.import_module(self.SETTINGS_MODULE)\n File \"/usr/lib/python3.9/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 972, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\n File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 986, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 680, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 790, in exec_module\n File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\n File \"/opt/openwisp2/openwisp2/__init__.py\", line 1, in <module>\n from .celery import app as celery_app\n File \"/opt/openwisp2/openwisp2/celery.py\", line 3, in <module>\n from celery import Celery\nModuleNotFoundError: No module named 'celery'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/opt/openwisp2/./manage.py\", line 10, in <module>\n execute_from_command_line(sys.argv)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/__init__.py\", line 401, in execute_from_command_line\n utility.execute()\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/__init__.py\", line 395, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/core/management/base.py\", line 343, in run_from_argv\n connections.close_all()\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/db/utils.py\", line 232, in close_all\n for alias in self:\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/db/utils.py\", line 226, in __iter__\n return iter(self.databases)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/utils/functional.py\", line 48, in __get__\n res = instance.__dict__[
self.name] = self.func(instance)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/db/utils.py\", line 153, in databases\n self._databases = settings.DATABASES\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 83, in __getattr__\n self._setup(name)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 70, in _setup\n self._wrapped = Settings(settings_module)\n File \"/opt/openwisp2/env/lib/python3.9/site-packages/django/conf/__init__.py\", line 177, in __init__\n mod = importlib.import_module(self.SETTINGS_MODULE)\n File \"/usr/lib/python3.9/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 972, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\n File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 986, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 680, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 790, in exec_module\n File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\n File \"/opt/openwisp2/openwisp2/__init__.py\", line 1, in <module>\n from .celery import app as celery_app\n File \"/opt/openwisp2/openwisp2/celery.py\", line 3, in <module>\n from celery import Celery\n
ModuleNotFoundError: No module named 'celery'\n", "path": "/opt/openwisp2/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin", "syspath": ["/tmp/ansible_django_manage_payload_vkj3x4t7/ansible_django_manage_payload.zip", "/usr/lib/python39.zip", "/usr/lib/python3.9", "/usr/lib/python3.9/lib-dynload", "/usr/local/lib/python3.9/dist-packages", "/usr/lib/python3/dist-packages", "/usr/lib/python3.9/dist-packages"]}