Your message dated Wed, 13 Jan 2021 22:18:32 +0000
with message-id <[email protected]>
and subject line Bug#958976: fixed in mailman3 3.3.2-1
has caused the Debian Bug report #958976,
regarding mailman3: import21 is broken with python 3.7 and python 3.8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
958976: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958976
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mailman3
Version: 3.2.1-1
Severity: important
Control: tags -1 + patch fixed-upstream
Control: fixed -1 3.3.0
Control: forwarded -1 https://gitlab.com/mailman/mailman/-/issues/625

On a stock buster system, it is impossible to import a mailman2 mailing
list into mailman3, because the `import21` subcommand fails with the
a message like the following:

```
Traceback (most recent call last):
  File "/usr/bin/mailman", line 11, in <module>
    load_entry_point('mailman', 'console_scripts', 'mailman')()
  File "…/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "…/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "…/bin/mailman.py", line 68, in invoke
    return super().invoke(ctx)
  File "…/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "…/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "…/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "…/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "…/mailman/commands/cli_import.py", line 64, in import21
    pickle_file, encoding='utf-8', errors='ignore')
ModuleNotFoundError: No module named 'Mailman'
```

This is serious enough that it prevents anyone from the simplest path to
migrating from mailman2 to mailman3 on a buster system, so i think it
ought to be prioritized for a point release, especially as the
narrowly-targeted fix (attached here) is simple.

This was fixed upstream in 3.3.0.

See upstream fixes (where i extracted this particular fix from):
https://gitlab.com/mailman/mailman/-/commit/2a15437e911660ab87f960ac3a9eba131a2b7350
https://gitlab.com/mailman/mailman/-/commit/6bfe2d3bfa48ee391169eedaf2fbf024f5d7f423

Regards,

        --dkg

commit 2a15437e911660ab87f960ac3a9eba131a2b7350
Author: Abhilash Raj <[email protected]>
Date:   Sat Aug 31 15:38:48 2019 -0700

    Add fixes for Python 3.7.4 compatibility.

diff --git a/src/mailman/commands/cli_import.py b/src/mailman/commands/cli_import.py
index cda0bd285..4ebd91363 100644
--- a/src/mailman/commands/cli_import.py
+++ b/src/mailman/commands/cli_import.py
@@ -34,9 +34,13 @@ from zope.component import getUtility
 from zope.interface import implementer
 
 
-# A fake Bouncer class from Mailman 2.1, we don't use it but there are
-# instances in the .pck files.
-class Bouncer:
+# A fake module to go with `Bouncer`.
+class _Mailman:
+    __path__ = 'src/mailman/commands/cli_import.py'
+
+# A fake Mailman object with Bouncer class from Mailman 2.1, we don't use it
+# but there are instances in the .pck files.
+class _Bouncer:
     class _BounceInfo:
         pass
 
@@ -56,7 +60,8 @@ def import21(ctx, listspec, pickle_file):
     if mlist is None:
         ctx.fail(_('No such list: $listspec'))
     with ExitStack() as resources:
