Ajay,

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.

Thanks for your help

--// Begin
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"]}
--// End

On Tue, Dec 15, 2020 at 8:45 AM Sinh Ta <[email protected]> wrote:

> Hello Ajay,
>
> Sorry, I was just too busy during the day! So a bit late in replying.
> When I manually run the command that you stated, it works! Please see below
> --// Begin
>
> *pi@raspberry-pi*:*~ $* cd /opt/openwisp2
>
> *pi@raspberry-pi*:*/opt/openwisp2 $* ls
>
> db.sqlite3  *env*  *generate_django_secret_key.py*  *log*  *manage.py*
> *openwisp2*
>
> *pi@raspberry-pi*:*/opt/openwisp2 $* source env/bin/activate
> (env) *pi@raspberry-pi*:*/opt/openwisp2 $*
> --// End
>
> On Mon, Dec 14, 2020 at 2:16 PM Ajay Tripathi <[email protected]> wrote:
>
>> Hi,
>>
>> I think the `source env/bin/activate` command did not work, can you
>> please double check if the python virtual environment is activated.
>> You terminal would look like `(env) pi@raspberry-pi:/opt/openwisp2 $` if
>> it works successfully!
>>
>>
>> Ajay
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "OpenWISP" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/openwisp/4e__ZUPDy04/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/openwisp/0647e1c8-02e9-4324-a238-6053dcf4bc07n%40googlegroups.com
>> <https://groups.google.com/d/msgid/openwisp/0647e1c8-02e9-4324-a238-6053dcf4bc07n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Sinh
>


-- 
Sinh

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAJDfUHUJ%2BQCO--o40FdFKkgZLi77Bd7EKqQTxKAa2Bc89BHhHw%40mail.gmail.com.

Reply via email to