[Python-modules-team] Bug#939497: AttributeError: 'method' object has no attribute 'STRONGHOLD_IS_PUBLIC'
James Valleroy
jvalleroy at mailbox.org
Thu Sep 5 15:49:15 BST 2019
Package: python3-django-stronghold
Version: 0.3.0+debian-2
Severity: important
Tags: upstream
Dear Maintainer,
While running FreedomBox on Debian unstable (in vagrant box, and
development mode), I installed the JSXC app and opened it. I got the
following django error page:
AttributeError at /apps/jsxc/jsxc/
'method' object has no attribute 'STRONGHOLD_IS_PUBLIC'
Environment:
Request Method: GET
Request URL: https://localhost:4430/plinth/apps/jsxc/jsxc/
Django Version: 2.2.5
Python Version: 3.7.4
Installed Applications:
['axes',
'captcha',
'bootstrapform',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'stronghold',
'plinth',
'plinth.modules.minetest',
'plinth.modules.searx',
'plinth.modules.ejabberd',
'plinth.modules.syncthing',
'plinth.modules.openvpn',
'plinth.modules.shadowsocks',
'plinth.modules.monkeysphere',
'plinth.modules.ttrss',
'plinth.modules.transmission',
'plinth.modules.mldonkey',
'plinth.modules.help',
'plinth.modules.radicale',
'plinth.modules.api',
'plinth.modules.mumble',
'plinth.modules.mediawiki',
'plinth.modules.cockpit',
'plinth.modules.matrixsynapse',
'plinth.modules.diagnostics',
'plinth.modules.firewall',
'plinth.modules.tor',
'plinth.modules.avahi',
'plinth.modules.power',
'plinth.modules.i2p',
'plinth.modules.quassel',
'plinth.modules.users',
'plinth.modules.apache',
'plinth.modules.sso',
'plinth.modules.ssh',
'plinth.modules.sharing',
'plinth.modules.upgrades',
'plinth.modules.dynamicdns',
'plinth.modules.backups',
'plinth.modules.storage',
'plinth.modules.tahoe',
'plinth.modules.snapshot',
'plinth.modules.roundcube',
'plinth.modules.config',
'plinth.modules.ikiwiki',
'plinth.modules.deluge',
'plinth.modules.networks',
'plinth.modules.names',
'plinth.modules.first_boot',
'plinth.modules.infinoted',
'plinth.modules.datetime',
'plinth.modules.pagekite',
'plinth.modules.privoxy',
'plinth.modules.security',
'plinth.modules.jsxc',
'plinth.modules.bind',
'plinth.modules.letsencrypt']
Installed Middleware:
('django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'stronghold.middleware.LoginRequiredMiddleware',
'plinth.middleware.AdminRequiredMiddleware',
'plinth.middleware.FirstSetupMiddleware',
'plinth.modules.first_boot.middleware.FirstBootMiddleware',
'plinth.middleware.SetupMiddleware')
Traceback:
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in _get_response
115. response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in _get_response
113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/utils/decorators.py" in _wrapper
44. bound_method = dec(bound_method)
File "/usr/lib/python3/dist-packages/stronghold/decorators.py" in public
13. set_view_func_public(orig_func)
File "/usr/lib/python3/dist-packages/stronghold/utils.py" in set_view_func_public
13. setattr(func, 'STRONGHOLD_IS_PUBLIC', True)
Exception Type: AttributeError at /apps/jsxc/jsxc/
Exception Value: 'method' object has no attribute 'STRONGHOLD_IS_PUBLIC'
Appears to be the same as the upstream issue for Django 2.1
compatibility, reported here:
https://github.com/mgrouchy/django-stronghold/issues/75
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-django-stronghold depends on:
ii python3 3.7.3-1
ii python3-django 2:2.2.5-1
python3-django-stronghold recommends no packages.
python3-django-stronghold suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list