-        resources.enter_context(hacked_sys_modules('Mailman.Bouncer', Bouncer))
+        resources.enter_context(hacked_sys_modules('Mailman', _Mailman))
+        resources.enter_context(hacked_sys_modules('Mailman.Bouncer', _Bouncer))
         resources.enter_context(transaction())
         while True:
             try:

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: mailman3
Source-Version: 3.3.2-1
Done: Jonas Meurer <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mailman3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Meurer <[email protected]> (supplier of updated mailman3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 03 Jan 2021 21:20:45 +0100
Source: mailman3
Architecture: source
Version: 3.3.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Mailman Team <[email protected]>
Changed-By: Jonas Meurer <[email protected]>
Closes: 958976 958977 960072 968371 968817 977935 978959
Changes:
 mailman3 (3.3.2-1) unstable; urgency=medium
 .
   [ Daniel Kahn Gillmor ]
   * d/mailman3.logrotate: use mailman-wrapper instead of mailman binary
     after logrotate's job. (Closes: #958977)
 .
   [ Pierre-Elliott Bécue ]
   * New upstream release 3.3.1. (Closes: #958976, #960072, #968371)
   * Update dependencies and patches for the new upstream release
 .
   [ Jonas Meurer ]
   * New upstream release 3.3.2. (Closes: #968817, #977935)
   * d/mailman3.cron.d: (Closes: #978959)
     - Fix cronjob for digests
     - Add cronjob for sending out pending moderation notifications
     - Add cronjob for gating messages from usenet to mailinglists
   * d/control:
     - Bump Standards-Version to 4.5.1
     - Remove versioned build-dependency on python3-falcon
     - Add build-dependency on python3-sphinx-rtd-theme
     - Add build-dependency on python3-importlib-resources
   * d/p/0002-remove_importlib_resources_dependency.patch: Remove, the Debian
     package now uses `importlib_resources` just like mailman3 upstream.
   * d/p/0003-remove_sphinxcontrib.zopeext_dependency.patch: New patch to
     remove build-dependency on `sphinxcontrib-zopeext`
   * d/p/0004-add_missing_sphinx_configplugin.patch: New patch to add the
     missing custom sphinx plugin `configplugin`
   * d/mailman3.lintian-overrides: Ignore warnings about testing files
   * d/p/0005-fix_template_permissions.patch: Fix permissions of italian
     template translation files.
   * d/mailman3.postinst: Replace deprecated `tempfile` with `mktemp`
Checksums-Sha1:
 7ca18174d100c633e24f039229b31bf8ce453dab 2939 mailman3_3.3.2-1.dsc
 b5a3a964abf770020b388a6b87394006c52493b9 1396750 mailman3_3.3.2.orig.tar.gz
 4cc95a8416324f78d705c6fe613b40c16f9bdc57 833 mailman3_3.3.2.orig.tar.gz.asc
 950907e90a86465f3ec21282f5d6db1aaf930918 28740 mailman3_3.3.2-1.debian.tar.xz
 1377b090956be8d22bae9780c624377728fc1b20 9580 mailman3_3.3.2-1_amd64.buildinfo
Checksums-Sha256:
 87f89228bc2da3e5c7cfd2c9137a5443ffa635fb8b8dffcce2924d1f3766c620 2939 
mailman3_3.3.2-1.dsc
 af01971a6abd9002211ced964c650066f6451ab8fa967b16127e3088dc9aac28 1396750 
mailman3_3.3.2.orig.tar.gz
 29d16aac3297aa145cfe822ea031d6ba8e530e97ff01c7a9a7a5a335d78707cd 833 
mailman3_3.3.2.orig.tar.gz.asc
 e701dd466e43097e43432f4e76014af0e2fc8dfc4a3e65acb56f8daa98559023 28740 
mailman3_3.3.2-1.debian.tar.xz
 b918c7e0a391913c45a5fc7d9718b24e35ef2cf4cbc8c41308bd11a4da0fb760 9580 
mailman3_3.3.2-1_amd64.buildinfo
Files:
 9044ffb2d2f30f5ff22d47b73a4baadc 2939 mail optional mailman3_3.3.2-1.dsc
 3ccf891602708c9b9ad4d58ea9213f9d 1396750 mail optional 
mailman3_3.3.2.orig.tar.gz
 a7f6c4068c48c1b52c141ed747e5b759 833 mail optional 
mailman3_3.3.2.orig.tar.gz.asc
 9d0e7b80d99440f7e28e7f1e8fe26ea1 28740 mail optional 
mailman3_3.3.2-1.debian.tar.xz
 da8837a024a7b42065fc4e02447e9484 9580 mail optional 
mailman3_3.3.2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEELIzSg9Pv30M4kOeDUmLn/0kQSf4FAl//b4wACgkQUmLn/0kQ
Sf6wQhAAhD9LsdBvJp3QqSRz2vsZsOTzQ8TmQKLValPBjThhELArJTqxVvXOiPFz
apYlGGjtEQfw5S/TjF3bPxS7etEgB4BPItip+ebymX2XxsbTuEryKMdyIfBrGzeC
EnEv6Sv+A/kFJGF98LunZ8IgQMoGjPtB1DWXLGGhUZ6mjrEwi/VrxBfM7xghGAc9
sWrWurvN1J64IGDiFB0ZHUqMtkLuXiazDVTumKGShAPUO+DvhHVzcioapFM91Fck
8IZJJXKIfDkSp3xhRMVT89UzMNyJS6HIPTElK67VysG4pT8USVivoVeO2wr1Ys+Z
kmvRYvWBjAaR/68naDMF7bH8NNrmRgVLO9gdo7QwYOqelLyR3a+EkdIRqfrID8go
gTMeGsg9zwpBmOmPlD0HZqyalpdWsChwDXxKVZTefo+Yf5EiwX+mECy9Wb2mouu8
mwhlhuEMP9DAKEPPTUBeq0t1krSOoLIfHxwW/E1Lv+1HAi49Xk4p187lQPX5GN4f
70V6FFMffKRUYojneAYT1R2J/L0yU0VIwsjRwW5YMFXRmPMOeRCaIN1HkwhK1gHO
4+vjnKP84YrZF08hYaNjfi2SNCUxJN8pT9lUQpkUPSh5zEgyf+sfVWTU8D3AnEVb
4RzVD2dK+at0QWYa6pO9DLdwTUfxNG6MBLFiHgDxscrJmAJIReg=
=xJtG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to