I'm trying to create a list (on Ubuntu) and I'm getting this:
owners = ['xxxx@ddddddddd.net'] from mailman.app.lifecycle import create_list ant = create_list('llllllllllllll@dddddddd.net', owners) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/lifecycle.py", line 74, in create _list getUtility(IEmailValidator).validate(fqdn_listname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/zope/component/_api.py", line 180, in getUtil ity raise ComponentLookupError(interface, name) zope.interface.interfaces.ComponentLookupError: (<InterfaceClass mailman.interfaces.address.IEmailVa
<venv> $ python3 Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. lidator>, '')
On 11/1/25 10:20, dap1--- via Mailman-users wrote:
I'm trying to create a list (on Ubuntu) and I'm getting this:
owners = ['xxxx@ddddddddd.net'] from mailman.app.lifecycle import create_list ant = create_list('llllllllllllll@dddddddd.net', owners) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/lifecycle.py", line 74, in create _list getUtility(IEmailValidator).validate(fqdn_listname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/zope/component/_api.py", line 180, in getUtil ity raise ComponentLookupError(interface, name) zope.interface.interfaces.ComponentLookupError: (<InterfaceClass mailman.interfaces.address.IEmailVa
<venv> $ python3 Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. lidator>, '')
I'm not sure why this doesn't work, but it probably will if you do it in
mailman shell which defines a lot of things for you.
However, it is much simpler to just use the mailman create command to
create a list. See mailman create --help
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I didn't see that in the documentation. Anyway, that seems to have worked and I was able to import the list. However, I cannot import the archives. The documentation says to use mailman manage.py but does not say where it is. My search turned up 2, so which do I use?
./venv/lib/python3.12/site-packages/falcon/bench/dj/manage.py ./venv/lib/python3.12/site-packages/mailman_web/manage.py
On 11/1/25 11:50, dap1--- via Mailman-users wrote:
I didn't see that in the documentation. Anyway, that seems to have worked and I was able to import the list. However, I cannot import the archives. The documentation says to use mailman manage.py but does not say where it is. My search turned up 2, so which do I use?
./venv/lib/python3.12/site-packages/falcon/bench/dj/manage.py ./venv/lib/python3.12/site-packages/mailman_web/manage.py
See the note at the bottom of the first section of the docs at https://docs.mailman3.org/en/latest/index.html.
With your venv active the command you want is mailman-web.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I don't think I understand. Are you saying the import (and the other commands) should be this:
python mailman-web hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
On 11/1/25 12:19, dap1--- via Mailman-users wrote:
I don't think I understand. Are you saying the import (and the other commands) should be this:
python mailman-web hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
With your venv active the command is just mailman-web
not python mailman-web
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 11/2/25 06:45, dap1--- via Mailman-users wrote:
That seems to have worked. Thanks. Shouldn't that be documented as well?
It (the name of the Django admin command) is documented in the Note in the first section of the top level doc at https://docs.mailman3.org/en/latest/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
dap1@bellsouth.net -
Mark Sapiro