Package: python3-motor
Version: 2.3.0-2
Severity: important
X-Debbugs-Cc: thomas.celler...@appgate.com

Dear Maintainer,

Since bookworm was switched to python3.11 from python3.10 the
python3-motor package breaks when trying to use asyncio.

This is very easy to reproduce:

    $ python3
    Python 3.11.2 (main, Feb 12 2023, 00:48:52) [GCC 12.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import motor.motor_asyncio
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/motor/motor_asyncio.py", line 18, in 
<module>
        from .frameworks import asyncio as asyncio_framework
      File 
"/usr/lib/python3/dist-packages/motor/frameworks/asyncio/__init__.py", line 28, 
in <module>
        from asyncio import coroutine  # For framework interface.
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ImportError: cannot import name 'coroutine' from 'asyncio' 
(/usr/lib/python3.11/asyncio/__init__.py)

This makes the package unusable when using asyncio on bookworm.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-32-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages python3-motor depends on:
ii  python3          3.11.1-3
ii  python3-gridfs   3.11.0-1
ii  python3-pymongo  3.11.0-1+b5

python3-motor recommends no packages.

Versions of packages python3-motor suggests:
pn  python3-aiohttp  <none>
pn  python3-tornado  <none>

-- no debconf information

Reply via email to