Last active
January 25, 2019 19:03
-
-
Save 2stacks/a90ba06f92ed3b0805dba5136ef61f7b to your computer and use it in GitHub Desktop.
django-freeradius dependency on openwisp_utils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ReadOnlyAdmin was moved to openwisp-utils per this commit - https://github.com/openwisp/openwisp-utils/commit/58ac13d5f1f41da82aeaba69629ad83c76a737ba | |
Installing django-freeradius requires openwisp-utils | |
openwisp-utils>=0.2,<0.3.1 | |
Version of openwisp-utils available on PyPi doesn't include changes made to master since last release v0.2.2 | |
When trying to run Django project which includes django-freeradius I see the failure in the logs below. | |
Able to work around by manually installing latest openwisp-utils commit to master via pip | |
pip install https://github.com/openwisp/openwisp-utils/tarball/master | |
docker-compose -f local.yml logs django | |
Attaching to blindspot_django_1_efc5dcd040f5 | |
django_1_efc5dcd040f5 | Waiting for PostgreSQL to become available... | |
django_1_efc5dcd040f5 | Waiting for PostgreSQL to become available... | |
django_1_efc5dcd040f5 | PostgreSQL is available | |
django_1_efc5dcd040f5 | Traceback (most recent call last): | |
django_1_efc5dcd040f5 | File "manage.py", line 30, in <module> | |
django_1_efc5dcd040f5 | execute_from_command_line(sys.argv) | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line | |
django_1_efc5dcd040f5 | utility.execute() | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute | |
django_1_efc5dcd040f5 | django.setup() | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 24, in setup | |
django_1_efc5dcd040f5 | apps.populate(settings.INSTALLED_APPS) | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", line 120, in populate | |
django_1_efc5dcd040f5 | app_config.ready() | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/contrib/admin/apps.py", line 24, in ready | |
django_1_efc5dcd040f5 | self.module.autodiscover() | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/contrib/admin/__init__.py", line 26, in autodiscover | |
django_1_efc5dcd040f5 | autodiscover_modules('admin', register_to=site) | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django/utils/module_loading.py", line 47, in autodiscover_modules | |
django_1_efc5dcd040f5 | import_module('%s.%s' % (app_config.name, module_to_search)) | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module | |
django_1_efc5dcd040f5 | return _bootstrap._gcd_import(name[level:], package, level) | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap>", line 994, in _gcd_import | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap>", line 971, in _find_and_load | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap>", line 665, in _load_unlocked | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap_external>", line 678, in exec_module | |
django_1_efc5dcd040f5 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django_freeradius/admin.py", line 5, in <module> | |
django_1_efc5dcd040f5 | from .base.admin import ( | |
django_1_efc5dcd040f5 | File "/usr/local/lib/python3.6/site-packages/django_freeradius/base/admin.py", line 8, in <module> | |
django_1_efc5dcd040f5 | from openwisp_utils.admin import ReadOnlyAdmin, TimeReadonlyAdminMixin | |
django_1_efc5dcd040f5 | ImportError: cannot import name 'ReadOnlyAdmin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment