Bug 254135 - mail/mailman3: missing dependencies, pkg-message wrong, missing documentation
Summary: mail/mailman3: missing dependencies, pkg-message wrong, missing documentation
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Charlie Li
URL:
Keywords:
: 256444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-08 15:16 UTC by waitman
Modified: 2022-07-02 22:43 UTC (History)
6 users (show)

See Also:


Attachments
update to 3.3.5 and fix dependencies (4.31 KB, patch)
2022-07-02 22:36 UTC, Andrey Pevnev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description waitman 2021-03-08 15:16:39 UTC
After installing mail/mailman3, pkg-message is displayed:

To initialise Mailman's runtime directories, log files and database
for the first time, run

  service mailman info

You can then start Mailman by running:

  service mailman start


running "mailman info" reports errors that the following are not installed:

py37-gunicorn
py37-importlib-resources
py37-authres
py37-authheaders

After installing these manually, 

# 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.



# find /usr/local/share/ | grep mailman
/usr/local/share/licenses/py37-mailman-3.3.1
/usr/local/share/licenses/py37-mailman-3.3.1/catalog.mk
/usr/local/share/licenses/py37-mailman-3.3.1/GPLv3+
/usr/local/share/licenses/py37-mailman-3.3.1/LICENSE
/usr/local/share/bash-completion/completions/mailmanctl
# man mailman       
No manual entry for mailman
# find /usr/local/etc/ | grep mailman  
/usr/local/etc/rc.d/mailman
# find /usr/local/mailman/
/usr/local/mailman/
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2021-03-08 15:16:39 UTC
Maintainer informed via mail
Comment 2 Omar Polo 2021-06-06 16:32:43 UTC
*** Bug 256444 has been marked as a duplicate of this bug. ***
Comment 3 jonathan 2021-09-24 16:44:06 UTC
Are there that few people using this port? Over 6 months with a breaking bug and no fix or even a posted workaround?
Comment 4 Ekkehard 'Ekki' Gehm 2021-12-01 14:41:31 UTC
PING

Same here. And mailman2 is EOL in a few weeks due to EOL of py27


---8<---
# 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', 'mailman')())
  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 import_module
    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 843, 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'

---8<---

and after installing above packages:

 # 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.
Comment 5 Ekkehard 'Ekki' Gehm 2021-12-01 14:52:38 UTC
Quick tip:

I ran 'mailman shell'. After that I have a (minimalistic) mailman.cfg.

'service mailman info' still gives an error but 'mailman info' does not...

Continue from this point now... lets see
Comment 6 Marcin Cieślak 2022-04-29 12:00:09 UTC
I just run into https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263652 trying to "pkg install py38-mailman" and then "service mailman onestop". 

After installing the dependency "pkg install -A py38-psutil" here comes the next one:

# service mailman onestop                                         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', 'mailman')())
  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 import_module
    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 843, 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'

After "pkg install -A py38-importlib-resources" I finally get something better:

# service mailman onestop
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.

Which is not the best error message, either.
Comment 7 Andrey Pevnev 2022-07-02 22:36:13 UTC
Created attachment 235041 [details]
update to 3.3.5 and fix dependencies

There is the patch I've been using, seems to work ok. I took it from another PR, forgot the #
Comment 8 Andrey Pevnev 2022-07-02 22:43:58 UTC
(In reply to Andrey Pevnev from comment #7)
Patch is from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258941