==> Building on nidoking ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/mitmproxy ./ PKGBUILD 1,860 100% 0.00kB/s 0:00:00 1,860 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) mitmproxy-9.0.1-1.log 244 100% 238.28kB/s 0:00:00 244 100% 238.28kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,263 bytes received 98 bytes 2,722.00 bytes/sec total size is 2,055 speedup is 1.51 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix6 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix6]...done ==> Making package: mitmproxy 9.0.1-1 (Sun Feb 26 06:21:21 2023) ==> Retrieving sources...  -> Downloading mitmproxy-9.0.1.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4690k 0 4690k 0 0 3582k 0 --:--:-- 0:00:01 --:--:-- 3582k 100 20.3M 0 20.3M 0 0 9332k 0 --:--:-- 0:00:02 --:--:-- 17.0M 100 28.0M 0 28.0M 0 0 10.9M 0 --:--:-- 0:00:02 --:--:-- 18.6M ==> Validating source files with sha512sums... mitmproxy-9.0.1.tar.gz ... Passed ==> Making package: mitmproxy 9.0.1-1 (Sun Feb 26 06:21:33 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (58) New Version Net Change Download Size community/cython 0.29.33-1 7.53 MiB core/libnsl 2.0.0-2 0.06 MiB extra/protobuf 21.12-1 7.69 MiB extra/publicsuffix-list 20220825.1289.4f29f15-1 0.25 MiB core/python 3.10.9-1 81.37 MiB community/python-autocommand 2.2.2-1 0.07 MiB extra/python-cffi 1.15.1-1 1.00 MiB community/python-click 8.1.3-1 0.89 MiB community/python-fastjsonschema 2.16.2-1 0.20 MiB community/python-hpack 4.0.0-3 0.95 MiB community/python-inflect 6.0.2-1 0.28 MiB community/python-itsdangerous 2.1.2-2 0.11 MiB community/python-jaraco.context 4.3.0-1 0.03 MiB community/python-jaraco.functools 3.5.2-1 0.05 MiB community/python-jaraco.text 3.11.1-1 0.07 MiB community/python-jinja 1:3.1.2-2 1.28 MiB extra/python-markupsafe 2.1.2-1 0.06 MiB community/python-more-itertools 9.0.0-1 0.49 MiB extra/python-ordered-set 4.1.0-1 0.06 MiB extra/python-packaging 23.0-1 0.32 MiB extra/python-platformdirs 2.6.2-1 0.12 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pyasn1 0.4.8-7 0.60 MiB extra/python-pycparser 2.21-3 1.39 MiB community/python-pydantic 1.10.4-1 5.81 MiB community/python-ruamel.yaml.clib 0.2.7-1 0.24 MiB extra/python-six 1.16.0-6 0.09 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/python-trove-classifiers 2023.2.8-1 0.11 MiB community/python-typing_extensions 4.5.0-1 0.23 MiB extra/python-validate-pyproject 0.12.1-1 0.22 MiB community/python-werkzeug 2.2.3-1 2.06 MiB 0.33 MiB extra/python-asgiref 3.5.2-1 0.15 MiB community/python-blinker 1.5-1 0.08 MiB 0.02 MiB core/python-brotli 1.0.9-9 0.67 MiB 0.31 MiB community/python-certifi 2022.12.07-1 0.01 MiB extra/python-cryptography 39.0.1-1 3.61 MiB community/python-flask 2.2.2-1 0.89 MiB community/python-h11 0.14.0-1 0.43 MiB community/python-h2 4.1.0-1 0.52 MiB community/python-hyperframe 6.0.1-3 0.10 MiB community/python-kaitaistruct 0.10-1 0.05 MiB 0.01 MiB community/python-ldap3 2.9.1-3 5.51 MiB 0.43 MiB community/python-mitmproxy-wireguard 0.1.20-1 1.46 MiB 0.60 MiB community/python-msgpack 1.0.4-1 0.22 MiB community/python-passlib 1.7.4-5 4.18 MiB extra/python-protobuf 21.12-1 1.77 MiB community/python-publicsuffix2 2.20191221-6 0.11 MiB extra/python-pyopenssl 23.0.0-1 0.56 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB community/python-pyperclip 1.8.2-4 0.07 MiB community/python-ruamel-yaml 0.17.21-1 1.13 MiB extra/python-setuptools 1:67.3.3-1 3.33 MiB 0.58 MiB community/python-sortedcontainers 2.4.0-3 0.33 MiB community/python-tornado 6.2.0-2 4.07 MiB extra/python-urwid 2.1.2-3 1.96 MiB community/python-wsproto 1.2.0-1 0.19 MiB 0.04 MiB community/python-zstandard 0.20.0-1 1.05 MiB 0.30 MiB Total Download Size: 2.63 MiB Total Installed Size: 147.42 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-mitmproxy-wireguard-0.1.20-1-riscv64 downloading... python-setuptools-1:67.3.3-1-any downloading... python-ldap3-2.9.1-3-any downloading... python-werkzeug-2.2.3-1-any downloading... python-brotli-1.0.9-9-riscv64 downloading... python-zstandard-0.20.0-1-riscv64 downloading... python-wsproto-1.2.0-1-any downloading... python-blinker-1.5-1-any downloading... python-kaitaistruct-0.10-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools [pending] python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-asgiref... installing python-blinker... installing python-brotli... installing python-certifi... installing python-ply... installing python-pycparser... installing python-cffi... installing python-cryptography... installing python-markupsafe... installing python-werkzeug... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-itsdangerous... installing python-click... installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views [installed] python-dotenv: loading env vars from files installing python-h11... installing python-hpack... installing python-hyperframe... installing python-h2... installing python-kaitaistruct... installing python-pyasn1... installing python-ldap3... installing python-mitmproxy-wireguard... installing python-msgpack... installing python-passlib... Optional dependencies for python-passlib python-fastpbkdf2: accelerate PBKDF2-based hashes python-bcrypt: accelerate Bcrypt hashes python-scrypt: accelerate SCrypt hashes installing python-six... installing protobuf... installing python-protobuf... installing python-pyopenssl... installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams [installed] installing python-pyperclip... Optional dependencies for python-pyperclip xclip: xclip backend xsel: xsel backend plasma-workspace: klipper backend installing python-ruamel.yaml.clib... installing python-ruamel-yaml... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing cython... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-sortedcontainers... installing python-tornado... Optional dependencies for python-tornado python-pycurl: for tornado.curl_httpclient python-twisted: for tornado.platform.twisted installing python-urwid... installing python-wsproto... installing publicsuffix-list... installing python-publicsuffix2... installing python-zstandard... Optional dependencies for python-zstandard python-cffi [installed] [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (15) New Version Net Change Download Size community/python-arpeggio 2.0.0-1 0.26 MiB extra/python-attrs 22.2.0-1 0.44 MiB extra/python-chardet 5.1.0-1 2.49 MiB community/python-exceptiongroup 1.1.0-1 0.09 MiB extra/python-idna 3.4-1 0.67 MiB community/python-iniconfig 2.0.0-2 0.03 MiB community/python-pluggy 1.0.0-2 0.10 MiB community/python-pytest 7.2.1-1 2.80 MiB extra/python-urllib3 1.26.7-5 0.69 MiB community/python-asynctest 0.13.0-6 0.22 MiB community/python-hypothesis 6.59.0-1 2.88 MiB community/python-parver 0.4-1 0.15 MiB 0.03 MiB community/python-pytest-asyncio 0.20.3-2 0.06 MiB 0.02 MiB community/python-pytest-runner 6.0.0-2 0.03 MiB 0.01 MiB extra/python-requests 2.28.1-1 0.45 MiB Total Download Size: 0.06 MiB Total Installed Size: 11.37 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-parver-0.4-1-any downloading... python-pytest-asyncio-0.20.3-2-any downloading... python-pytest-runner-6.0.0-2-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-asynctest... installing python-arpeggio... installing python-attrs... installing python-parver... installing python-exceptiongroup... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-pytest-runner... installing python-pytest-asyncio... installing python-urllib3... Optional dependencies for python-urllib3 python-pysocks: SOCKS support python-brotli: Brotli support [installed] python-pyopenssl: security support [installed] python-idna: security support [pending] installing python-chardet... installing python-idna... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support installing python-hypothesis... Optional dependencies for python-hypothesis python-pytz: for datetime and django module python-faker: for fakefactory and django module python-django: for django module python-numpy: for numpy module python-pytest: for pytest module [installed] python-lark-parser: for lark module python-libcst: for codemods module [?25h==> Retrieving sources...  -> Found mitmproxy-9.0.1.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting mitmproxy-9.0.1.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/mitmproxy copying mitmproxy/__init__.py -> build/lib/mitmproxy copying mitmproxy/addonmanager.py -> build/lib/mitmproxy copying mitmproxy/certs.py -> build/lib/mitmproxy copying mitmproxy/command.py -> build/lib/mitmproxy copying mitmproxy/command_lexer.py -> build/lib/mitmproxy copying mitmproxy/connection.py -> build/lib/mitmproxy copying mitmproxy/ctx.py -> build/lib/mitmproxy copying mitmproxy/dns.py -> build/lib/mitmproxy copying mitmproxy/eventsequence.py -> build/lib/mitmproxy copying mitmproxy/exceptions.py -> build/lib/mitmproxy copying mitmproxy/flow.py -> build/lib/mitmproxy copying mitmproxy/flowfilter.py -> build/lib/mitmproxy copying mitmproxy/hooks.py -> build/lib/mitmproxy copying mitmproxy/http.py -> build/lib/mitmproxy copying mitmproxy/log.py -> build/lib/mitmproxy copying mitmproxy/master.py -> build/lib/mitmproxy copying mitmproxy/options.py -> build/lib/mitmproxy copying mitmproxy/optmanager.py -> build/lib/mitmproxy copying mitmproxy/stateobject.py -> build/lib/mitmproxy copying mitmproxy/tcp.py -> build/lib/mitmproxy copying mitmproxy/tls.py -> build/lib/mitmproxy copying mitmproxy/types.py -> build/lib/mitmproxy copying mitmproxy/udp.py -> build/lib/mitmproxy copying mitmproxy/version.py -> build/lib/mitmproxy copying mitmproxy/websocket.py -> build/lib/mitmproxy creating build/lib/mitmproxy/addons copying mitmproxy/addons/__init__.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/anticache.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/anticomp.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/asgiapp.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/block.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/blocklist.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/browser.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/clientplayback.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/command_history.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/comment.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/core.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/cut.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/disable_h2c.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/dns_resolver.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/dumper.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/errorcheck.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/eventstore.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/export.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/intercept.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/keepserving.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/maplocal.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/mapremote.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/modifybody.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/modifyheaders.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/next_layer.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/onboarding.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/proxyauth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/proxyserver.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/readfile.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/save.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/script.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/server_side_events.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/serverplayback.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/stickyauth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/stickycookie.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/termlog.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/tlsconfig.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/upstream_auth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/view.py -> build/lib/mitmproxy/addons creating build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/__init__.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/auto.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/base.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/css.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/graphql.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/grpc.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/hex.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/http3.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/javascript.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/json.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/mqtt.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/msgpack.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/multipart.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/protobuf.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/query.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/raw.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/urlencoded.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/wbxml.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/xml_html.py -> build/lib/mitmproxy/contentviews creating build/lib/mitmproxy/contrib copying mitmproxy/contrib/__init__.py -> build/lib/mitmproxy/contrib creating build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/__init__.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/bidi.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/multidict.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/serializable.py -> build/lib/mitmproxy/coretypes creating build/lib/mitmproxy/io copying mitmproxy/io/__init__.py -> build/lib/mitmproxy/io copying mitmproxy/io/compat.py -> build/lib/mitmproxy/io copying mitmproxy/io/io.py -> build/lib/mitmproxy/io copying mitmproxy/io/tnetstring.py -> build/lib/mitmproxy/io creating build/lib/mitmproxy/net copying mitmproxy/net/__init__.py -> build/lib/mitmproxy/net copying mitmproxy/net/check.py -> build/lib/mitmproxy/net copying mitmproxy/net/encoding.py -> build/lib/mitmproxy/net copying mitmproxy/net/local_ip.py -> build/lib/mitmproxy/net copying mitmproxy/net/server_spec.py -> build/lib/mitmproxy/net copying mitmproxy/net/tls.py -> build/lib/mitmproxy/net copying mitmproxy/net/udp.py -> build/lib/mitmproxy/net copying mitmproxy/net/udp_wireguard.py -> build/lib/mitmproxy/net creating build/lib/mitmproxy/platform copying mitmproxy/platform/__init__.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/linux.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/openbsd.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/osx.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/pf.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/windows.py -> build/lib/mitmproxy/platform creating build/lib/mitmproxy/proxy copying mitmproxy/proxy/__init__.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/commands.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/context.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/events.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/layer.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/mode_servers.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/mode_specs.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/server.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/server_hooks.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/tunnel.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/utils.py -> build/lib/mitmproxy/proxy creating build/lib/mitmproxy/script copying mitmproxy/script/__init__.py -> build/lib/mitmproxy/script copying mitmproxy/script/concurrent.py -> build/lib/mitmproxy/script creating build/lib/mitmproxy/tools copying mitmproxy/tools/__init__.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/cmdline.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/dump.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/main.py -> build/lib/mitmproxy/tools creating build/lib/mitmproxy/utils copying mitmproxy/utils/__init__.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/arg_check.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/asyncio_utils.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/bits.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/data.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/debug.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/emoji.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/human.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/magisk.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/signals.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/sliding_window.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/spec.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/strutils.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/typecheck.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/vt_codes.py -> build/lib/mitmproxy/utils creating build/lib/mitmproxy/addons/onboardingapp copying mitmproxy/addons/onboardingapp/__init__.py -> build/lib/mitmproxy/addons/onboardingapp creating build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/__init__.py -> build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/image_parser.py -> build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/view.py -> build/lib/mitmproxy/contentviews/image creating build/lib/mitmproxy/contrib/click copying mitmproxy/contrib/click/__init__.py -> build/lib/mitmproxy/contrib/click creating build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/__init__.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/dtls_client_hello.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/exif.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/gif.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/google_protobuf.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/ico.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/jpeg.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/png.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/tls_client_hello.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/vlq_base128_le.py -> build/lib/mitmproxy/contrib/kaitaistruct creating build/lib/mitmproxy/contrib/tornado copying mitmproxy/contrib/tornado/__init__.py -> build/lib/mitmproxy/contrib/tornado creating build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/__init__.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/escape_patches.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/raw_display.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/win32.py -> build/lib/mitmproxy/contrib/urwid creating build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASCommandResponse.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXML.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXMLByteQueue.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXMLCodePage.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/GlobalTokens.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/InvalidDataException.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/__init__.py -> build/lib/mitmproxy/contrib/wbxml creating build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/__init__.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/classes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/domain_names.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/op_codes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/response_codes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/types.py -> build/lib/mitmproxy/net/dns creating build/lib/mitmproxy/net/http copying mitmproxy/net/http/__init__.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/cookies.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/headers.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/multipart.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/status_codes.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/url.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/user_agents.py -> build/lib/mitmproxy/net/http creating build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/__init__.py -> build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/assemble.py -> build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/read.py -> build/lib/mitmproxy/net/http/http1 creating build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/__init__.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/dns.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/modes.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/tcp.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/tls.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/udp.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/websocket.py -> build/lib/mitmproxy/proxy/layers creating build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/__init__.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_base.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_events.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_hooks.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http1.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http2.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http_h2.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_upstream_proxy.py -> build/lib/mitmproxy/proxy/layers/http creating build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/__init__.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/commandexecutor.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/commands.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/common.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/consoleaddons.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/defaultkeys.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/eventlog.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowdetailview.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowlist.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowview.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/help.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/keybindings.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/keymap.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/layoutwidget.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/master.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/options.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/overlay.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/palettes.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/quickhelp.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/searchable.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/signals.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/statusbar.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/tabs.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/window.py -> build/lib/mitmproxy/tools/console creating build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/__init__.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/app.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/master.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/static_viewer.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/webaddons.py -> build/lib/mitmproxy/tools/web creating build/lib/mitmproxy/tools/console/commander copying mitmproxy/tools/console/commander/__init__.py -> build/lib/mitmproxy/tools/console/commander copying mitmproxy/tools/console/commander/commander.py -> build/lib/mitmproxy/tools/console/commander creating build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/__init__.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/base.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_bytes.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_subgrid.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_text.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_viewany.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/editors.py -> build/lib/mitmproxy/tools/console/grideditor creating build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/__init__.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.addons.onboardingapp.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.tools.web.py -> build/lib/mitmproxy/utils/pyinstaller running egg_info creating mitmproxy.egg-info writing mitmproxy.egg-info/PKG-INFO writing dependency_links to mitmproxy.egg-info/dependency_links.txt writing entry points to mitmproxy.egg-info/entry_points.txt writing requirements to mitmproxy.egg-info/requires.txt writing top-level names to mitmproxy.egg-info/top_level.txt writing manifest file 'mitmproxy.egg-info/SOURCES.txt' reading manifest file 'mitmproxy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory '*' warning: no previously-included files matching '*.pyo' found under directory '*' warning: no previously-included files matching '*.swo' found under directory '*' warning: no previously-included files matching '*.swp' found under directory '*' warning: no previously-included files matching '*.map' found under directory '*' adding license file 'LICENSE' writing manifest file 'mitmproxy.egg-info/SOURCES.txt' /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.static' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.static' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.static' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.static' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.static.images' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.static.images' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.static.images' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.static.images' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.templates' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.templates' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.templates' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.templates' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.templates.icons' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.templates.icons' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.templates.icons' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.templates.icons' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.test' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.test' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.test' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.test' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static.fonts' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static.fonts' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static.fonts' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static.fonts' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static.images' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static.images' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static.images' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static.images' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.templates' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.templates' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.templates' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.templates' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) copying mitmproxy/py.typed -> build/lib/mitmproxy creating build/lib/mitmproxy/test copying mitmproxy/test/taddons.py -> build/lib/mitmproxy/test copying mitmproxy/test/tflow.py -> build/lib/mitmproxy/test copying mitmproxy/test/tutils.py -> build/lib/mitmproxy/test copying mitmproxy/contrib/README -> build/lib/mitmproxy/contrib creating build/lib/mitmproxy/addons/onboardingapp/static copying mitmproxy/addons/onboardingapp/static/bootstrap.min.css -> build/lib/mitmproxy/addons/onboardingapp/static copying mitmproxy/addons/onboardingapp/static/mitmproxy.css -> build/lib/mitmproxy/addons/onboardingapp/static creating build/lib/mitmproxy/addons/onboardingapp/static/images copying mitmproxy/addons/onboardingapp/static/images/favicon.ico -> build/lib/mitmproxy/addons/onboardingapp/static/images copying mitmproxy/addons/onboardingapp/static/images/mitmproxy-long.png -> build/lib/mitmproxy/addons/onboardingapp/static/images creating build/lib/mitmproxy/addons/onboardingapp/templates copying mitmproxy/addons/onboardingapp/templates/index.html -> build/lib/mitmproxy/addons/onboardingapp/templates copying mitmproxy/addons/onboardingapp/templates/layout.html -> build/lib/mitmproxy/addons/onboardingapp/templates creating build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/android-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/apple-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/certificate-solid.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/firefox-browser-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/linux-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/windows-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/contrib/kaitaistruct/dtls_client_hello.ksy -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/make.sh -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/tls_client_hello.ksy -> build/lib/mitmproxy/contrib/kaitaistruct creating build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/app.css -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/app.js -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/static.js -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/vendor.css -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/vendor.js -> build/lib/mitmproxy/tools/web/static creating build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.eot -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.svg -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.ttf -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.woff -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.woff2 -> build/lib/mitmproxy/tools/web/static/fonts creating build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/favicon.ico -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceDnsIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceExecutableIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceFlashIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceImageIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceJavaIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceNotModifiedIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceRedirectIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceTcpIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceUdpIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceWebSocketIcon.png -> build/lib/mitmproxy/tools/web/static/images creating build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/LICENSE -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceCSSIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceDocumentIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceJSIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourcePlainIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools creating build/lib/mitmproxy/tools/web/templates copying mitmproxy/tools/web/templates/index.html -> build/lib/mitmproxy/tools/web/templates ==> Starting check()... running pytest /usr/lib/python3.10/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ir_d = dist.fetch_build_eggs(dist.install_requires) WARNING: The wheel package is not available. /usr/lib/python3.10/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. tr_d = dist.fetch_build_eggs(dist.tests_require or []) WARNING: The wheel package is not available. /usr/lib/python3.10/site-packages/setuptools/command/test.py:196: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. er_d = dist.fetch_build_eggs( WARNING: The wheel package is not available. running egg_info writing mitmproxy.egg-info/PKG-INFO writing dependency_links to mitmproxy.egg-info/dependency_links.txt writing entry points to mitmproxy.egg-info/entry_points.txt writing requirements to mitmproxy.egg-info/requires.txt writing top-level names to mitmproxy.egg-info/top_level.txt reading manifest file 'mitmproxy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory '*' warning: no previously-included files matching '*.pyo' found under directory '*' warning: no previously-included files matching '*.swo' found under directory '*' warning: no previously-included files matching '*.swp' found under directory '*' warning: no previously-included files matching '*.map' found under directory '*' adding license file 'LICENSE' writing manifest file 'mitmproxy.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.9, pytest-7.2.1, pluggy-1.0.0 rootdir: /build/mitmproxy/src/mitmproxy-9.0.1, configfile: setup.cfg, testpaths: test plugins: asyncio-0.20.3, hypothesis-6.59.0 asyncio: mode=auto collected 1428 items / 1 deselected / 1 skipped / 1427 selected test/examples/test_examples.py Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/anatomy2.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/contentview.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/contentview-custom-grpc.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/http-modify-form.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/http-modify-query-string.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/http-redirect-requests.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/examples/addons/http-reply-from-proxy.py . test/mitmproxy/test_addonmanager.py .....Addon error: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addonmanager.py", line 47, in safecall yield File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addonmanager.py", line 302, in trigger self.invoke_addon_sync(i, event) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addonmanager.py", line 276, in invoke_addon_sync raise exceptions.AddonManagerError( mitmproxy.exceptions.AddonManagerError: Async handler running (Addon(async)) cannot be called from sync context .Over-riding existing option custom_option .Addon error: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addonmanager.py", line 243, in _iter_hooks assert isinstance(event, hooks.Hook) AssertionError Addon error: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addonmanager.py", line 256, in _iter_hooks raise exceptions.AddonManagerError( mitmproxy.exceptions.AddonManagerError: Addon handler response (Addon(one)) not callable ...The clientconnect event has been removed, use client_connected instead. For more details, see https://docs.mitmproxy.org/dev/addons-api-changelog/. . test/mitmproxy/test_certs.py .................... test/mitmproxy/test_command.py .......Could not load command invalidarg: Argument u has an unknown type in >. Could not load command invalidret: Return type has an unknown type () in >. ... test/mitmproxy/test_command_lexer.py ................. test/mitmproxy/test_connection.py ....... test/mitmproxy/test_dns.py .......... test/mitmproxy/test_eventsequence.py .............. test/mitmproxy/test_flow.py ......... test/mitmproxy/test_flowfilter.py ............................................................................... test/mitmproxy/test_hooks.py . test/mitmproxy/test_http.py ....................................................................................................... test/mitmproxy/test_log.py .. test/mitmproxy/test_master.py Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/test_master.py", line 7, in err raise RuntimeError RuntimeError Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy/issues . test/mitmproxy/test_optmanager.py ................... test/mitmproxy/test_proxy.py .. test/mitmproxy/test_stateobject.py ......... test/mitmproxy/test_taddons.py Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/recorder.py ('recorder', 'load', (,), {}) ('recorder', 'configure', ({'key_size', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) . test/mitmproxy/test_tcp.py ... test/mitmproxy/test_tls.py .... test/mitmproxy/test_types.py ................ test/mitmproxy/test_udp.py ... test/mitmproxy/test_version.py . test/mitmproxy/test_websocket.py .... test/mitmproxy/addons/test_anticache.py . test/mitmproxy/addons/test_anticomp.py . test/mitmproxy/addons/test_asgiapp.py HTTP(S) proxy listening at 127.0.0.1:55285. client connect CALLED client disconnect client connect client disconnect client connect client disconnect client connect Error in asgi app: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/asgiapp.py", line 135, in serve await app(scope, receive, send) File "/build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/addons/test_asgiapp.py", line 40, in errapp raise ValueError("errapp") ValueError: errapp client disconnect client connect Error in asgi app: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/asgiapp.py", line 137, in serve raise RuntimeError(f"no response sent.") RuntimeError: no response sent. Stopped HTTP(S) proxy at 127.0.0.1:55285. client disconnect . test/mitmproxy/addons/test_block.py ..........Client connection from 1.1.1.1 killed by block_global option. .Client connection from 8.8.8.8 killed by block_global option. .Client connection from 216.58.207.174 killed by block_global option. .Client connection from ::ffff:1.1.1.1 killed by block_global option. .Client connection from ::ffff:8.8.8.8 killed by block_global option. .Client connection from ::ffff:216.58.207.174 killed by block_global option. .Client connection from 2001:4860:4860::8888 killed by block_global option. .Client connection from 2001:4860:4860::8888%scope killed by block_global option. ...Client connection from 10.0.0.1 killed by block_private option. .Client connection from 172.20.0.1 killed by block_private option. .Client connection from 192.168.1.1 killed by block_private option. .Client connection from ::ffff:10.0.0.1 killed by block_private option. .Client connection from ::ffff:172.20.0.1 killed by block_private option. .Client connection from ::ffff:192.168.1.1 killed by block_private option. .Client connection from ::ffff:192.168.1.1%scope killed by block_private option. .Client connection from fe80:: killed by block_private option. ......... test/mitmproxy/addons/test_blocklist.py ........... test/mitmproxy/addons/test_browser.py Starting additional browser .Starting additional browser Your platform is not supported yet - please submit a patch. ..... test/mitmproxy/addons/test_clientplayback.py [replay] server connect 127.0.0.1:42091 [replay] server disconnect 127.0.0.1:42091 .Warning: Running proxyserver without nextlayer addon! [replay] mitmproxy has crashed! Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/server.py", line 344, in server_event for command in layer_commands: File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layer.py", line 168, in handle_event command = next(command_generator) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layers/http/__init__.py", line 845, in _handle_event assert isinstance(proxy_mode, UpstreamMode) AssertionError [replay] server connect 127.0.0.1:41773 [replay] server disconnect 127.0.0.1:41773 .[replay] server connect 127.0.0.1:34357 .Task was destroyed but it is pending! task: > Task was destroyed but it is pending! task: wait_for=> [replay] server connect 127.0.0.1:41317 [replay] server disconnect 127.0.0.1:41317 .Warning: Running proxyserver without nextlayer addon! [replay] mitmproxy has crashed! Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/server.py", line 344, in server_event for command in layer_commands: File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layer.py", line 168, in handle_event command = next(command_generator) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layers/http/__init__.py", line 845, in _handle_event assert isinstance(proxy_mode, UpstreamMode) AssertionError [replay] server connect 127.0.0.1:37145 [replay] server disconnect 127.0.0.1:37145 .[replay] server connect 127.0.0.1:42587 [replay] server disconnect 127.0.0.1:42587 .Warning: Running proxyserver without nextlayer addon! [replay] mitmproxy has crashed! Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/server.py", line 344, in server_event for command in layer_commands: File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layer.py", line 168, in handle_event command = next(command_generator) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/proxy/layers/http/__init__.py", line 845, in _handle_event assert isinstance(proxy_mode, UpstreamMode) AssertionError [replay] server connect 127.0.0.1:33323 [replay] server disconnect 127.0.0.1:33323 .Client replay has crashed! Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/clientplayback.py", line 161, in playback await h.replay() TypeError: test_playback_crash..raise_err() takes 0 positional arguments but 1 was given ..Can't replay WebSocket flows. Client replay queue cleared. ... test/mitmproxy/addons/test_command_history.py .Failed writing to /non/existent/path/foobar1234/command_history: [Errno 2] No such file or directory: '/non/existent/path/foobar1234/command_history' .Failed writing to /build/.mitmproxy/command_history: [Errno 2] No such file or directory: '/build/.mitmproxy/command_history' Failed writing to /build/.mitmproxy/command_history: [Errno 2] No such file or directory: '/build/.mitmproxy/command_history' .Failed writing to /non/existent/path/foobar1234/command_history: [Errno 2] No such file or directory: '/non/existent/path/foobar1234/command_history' ...Failed deleting /non/existent/path/foobar1234/command_history: ... test/mitmproxy/addons/test_comment.py . test/mitmproxy/addons/test_core.py ...Killed 1 flows. .Reverted 1 flows. .Set method on 1 flows. Set host on 1 flows. Set path on 1 flows. Set url on 1 flows. Set status_code on 1 flows. Set reason on 1 flows. .Encoded 1 flows. Encoded 0 flows. Decoded 1 flows. Encoded 1 flows. Toggled encoding on 1 flows. Toggled encoding on 1 flows. Toggled encoding on 1 flows. .... test/mitmproxy/addons/test_cut.py ...Clipped single cut. Clipped single cut. Clipped 2 cuts as CSV. Clipped single cut. Pyperclip could not find a copy/paste mechanism for your system. .Saved single cut. Saved single cut. Saved single cut. Saved 1 cuts over 2 flows as CSV. Saved 2 cuts over 2 flows as CSV. .Permission denied .Is a directory .No such file or directory .. test/mitmproxy/addons/test_disable_h2c.py HTTP/2 cleartext connections (h2c upgrade requests) are currently not supported. .Initiating HTTP/2 connections with prior knowledge are currently not supported. . test/mitmproxy/addons/test_dns_resolver.py .. test/mitmproxy/addons/test_dumper.py .....Auto content viewer failed: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/contentviews/__init__.py", line 184, in get_content_view ret = viewmode( File "/usr/lib/python3.10/unittest/mock.py", line 1114, in __call__ return self._mock_call(*args, **kwargs) File "/usr/lib/python3.10/unittest/mock.py", line 1118, in _mock_call return self._execute_mock_call(*args, **kwargs) File "/usr/lib/python3.10/unittest/mock.py", line 1173, in _execute_mock_call raise effect ValueError ....... test/mitmproxy/addons/test_errorcheck.py Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/load_error.py Addon error: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/load_error.py", line 2, in load raise ValueError() ValueError .. test/mitmproxy/addons/test_eventstore.py test .foo bar baz boo . test/mitmproxy/addons/test_export.py ...............................Permission denied .Is a directory .No such file or directory .Pyperclip could not find a copy/paste mechanism for your system. . test/mitmproxy/addons/test_intercept.py .... test/mitmproxy/addons/test_keepserving.py . test/mitmproxy/addons/test_maplocal.py ...................Task was destroyed but it is pending! task: wait_for=> ..None of the local file candidates exist: /tmp/pytest-of-builduser/pytest-0/test_nonexistent_files0/nonexistent, /tmp/pytest-of-builduser/pytest-0/test_nonexistent_files0/nonexistent/index.html Could not read file: [Errno 2] No such file or directory: '/tmp/pytest-of-builduser/pytest-0/test_nonexistent_files0/foo.jpg' None of the local file candidates exist: /tmp/pytest-of-builduser/pytest-0/test_nonexistent_files0/foo.jpg .. test/mitmproxy/addons/test_mapremote.py ... test/mitmproxy/addons/test_modifybody.py ......Could not read replacement file: [Errno 2] No such file or directory: '/tmp/pytest-of-builduser/pytest-0/test_nonexistent0/replacement' . test/mitmproxy/addons/test_modifyheaders.py ......Could not read replacement file: [Errno 2] No such file or directory: '/tmp/pytest-of-builduser/pytest-0/test_nonexistent1/replacement' . test/mitmproxy/addons/test_next_layer.py ...... test/mitmproxy/addons/test_onboarding.py ......... test/mitmproxy/addons/test_proxyauth.py ..................... test/mitmproxy/addons/test_proxyserver.py HTTP(S) proxy listening at 127.0.0.1:54955. client connect server connect 127.0.0.1:42291 server disconnect 127.0.0.1:42291 Warning: Running proxyserver without nextlayer addon! Stopped HTTP(S) proxy at 127.0.0.1:54955. client disconnect .HTTP(S) proxy listening at 127.0.0.1:42283. client connect server connect 127.0.0.1:36111 .Cannot inject WebSocket messages into non-WebSocket flows. Flow is not from a live connection. Cannot inject TCP messages into non-TCP flows. Flow is not from a live connection. Flow is not from a live connection. Cannot inject WebSocket messages into non-WebSocket flows. Flow is not from a live connection. .Task was destroyed but it is pending! task: .server_handler() done, defined at /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/addons/test_proxyserver.py:110> wait_for=> Warning: Running proxyserver without nextlayer addon! .HTTP(S) proxy listening at 127.0.0.1:33181. Warning: Running proxyserver without nextlayer addon! Stopped HTTP(S) proxy at 127.0.0.1:33181. .Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! .[Errno None] HTTP(S) proxy failed to listen on *:8080 with cannot bind .Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for=> HTTP(S) proxy listening at 127.0.0.1:59321. Warning: Running proxyserver without nextlayer addon! cannot close .Warning: Running proxyserver without nextlayer addon! DNS server listening at 127.0.0.1:48517. client connect Client(127.0.0.1:35727, state=open) sent an invalid message: unpack_from requires a buffer of at least 12 bytes for unpacking 12 bytes at offset 0 (actual buffer size is 1) client disconnect Warning: Running proxyserver without nextlayer addon! Stopped DNS server at 127.0.0.1:48517. .Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! Warning: Running proxyserver without nextlayer addon! .Warning: Running proxyserver without nextlayer addon! .Warning: Running proxyserver without nextlayer addon! reverse proxy to dtls://127.0.0.1:48408 listening at 127.0.0.1:35549. client connect server connect 127.0.0.1:48408 Warning: Running proxyserver without nextlayer addon! Stopped reverse proxy to dtls://127.0.0.1:48408 at 127.0.0.1:35549. . test/mitmproxy/addons/test_readfile.py .Flow file corrupted - loaded 2 flows. Task exception was never retrieved future: exception=OptionsError(FlowReadException('Invalid data format.'))> Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/io/io.py", line 33, in stream tnetstring.load(self.fo), File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/io/tnetstring.py", line 178, in load raise ValueError("not a tnetstring: missing or invalid length prefix") ValueError: not a tnetstring: missing or invalid length prefix During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/readfile.py", line 43, in load_flows for flow in freader.stream(): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/io/io.py", line 42, in stream raise exceptions.FlowReadException("Invalid data format.") mitmproxy.exceptions.FlowReadException: Invalid data format. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/readfile.py", line 69, in doread await self.load_flows_from_path(ctx.options.rfile) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/readfile.py", line 61, in load_flows_from_path return await self.load_flows(f) File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/readfile.py", line 53, in load_flows raise exceptions.FlowReadException(str(e)) from e mitmproxy.exceptions.FlowReadException: Invalid data format. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/mitmproxy/addons/readfile.py", line 71, in doread raise exceptions.OptionsError(e) from e mitmproxy.exceptions.OptionsError: Invalid data format. .Flow file corrupted. Flow file corrupted - loaded 4 flows. .Cannot load flows: [Errno 2] No such file or directory: 'nonexistent' .Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Flow file corrupted - loaded 4 flows. .. test/mitmproxy/addons/test_save.py .....Saved 1 flows. Saved 1 flows. Saved 1 flows. Saved 0 flows. .... test/mitmproxy/addons/test_script.py in script nonexistent: [Errno 2] No such file or directory: 'nonexistent' in script /tmp/pytest-of-builduser/pytest-0/test_load_script0/error.py:1 invalid syntax (error.py, line 1) ...Loading script "/build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/recorder.py" ('recorder', 'load', (,), {}) recorder load ('recorder', 'configure', ({'key_size', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) recorder configure .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/recorder.py ('recorder', 'load', (,), {}) recorder load ('recorder', 'configure', ({'key_size', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) recorder configure ('recorder', 'request', (,), {}) recorder request .Loading script /tmp/pytest-of-builduser/pytest-0/test_reload0/foo.py Loading script /tmp/pytest-of-builduser/pytest-0/test_reload0/foo.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/error.py error load Addon error: Traceback (most recent call last): File "/build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/error.py", line 9, in request raise ValueError("Error!") ValueError: Error! .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/configure.py in script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/configure.py: Options Error .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/addon.py addon running ..('recorder', 'configure', ({'key_size', 'scripts', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) recorder configure ('recorder', 'running', (), {}) recorder running ('recorder', 'requestheaders', (,), {}) recorder requestheaders ('recorder', 'request', (,), {}) recorder request ('recorder', 'responseheaders', (,), {}) recorder responseheaders ('recorder', 'response', (,), {}) recorder response .No such script: / .Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/recorder.py ..Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/dummy.py Removing script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/dummy.py Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/dummy.py .in script /sample/path/example.py: Error raised NoneType: None .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/a.py ('a', 'load', (,), {}) a load ('a', 'configure', ({'key_size', 'scripts', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) a configure ('a', 'running', (), {}) a running Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/b.py ('b', 'load', (,), {}) b load ('b', 'configure', ({'key_size', 'scripts', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) b configure ('b', 'running', (), {}) b running Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/c.py ('c', 'load', (,), {}) c load ('c', 'configure', ({'key_size', 'scripts', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) c configure ('c', 'running', (), {}) c running ('c', 'configure', ({'scripts'},), {}) c configure ('a', 'configure', ({'scripts'},), {}) a configure ('b', 'configure', ({'scripts'},), {}) b configure Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/c.py ('c', 'done', (), {}) c done Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/b.py ('b', 'done', (), {}) b done ('a', 'configure', ({'scripts'},), {}) a configure Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/e.py ('e', 'load', (,), {}) e load ('e', 'configure', ({'key_size', 'scripts', 'http2_ping_keepalive', 'certs', 'udp_hosts', 'showhost', 'rawudp', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'listen_port', 'http2', 'client_certs', 'listen_host', 'confdir', 'ssl_insecure', 'ssl_verify_upstream_trusted_ca', 'rawtcp', 'tcp_hosts', 'ignore_hosts', 'ciphers_server', 'ciphers_client', 'upstream_cert', 'server', 'add_upstream_certs_to_client_chain', 'mode', 'allow_hosts', 'cert_passphrase', 'websocket'},), {}) e configure ('e', 'running', (), {}) e running Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/e.py ('e', 'done', (), {}) e done Un-loading script: /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/a.py ('a', 'done', (), {}) a done .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/recorder/recorder.py ('recorder', 'load', (,), {}) recorder load ('recorder', 'configure', ({'stickycookie', 'save_stream_filter', 'keepserving', 'server_replay_nopop', 'client_replay_concurrency', 'http2', 'proxy_debug', 'body_size_limit', 'stickyauth', 'upstream_auth', 'client_replay', 'ciphers_client', 'server_replay_ignore_content', 'export_preserve_original_ip', 'add_upstream_certs_to_client_chain', 'mode', 'onboarding_port', 'websocket', 'server_replay_ignore_params', 'proxyauth', 'key_size', 'validate_inbound_headers', 'server_replay_kill_extra', 'server_replay_use_headers', 'tls_version_server_max', 'listen_host', 'dumper_default_contentview', 'ssl_verify_upstream_trusted_ca', 'ignore_hosts', 'server_replay_refresh', 'stream_large_bodies', 'udp_hosts', 'rfile', 'listen_port', 'map_local', 'client_certs', 'keep_host_header', 'connect_addr', 'block_global', 'block_private', 'confdir', 'ssl_insecure', 'rawtcp', 'tcp_hosts', 'map_remote', 'block_list', 'upstream_cert', 'command_history', 'flow_detail', 'connection_strategy', 'normalize_outbound_headers', 'tls_version_client_min', 'readfile_filter', 'termlog_verbosity', 'tls_version_server_min', 'anticache', 'server_replay_ignore_payload_params', 'scripts', 'http2_ping_keepalive', 'certs', 'modify_body', 'dumper_filter', 'showhost', 'tls_version_client_max', 'rawudp', 'onboarding_host', 'save_stream_file', 'ssl_verify_upstream_trusted_confdir', 'content_view_lines_cutoff', 'server_replay_ignore_host', 'server_replay', 'ciphers_server', 'onboarding', 'modify_headers', 'server', 'server_replay_ignore_port', 'allow_hosts', 'cert_passphrase', 'anticomp'},), {}) recorder configure Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/shutdown.py ('recorder', 'running', (), {}) recorder running ('recorder', 'done', (), {}) recorder done . test/mitmproxy/addons/test_server_side_events.py mitmproxy currently does not support server side events. As a workaround, you can enable response streaming for such flows: https://github.com/mitmproxy/mitmproxy/issues/4469 . test/mitmproxy/addons/test_serverplayback.py ..............server_playback: killed non-replay request http://nonexistent:22/path .. test/mitmproxy/addons/test_stickyauth.py .. test/mitmproxy/addons/test_stickycookie.py ......... test/mitmproxy/addons/test_termlog.py .one two three four .hello .Should not log this, but raise instead . test/mitmproxy/addons/test_tlsconfig.py ..............The mitmproxy certificate authority has expired! Please delete all CA-related files in your ~/.mitmproxy folder. The CA will be regenerated automatically after restarting mitmproxy. See https://docs.mitmproxy.org/stable/concepts-certificates/ for additional help. . test/mitmproxy/addons/test_upstream_auth.py .. test/mitmproxy/addons/test_view.py ............No such file or directory Invalid data format. ...Duplicated 2 flows .Removed 2 flows ................ test/mitmproxy/contentviews/test_api.py ... test/mitmproxy/contentviews/test_auto.py . test/mitmproxy/contentviews/test_base.py .. test/mitmproxy/contentviews/test_css.py ............ test/mitmproxy/contentviews/test_graphql.py ..... test/mitmproxy/contentviews/test_grpc.py .......... test/mitmproxy/contentviews/test_hex.py .. test/mitmproxy/contentviews/test_javascript.py ... test/mitmproxy/contentviews/test_json.py ..... test/mitmproxy/contentviews/test_mqtt.py ......... test/mitmproxy/contentviews/test_msgpack.py ..... test/mitmproxy/contentviews/test_multipart.py .. test/mitmproxy/contentviews/test_protobuf.py .... test/mitmproxy/contentviews/test_query.py .. test/mitmproxy/contentviews/test_raw.py .. test/mitmproxy/contentviews/test_urlencoded.py .. test/mitmproxy/contentviews/test_wbxml.py Array byte count: 4, enqueued: 4 Dequeued byte 0x3 (1 total) Dequeued byte 0x1 (2 total) Version: 3, Public Identifier: 1 Dequeued byte 0x6A (3 total) Dequeued byte 0x0 (4 total) Total bytes dequeued: 4 Array byte count: 3, enqueued: 3 Dequeued byte 0x66 (1 total) Dequeued byte 0x6F (2 total) Version: 102, Public Identifier: 111 Dequeued byte 0x6F (3 total) Array byte count: 34, enqueued: 34 Dequeued byte 0x3 (1 total) Dequeued byte 0x1 (2 total) Version: 3, Public Identifier: 1 Dequeued byte 0x6A (3 total) Dequeued byte 0x0 (4 total) Dequeued byte 0x45 (5 total) Dequeued byte 0x5C (6 total) Dequeued byte 0x4F (7 total) Dequeued byte 0x4B (8 total) Dequeued byte 0x3 (9 total) Dequeued byte 0x31 (10 total) Dequeued byte 0x35 (11 total) Dequeued byte 0x30 (12 total) Dequeued byte 0x39 (13 total) Dequeued byte 0x30 (14 total) Dequeued byte 0x32 (15 total) Dequeued byte 0x39 (16 total) Dequeued byte 0x30 (17 total) Dequeued byte 0x36 (18 total) Dequeued byte 0x33 (19 total) Dequeued byte 0x0 (20 total) Dequeued byte 0x1 (21 total) Dequeued byte 0x52 (22 total) Dequeued byte 0x3 (23 total) Dequeued byte 0x37 (24 total) Dequeued byte 0x0 (25 total) Dequeued byte 0x1 (26 total) Dequeued byte 0x4E (27 total) Dequeued byte 0x3 (28 total) Dequeued byte 0x31 (29 total) Dequeued byte 0x0 (30 total) Dequeued byte 0x1 (31 total) Dequeued byte 0x1 (32 total) Dequeued byte 0x1 (33 total) Dequeued byte 0x1 (34 total) Total bytes dequeued: 34 .. test/mitmproxy/contentviews/test_xml_html.py ....... test/mitmproxy/contentviews/image/test_image_parser.py .............. test/mitmproxy/contentviews/image/test_view.py .. test/mitmproxy/coretypes/test_bidi.py . test/mitmproxy/coretypes/test_multidict.py ................... test/mitmproxy/coretypes/test_serializable.py .. test/mitmproxy/io/test_compat.py ...... test/mitmproxy/io/test_io.py .... test/mitmproxy/io/test_tnetstring.py ....... test/mitmproxy/net/test_check.py . test/mitmproxy/net/test_encoding.py .......... test/mitmproxy/net/test_local_ip.py .. test/mitmproxy/net/test_server_spec.py ......... test/mitmproxy/net/test_tls.py ... test/mitmproxy/net/test_udp.py ..Received UDP packet from 1.2.3.4:5 after EOF. Dropped UDP packet from 1.2.3.4:5. . test/mitmproxy/net/dns/test_classes.py . test/mitmproxy/net/dns/test_domain_names.py ... test/mitmproxy/net/dns/test_op_codes.py . test/mitmproxy/net/dns/test_response_codes.py . test/mitmproxy/net/dns/test_types.py . test/mitmproxy/net/http/test_cookies.py ........... test/mitmproxy/net/http/test_headers.py .. test/mitmproxy/net/http/test_multipart.py .. test/mitmproxy/net/http/test_status_codes.py . test/mitmproxy/net/http/test_url.py ....................... test/mitmproxy/net/http/test_user_agents.py . test/mitmproxy/net/http/http1/test_assemble.py ........ test/mitmproxy/net/http/http1/test_read.py ............... test/mitmproxy/platform/test_pf.py . test/mitmproxy/proxy/test_commands.py .. test/mitmproxy/proxy/test_context.py . test/mitmproxy/proxy/test_events.py .. test/mitmproxy/proxy/test_layer.py ......... test/mitmproxy/proxy/test_mode_servers.py .HTTP(S) proxy listening at 127.0.0.1:55395. Failed to listen on a single port (ValueError('something else')), falling back to default behavior. .HTTP(S) proxy listening at 127.0.0.1:49747. client connect client disconnect Stopped HTTP(S) proxy at 127.0.0.1:49747. .transparent proxy listening at 127.0.0.1:55699. Transparent mode failure: AssertionError() Stopped transparent proxy at 127.0.0.1:55699. .transparent proxy listening at 127.0.0.1:41699. client connect client disconnect Stopped transparent proxy at 127.0.0.1:41699. .Initializing WireGuard server ... WireGuard server listening for UDP connections on 0.0.0.0:0 and [::]:0 ... WireGuard server successfully initialized. WireGuard server listening at *:45702. ------------------------------------------------------------ [Interface] PrivateKey = qG8b7LI/s+ezngWpXqj5A7Nj988hbGL+eQ8ePki0iHk= Address = 10.0.0.1/32 DNS = 10.0.0.53 [Peer] PublicKey = mitmV5Wo7pRJrHNAKhZEI0nzqqeO8u4fXG+zUbZEXA0= AllowedIPs = 0.0.0.0/0 Endpoint = 10.0.0.47:0 ------------------------------------------------------------ FInitializing WireGuard server ... WireGuard server listening for UDP connections on 0.0.0.0:0 and [::]:0 ... WireGuard server successfully initialized. WireGuard server listening at *:34822. ------------------------------------------------------------ [Interface] PrivateKey = QLJ6HhZQJbWpTWc4qaO3j8VtpMrunDdEZT30PdyL33E= Address = 10.0.0.1/32 DNS = 10.0.0.53 [Peer] PublicKey = RJa/VPeTUTUseX50xwO8cQZtuBPrFPAVgPo9h5yuKW8= AllowedIPs = 0.0.0.0/0 Endpoint = 10.0.0.47:0 ------------------------------------------------------------ Initializing WireGuard server ... WireGuard server listening for UDP connections on 0.0.0.0:0 and [::]:0 ... WireGuard server successfully initialized. WireGuard server listening at *:44200. ------------------------------------------------------------ [Interface] PrivateKey = QLJ6HhZQJbWpTWc4qaO3j8VtpMrunDdEZT30PdyL33E= Address = 10.0.0.1/32 DNS = 10.0.0.53 [Peer] PublicKey = RJa/VPeTUTUseX50xwO8cQZtuBPrFPAVgPo9h5yuKW8= AllowedIPs = 0.0.0.0/0 Endpoint = 10.0.0.47:0 ------------------------------------------------------------ Shutting down. Virtual Network device task shutting down. Python interoperability task shutting down. WireGuard server task shutting down. Stopped WireGuard server at *:34822. Shutting down. Python interoperability task shutting down. Virtual Network device task shutting down. WireGuard server task shutting down. Stopped WireGuard server at *:44200. ....DNS server listening at 127.0.0.1:44372. client connect Client(127.0.0.1:45327, state=open) sent an invalid message: unpack_from requires a buffer of at least 12 bytes for unpacking 12 bytes at offset 0 (actual buffer size is 3) client disconnect Stopped DNS server at 127.0.0.1:44372. .DNS server listening at 127.0.0.1:56336. Stopped DNS server at 127.0.0.1:56336. .. test/mitmproxy/proxy/test_mode_specs.py .... test/mitmproxy/proxy/test_server_hooks.py . test/mitmproxy/proxy/test_tunnel.py ........... test/mitmproxy/proxy/test_tutils.py ............. test/mitmproxy/proxy/test_utils.py . test/mitmproxy/proxy/layers/test_dns.py ....... test/mitmproxy/proxy/layers/test_modes.py .......................... test/mitmproxy/proxy/layers/test_socks5_fuzz.py . test/mitmproxy/proxy/layers/test_tcp.py ........ test/mitmproxy/proxy/layers/test_tls.py ........................... test/mitmproxy/proxy/layers/test_tls_fuzz.py . test/mitmproxy/proxy/layers/test_udp.py ....... test/mitmproxy/proxy/layers/test_websocket.py .................... test/mitmproxy/proxy/layers/http/test_http.py ................................................................................................................. test/mitmproxy/proxy/layers/http/test_http1.py ............ test/mitmproxy/proxy/layers/http/test_http2.py ......................................... test/mitmproxy/proxy/layers/http/test_http_fuzz.py ......... test/mitmproxy/proxy/layers/http/test_http_version_interop.py .. test/mitmproxy/script/test_concurrent.py Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/concurrent_decorator.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/concurrent_decorator_class.py .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/concurrent_decorator_err.py in script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/concurrent_decorator_err.py: Concurrent decorator not supported for 'load' method. . test/mitmproxy/tools/test_cmdline.py .... test/mitmproxy/tools/test_dump.py .... test/mitmproxy/tools/test_main.py Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/shutdown.py HTTP(S) proxy listening at *:46169. Web server listening at http://127.0.0.1:0/ .Loading script /build/mitmproxy/src/mitmproxy-9.0.1/test/mitmproxy/data/addonscripts/shutdown.py HTTP(S) proxy listening at *:51543. . test/mitmproxy/tools/console/test_commander.py ............. test/mitmproxy/tools/console/test_common.py ... test/mitmproxy/tools/console/test_contentview.py . test/mitmproxy/tools/console/test_defaultkeys.py . test/mitmproxy/tools/console/test_flowview.py . test/mitmproxy/tools/console/test_integration.py .... test/mitmproxy/tools/console/test_keymap.py ...... test/mitmproxy/tools/console/test_palettes.py . test/mitmproxy/tools/console/test_quickhelp.py .......... test/mitmproxy/tools/console/test_statusbar.py ....... test/mitmproxy/tools/web/test_app.py ............................... test/mitmproxy/tools/web/test_master.py . test/mitmproxy/tools/web/test_static_viewer.py ....Slow content view: TContentView took 1s Slow content view: TContentView took 1s .Saved 1 flows. . test/mitmproxy/utils/test_arg_check.py ......... test/mitmproxy/utils/test_asyncio_utils.py . test/mitmproxy/utils/test_data.py . test/mitmproxy/utils/test_debug.py ..Task was destroyed but it is pending! task: wait_for=> .... test/mitmproxy/utils/test_emoji.py . test/mitmproxy/utils/test_human.py ...... test/mitmproxy/utils/test_magisk.py ... test/mitmproxy/utils/test_signals.py .... test/mitmproxy/utils/test_sliding_window.py .. test/mitmproxy/utils/test_spec.py . test/mitmproxy/utils/test_strutils.py ........... test/mitmproxy/utils/test_typecheck.py ........ test/mitmproxy/utils/test_vt_codes.py . =================================== FAILURES =================================== ________________________________ test_wireguard ________________________________ tdata = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x401124aef0> caplog = <_pytest.logging.LogCaptureFixture object at 0x401127c070> async def test_wireguard(tdata, monkeypatch, caplog): caplog.set_level("DEBUG") async def handle_client(self: ConnectionHandler): t = self.transports[self.client] data = await t.reader.read(65535) t.writer.write(data.upper()) await t.writer.drain() t.writer.close() monkeypatch.setattr(ConnectionHandler, "handle_client", handle_client) system = platform.system() if system == "Linux": test_client_name = "linux-x86_64" elif system == "Darwin": test_client_name = "macos-x86_64" elif system == "Windows": test_client_name = "windows-x86_64.exe" else: return pytest.skip("Unsupported platform for wg-test-client.") test_client_path = tdata.path(f"wg-test-client/{test_client_name}") test_conf = tdata.path(f"wg-test-client/test.conf") with taddons.context(Proxyserver()): inst = WireGuardServerInstance.make(f"wireguard:{test_conf}@0", MagicMock()) await inst.start() assert "WireGuard server listening" in caplog.text _, port = inst.listen_addrs[0] assert inst.is_running > proc = await asyncio.create_subprocess_exec( test_client_path, str(port), stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, ) test/mitmproxy/proxy/test_mode_servers.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/asyncio/subprocess.py:218: in create_subprocess_exec transport, protocol = await loop.subprocess_exec( /usr/lib/python3.10/asyncio/base_events.py:1675: in subprocess_exec transport = await self._make_subprocess_transport( /usr/lib/python3.10/asyncio/unix_events.py:207: in _make_subprocess_transport transp = _UnixSubprocessTransport(self, protocol, args, shell, /usr/lib/python3.10/asyncio/base_subprocess.py:36: in __init__ self._start(args=args, shell=shell, stdin=stdin, stdout=stdout, /usr/lib/python3.10/asyncio/unix_events.py:799: in _start self._proc = subprocess.Popen( /usr/lib/python3.10/subprocess.py:971: in __init__ self._execute_child(args, executable, preexec_fn, close_fds, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['/build/mitmproxy/src/mitmproxy-9.0.1/test/wg-test-client/linux-x86_64', '45702'] executable = b'/build/mitmproxy/src/mitmproxy-9.0.1/test/wg-test-client/linux-x86_64' preexec_fn = None, close_fds = True, pass_fds = (), cwd = None, env = None startupinfo = None, creationflags = 0, shell = False, p2cread = -1 p2cwrite = -1, c2pread = 36, c2pwrite = 37, errread = 44, errwrite = 45 restore_signals = True, gid = None, gids = None, uid = None, umask = -1 start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] elif isinstance(args, os.PathLike): if shell: raise TypeError('path-like args is not allowed when ' 'shell is true') args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] sys.audit("subprocess.Popen", executable, args, cwd, env) if (_USE_POSIX_SPAWN and os.path.dirname(executable) and preexec_fn is None and not close_fds and not pass_fds and cwd is None and (p2cread == -1 or p2cread > 2) and (c2pwrite == -1 or c2pwrite > 2) and (errwrite == -1 or errwrite > 2) and not start_new_session and gid is None and gids is None and uid is None and umask < 0): self._posix_spawn(args, executable, env, restore_signals, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite) return orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, gid, gids, uid, umask, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) self._close_pipe_fds(p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite) # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: '/build/mitmproxy/src/mitmproxy-9.0.1/test/wg-test-client/linux-x86_64' /usr/lib/python3.10/subprocess.py:1847: FileNotFoundError ------------------------------ Captured log call ------------------------------- DEBUG  mitmproxy_wireguard.server:server.rs:110 Initializing WireGuard server ... DEBUG  mitmproxy_wireguard.server:server.rs:138 WireGuard server listening for UDP connections on 0.0.0.0:0 and [::]:0 ... DEBUG  mitmproxy_wireguard.server:server.rs:204 WireGuard server successfully initialized. INFO  mitmproxy.proxy.mode_servers:mode_servers.py:345 WireGuard server listening at *:45702. ------------------------------------------------------------ [Interface] PrivateKey = qG8b7LI/s+ezngWpXqj5A7Nj988hbGL+eQ8ePki0iHk= Address = 10.0.0.1/32 DNS = 10.0.0.53 [Peer] PublicKey = mitmV5Wo7pRJrHNAKhZEI0nzqqeO8u4fXG+zUbZEXA0= AllowedIPs = 0.0.0.0/0 Endpoint = 10.0.0.47:0 ------------------------------------------------------------ =============================== warnings summary =============================== test/mitmproxy/addons/test_clientplayback.py::test_playback[-1-err] /usr/lib/python3.10/asyncio/base_events.py:674: RuntimeWarning: coroutine 'ConnectionHandler.hook_task' was never awaited self._ready.clear() Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/mitmproxy/proxy/test_mode_servers.py::test_wireguard - FileNotFoundError: [Errno 2] No such file or directory: '/build/mitmproxy/s... = 1 failed, 1426 passed, 1 skipped, 1 deselected, 1 warning in 141.92s (0:02:21) = ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix6/build receiving incremental file list mitmproxy-9.0.1-1-riscv64-build.log mitmproxy-9.0.1-1-riscv64-check.log mitmproxy-9.0.1-1-riscv64-prepare.log sent 81 bytes received 15,287 bytes 10,245.33 bytes/sec total size is 107,357 speedup is 6.99