Package: mitmproxy
Version: 4.0.4-6
Severity: grave
Tags: newcomer
Justification: renders package unusable

After upgrading python3-wsproto to version 0.15.0-2, mitmproxy fails
immediately with this error message:

    ImportError: cannot import name 'WSConnection' from 'wsproto.connection'
    (/usr/lib/python3/dist-packages/wsproto/connection.py)

As stated in the setup.py of mitmproxy, it requires the Python
module wsproto to be at least 0.14.0 and < 0.15.0 [1]:

    "wsproto>=0.14.0,<0.15.0",

Downgrading the package with `apt install python3-wsproto=0.11.0-3` solves
this issue temporarily (this version is shown below).

[1] 
https://github.com/mitmproxy/mitmproxy/blob/7b638f1b6b543ec5e23170217a42ca0e5c421992/setup.py#L85


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

Kernel: Linux 5.3.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mitmproxy depends on:
ii  dpkg                      1.19.7
ii  fonts-font-awesome        5.0.10+really4.7.0~dfsg-1
ii  python3                   3.7.5-3
ii  python3-blinker           1.4+dfsg1-0.3
ii  python3-brotli            1.0.7-6
ii  python3-certifi           2019.11.28-1
ii  python3-click             7.0-3
ii  python3-cryptography      2.6.1-4
ii  python3-h11               0.8.1-2
ii  python3-h2                3.0.1-5
ii  python3-hyperframe        5.2.0-4
ii  python3-kaitaistruct      0.8-3
ii  python3-ldap3             2.4.1-2
ii  python3-openssl           19.0.0-1
ii  python3-passlib           1.7.1-1
ii  python3-pkg-resources     41.4.0-1
ii  python3-pyasn1            0.4.2-3
ii  python3-pyparsing         2.4.2-1
ii  python3-pyperclip         1.7.0-1
ii  python3-ruamel.yaml       0.15.89-3+b1
ii  python3-sortedcontainers  2.1.0-2
ii  python3-tornado           6.0.3+really5.1.1-2
ii  python3-urwid             2.0.1-2+b2
ii  python3-wsproto           0.11.0-3

mitmproxy recommends no packages.

mitmproxy suggests no packages.

-- no debconf information

Reply via email to