[Bug 256444] mail/mailman3: missing dependency on importlib-resources

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Jun 2021 16:28:45 +0000

            Bug ID: 256444
           Summary: mail/mailman3: missing dependency on
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: vishwin_at_freebsd.org
          Reporter: freebsd_at_omarpolo.com
          Assignee: vishwin_at_freebsd.org
             Flags: maintainer-feedback?(vishwin_at_freebsd.org)

It seems that the latest mail/mailman3 is missing a dependency on

root_at_mail:~ # pkg install mailman3
root_at_mail:~ # service mailman info
Traceback (most recent call last):
  File "/usr/local/bin/mailman", line 33, in <module>
    sys.exit(load_entry_point('mailman==3.3.1', 'console_scripts',
  File "/usr/local/bin/mailman", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/mailman/bin/mailman.py", line
22, in <module>
    from mailman.config import config
  File "/usr/local/lib/python3.8/site-packages/mailman/config/__init__.py",
line 20, in <module>
    from mailman.config.config import Configuration
  File "/usr/local/lib/python3.8/site-packages/mailman/config/config.py", line
27, in <module>
    from importlib_resources import path, read_text
ModuleNotFoundError: No module named 'importlib_resources'

(the same happens even when running plain `mailman')

After the py38-importlib-resource package is installed, it seems to work:

root_at_mail:~ # pkg install py38-importlib-resources
root_at_mail:~ # service mailman info
Usage: mailman [OPTIONS] COMMAND [ARGS]...
Try 'mailman -h' for help.

Error: Invalid value for '-C' / '--config': File
'/usr/local/mailman/etc/mailman.cfg' does not exist.
root_at_mail:~ #

this is happening on FreeBSD 13.0-RELEASE-p1 with packages build from the
master branch.

NB: this is different from bug#254135 (which seems fixed?)


You are receiving this mail because:
You are the assignee for the bug.
Received on Sun Jun 06 2021 - 16:28:45 UTC

Original text of this message