Migration of archives mailman2 to mailman3: python: can't open file '/opt/mailman/manage.py': [Errno 2] No such file or directory

Your current *) documentation says
Migrate the list archives from Mailman 2 to Mailman 3 by running the following command:
$ python manage.py hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
(venv) /opt/mailman $ python manage.py python: can't open file '/opt/mailman/manage.py': [Errno 2] No such file or directory
What did I wrong or what is that part of your documentation missing?

On Sun, Aug 10, 2025 at 2:13 PM Wikinaut <mail@tgries.de> wrote:
Your current *) documentation says
Migrate the list archives from Mailman 2 to Mailman 3 by running the
following command: $ python manage.py hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
(venv) /opt/mailman $ python manage.py python: can't open file '/opt/mailman/manage.py': [Errno 2] No such file or directory
What did I wrong or what is that part of your documentation missing?
Substitute mailman-web for 'python manage.py':
(venv) /opt/mailman $ mailman-web hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]

Thank you very much.
Shall I (or you?) fix that in the documentation, at least as third footnote?

On 8/10/25 12:40 PM, Wikinaut wrote:
Thank you very much.
Shall I (or you?) fix that in the documentation, at least as third footnote?
See the note in the first section 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

On 8/10/25 11:13 AM, Wikinaut wrote:
Your current *) documentation says
Migrate the list archives from Mailman 2 to Mailman 3 by running the following command: $ python manage.py hyperkitty_import -l foo-list@example.com $var_prefix/archives/private/foo-list.mbox/foo-list.mbox
(venv) /opt/mailman $ python manage.py python: can't open file '/opt/mailman/manage.py': [Errno 2] No such file or directory
What did I wrong or what is that part of your documentation missing?
The documentation doesn't always say so, but the Django admin command
may be called manage.py or not depending on how you installed Django. If
you installed following
https://docs.mailman3.org/en/latest/install/virtualenv.html, i.e.
installed mailman-web, instead of python manage.py
the command is just
django-admin
.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 8/10/25 11:38 AM, Mark Sapiro wrote:
The documentation doesn't always say so, but the Django admin command may be called manage.py or not depending on how you installed Django. If you installed following https://docs.mailman3.org/en/latest/install/ virtualenv.html, i.e. installed mailman-web, instead of
python manage.py
the command is justdjango-admin
.
Or, as Odhiambo says, mailman-web
which is probably better as
django-admin
may not find your settings file.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Success!!
Everything - apart from 2 bugs I will report later separately - went smoothly an I could migrate mailinglists and archives of ~30 mailman2 lists to a new server and to mailman3, in total it was ~ 12 GB.
I will later help to improve your documentation in those places, where it is wrong or where information is lacking.
participants (3)
-
Mark Sapiro
-
Odhiambo Washington
-
Wikinaut