Administration web interface and REST API for freeradius 3 build in django & python. Supports captive portal authentication, WPA Enerprise (802.1x), freeradius rlm_rest, social login, Hotspot 2.0 / 802.11u, importing users from CSV, registration of new users and more.
Hello.
I'm new to OpenWISP, but would like to get the hang of it.
I installed the latest release of OpenWISP-controller on my machine with ubuntu 22.
For it I need to implement OpenWISP-wifi-login-pages.
In fact, the controller already has Radius, but when I launch it I get the following error:
$ ./browser-test/wait_for_url.sh http://0.0.0.0:8080 http://localhost:8000/admin && jest browser-test --runInBand
Build successful: http://0.0.0.0:8080 is reachable.
Build successful: http://localhost:8000/admin is reachable.
OpenWISP RADIUS is not installed or python virtual environment is not activated correctly
● process.exit called with "1"
18 | }
19 | if (result.status !== 0) {
> 20 | process.exit(result.status);
| ^
21 | }
22 | };
23 |
at executeCommand (browser-test/utils.js:20:13)
at _callee4$ (browser-test/utils.js:53:9)
at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
at apply (node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
at initializeData (browser-test/utils.js:52:28)
at _callee3$ (browser-test/mobile-phone-change.test.js:36:25)
at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
at node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12
RUNS browser-test/mobile-phone-change.test.js
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It requires OpenWISP-Radius, which is strange. But okay, I installed OpenWISP-Radius, figured out the dependencies and my setup.py file began to look like this:
But when I start it, I get this problem and I don’t understand why:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
raise _exception[1]
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/core/management/__init__.py", line 398, in execute
autoreload.check_errors(django.setup)()
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/contrib/admin/apps.py", line 27, in ready
self.module.autodiscover()
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/contrib/admin/__init__.py", line 50, in autodiscover
autodiscover_modules("admin", register_to=site)
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 58, in autodiscover_modules
import_module("%s.%s" % (app_config.name, module_to_search))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/user/openwisp_controller/openwisp_controller/subnet_division/admin.py", line 5, in <module>
from openwisp_ipam.admin import IpAddressAdmin as BaseIpAddressAdmin
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/openwisp_ipam/admin.py", line 22, in <module>
from .api.views import HostsSet
File "/home/user/openwisp_controller/env/lib/python3.10/site-packages/openwisp_ipam/api/views.py", line 8, in <module>
from openwisp_users.api.mixins import (
ImportError: cannot import name 'ProtectedAPIMixin' from 'openwisp_users.api.mixins' (/home/user/openwisp_controller/env/lib/python3.10/site-packages/openwisp_users/api/mixins.py)
I tried different versions of openwisp-users, openwisp-utils (because with ./manage.py migrate OpenWISP-Radius complained about them, supposedly the versions were incompatible), in the end nothing changed.
Hello. I'm new to OpenWISP, but would like to get the hang of it. I installed the latest release of OpenWISP-controller on my machine with ubuntu 22. For it I need to implement OpenWISP-wifi-login-pages. In fact, the controller already has Radius, but when I launch it I get the following error:
It requires OpenWISP-Radius, which is strange. But okay, I installed OpenWISP-Radius, figured out the dependencies and my setup.py file began to look like this:
But when I start it, I get this problem and I don’t understand why:
I tried different versions of openwisp-users, openwisp-utils (because with ./manage.py migrate OpenWISP-Radius complained about them, supposedly the versions were incompatible), in the end nothing changed.