Public bug reported:

Running latest Ubuntu in Docker and trying to install Mailman 3, and opting to 
not configure any database, it runs into the following error:
```
dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf
/usr/lib/python3/dist-packages/django_q/conf.py:174: UserWarning: Retry and time
out are misconfigured. Set retry larger than timeout,failure to do so will cause
 the tasks to be retriggered before completion.See https://django-q2.readthedocs
.io/en/master/configure.html#retry for details.
  warn(
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 33, in <module>
    sys.exit(load_entry_point('Django==4.2.11', 'console_scripts', 'django-admin
')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line
 442, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line
 416, in execute
    django.setup()
  File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 124, in po
pulate
    app_config.ready()
  File "/usr/lib/python3/dist-packages/allauth/account/apps.py", line 15, in rea
dy
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: allauth.account.middleware.AccountM
iddleware must be added to settings.MIDDLEWARE
dpkg: error processing package mailman3-web (--configure):
 installed mailman3-web package post-installation script subprocess returned err
or exit status 1
dpkg: dependency problems prevent configuration of mailman3-full:
 mailman3-full depends on mailman3-web; however:
  Package mailman3-web is not configured yet.

Errors were encountered while processing:
 mailman3-web
 mailman3-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
Manually configuring settings.py then yields another error:
```
dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf
/usr/lib/python3/dist-packages/django_q/conf.py:174: UserWarning: Retry and time
out are misconfigured. Set retry larger than timeout,failure to do so will cause
 the tasks to be retriggered before completion.See https://django-q2.readthedocs
.io/en/master/configure.html#retry for details.
  warn(
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/template/utils.py", line 69, in __
getitem__
    return self._engines[alias]
           ~~~~~~~~~~~~~^^^^^^^
KeyError: 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 128, in get_package_libraries
    module = import_module(entry[1])
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/hyperkitty/templatetags/decorate.py", lin
e 4, in <module>
    from hyperkitty.lib.renderer import markdown_renderer, text_renderer
  File "/usr/lib/python3/dist-packages/hyperkitty/lib/renderer.py", line 6, in <
module>
    from mistune.plugins.extra import plugin_url
ModuleNotFoundError: No module named 'mistune.plugins.extra'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/django-admin", line 33, in <module>
    sys.exit(load_entry_point('Django==4.2.11', 'console_scripts', 'django-admin
')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line
 442, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line
 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 412
, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 458
, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 106
, in wrapper
    res = handle_func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/core/management/commands/migrate.p
y", line 100, in handle
    self.check(databases=[database])
  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 485
, in check
    all_issues = checks.run_checks(
                 ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/core/checks/registry.py", line 88,
 in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/contrib/admin/checks.py", line 78,
 in check_dependencies
    for engine in engines.all():
                  ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/template/utils.py", line 94, in al
l
    return [self[alias] for alias in self]
            ~~~~^^^^^^^
  File "/usr/lib/python3/dist-packages/django/template/utils.py", line 85, in __
getitem__
    engine = engine_cls(params)
             ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 24, in __init__
    options["libraries"] = self.get_templatetag_libraries(libraries)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 42, in get_templatetag_libraries
    libraries = get_installed_libraries()
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 116, in get_installed_libraries
    return {
           ^
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 105, in get_template_tag_modules
    for name in get_package_libraries(pkg):
  File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line
 130, in get_package_libraries
    raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Invalid template library specifi
ed. ImportError raised when trying to load 'hyperkitty.templatetags.decorate': N
o module named 'mistune.plugins.extra'
```
python3-mistune is installed, though it appears that the mistune.plugins.extra 
module is no longer present when python3 cli, and thus the error.

** Affects: mailman3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: packaging

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091136

Title:
  mailman-web fails to install due to improperly configured
  settings.MIDDLEWARE, and other issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mailman3/+bug/2091136/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to