Bug#1028994: [Pkg-mailman-hackers] Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-28 Thread Petter Reinholdtsen


[Sebastiaan Couwenberg]
> How is that going?
> 
> mailman3 is the last major blocker for testing migration of
> python3-defaults.

No idea what is going on, but thought it best to mention that mailman3
has been removed from testing because of this issue.
-- 
Happy hacking
Petter Reinholdtsen



Bug#1028994: [Pkg-mailman-hackers] Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-25 Thread Sebastiaan Couwenberg

On Tue, 17 Jan 2023 15:32:53 +0100 Pierre-Elliott Bécue wrote:

I intend to do a full sweep on mailman suite in the next week, so don't
worry too much! :)


How is that going?

mailman3 is the last major blocker for testing migration of 
python3-defaults.


Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#1028994: [Pkg-mailman-hackers] Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-17 Thread James Addison
On Tue, 17 Jan 2023 at 14:33, Pierre-Elliott Bécue  wrote:
>
> I intend to do a full sweep on mailman suite in the next week, so don't
> worry too much! :)

Brilliant - thank you :)



Bug#1028994: [Pkg-mailman-hackers] Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-17 Thread Pierre-Elliott Bécue
Hi,

James Addison  wrote on 17/01/2023 at 15:17:43+0100:

> Source: mailman3
> Version: 3.3.7-3
> Followup-For: Bug #1028994
>
> Dear Maintainer,
>
> There is hopefully good news relating to this bug: upstream has
> discovered the same problem and fixed it after version v3.3.7 - the
> fix is included in v3.3.8 of mailman3.
>
> (the fix includes removal of a 'coroutine' decorator that causes the failure, 
> instead declaring the associated method using 'async def' instead of 'def')
>
> See the following links for the changes between the mentioned versions, and 
> the contents of the fix:
>
> - https://gitlab.com/mailman/mailman/-/compare/3.3.7...3.3.8
>
> - 
> https://gitlab.com/mailman/mailman/-/commit/1954815f32fea4d9d920cdc74f63bcc24d3b6c49
>
> Note: version 3.3.8 of the package retains Python 3.10 support, which
> may be helpful if the Debian project decides to rollback to that
> version of Python for the upcoming bookworm release.

I intend to do a full sweep on mailman suite in the next week, so don't
worry too much! :)

-- 
PEB



Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-17 Thread James Addison
Source: mailman3
Version: 3.3.7-3
Followup-For: Bug #1028994

Dear Maintainer,

There is hopefully good news relating to this bug: upstream has discovered the 
same problem and fixed it after version v3.3.7 - the fix is included in v3.3.8 
of mailman3.

(the fix includes removal of a 'coroutine' decorator that causes the failure, 
instead declaring the associated method using 'async def' instead of 'def')

See the following links for the changes between the mentioned versions, and the 
contents of the fix:

- https://gitlab.com/mailman/mailman/-/compare/3.3.7...3.3.8

- 
https://gitlab.com/mailman/mailman/-/commit/1954815f32fea4d9d920cdc74f63bcc24d3b6c49

Note: version 3.3.8 of the package retains Python 3.10 support, which may be 
helpful if the Debian project decides to rollback to that version of Python for 
the upcoming bookworm release.

Thank you,
James

[1] - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998223



Bug#1028994: mailman3: (autopkgtest) needs update for Python 3.11

2023-01-15 Thread Graham Inggs
Source: mailman3
Version: 3.3.7-3
Severity: serious
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults

Hi Maintainer

The autopkgtests of mailman3 fail with Python 3.11 as the default
version (and Python 3.10 still supported).  I've copied what I hope is
the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/m/mailman3/testing/amd64/


Traceback (most recent call last):
  File "/usr/bin/runner", line 33, in 
sys.exit(load_entry_point('mailman==3.3.7', 'console_scripts', 'runner')())
 ^
  File "/usr/lib/python3/dist-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
   ^^
  File "/usr/lib/python3/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
 
  File "/usr/lib/python3/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
   ^^^
  File "/usr/lib/python3/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
   ^^^
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 26,
in new_func
return f(get_current_context(), *args, **kwargs)
   ^
  File "/usr/lib/python3/dist-packages/mailman/bin/runner.py", line 184, in main
runner = make_runner(*runner_spec, once=once)
 
  File "/usr/lib/python3/dist-packages/mailman/bin/runner.py", line
55, in make_runner
runner_class = find_name(class_path)
   ^
  File "/usr/lib/python3/dist-packages/mailman/utilities/modules.py",
line 52, in find_name
module = import_module(module_path)
 ^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1149, in _find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mailman/runners/lmtp.py", line
128, in 
class LMTPHandler:
  File "/usr/lib/python3/dist-packages/mailman/runners/lmtp.py", line
129, in LMTPHandler
@asyncio.coroutine
 ^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you
mean: 'coroutines'?
Exception in thread Thread-2 (loop):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
  File 
"/tmp/autopkgtest-lxc.pwnysvr8/downtmp/build.1YK/src/src/mailman/testing/helpers.py",
line 203, in loop
self.start_check()
  File 
"/tmp/autopkgtest-lxc.pwnysvr8/downtmp/build.1YK/src/src/mailman/rest/tests/test_membership.py",
line 675, in _wait_for_both
cls.client = get_lmtp_client(quiet=True)
 ^^^
  File 
"/tmp/autopkgtest-lxc.pwnysvr8/downtmp/build.1YK/src/src/mailman/testing/helpers.py",
line 241, in get_lmtp_client
raise RuntimeError('Connection refused')
RuntimeError: Connection refused