Upstream qemu-4.0.0 python script qmp-shell does not have python3 support It was fixed upstream since qemu-4.2.0 https://github.com/qemu/qemu/commit/08aa87f5e78270c3b225eb5c89c069aa9f49f5c1 Please backport this patch to the current stable ebuild app-emulation/qemu-4.0.0-r50 It is both python2 and python3 compatible Reproducible: Always Steps to Reproduce: 1. emerge current stable =app-emulation/qemu-4.0.0-r50 2. run QEMU with control socket: qemu-system-x86_64 -chardev socket,id=ctrl,path=qemu-control.sock,server,nowait -mon chardev=ctrl,mode=control 3. Connect to the qemu control socket via qmp-shell: qmp-shell qemu-control.sock Actual Results: Welcome to the QMP low-level shell! Connected to QEMU 4.0.0 Traceback (most recent call last): File "/usr/lib/python-exec/python3.7/qmp-shell", line 460, in <module> main() File "/usr/lib/python-exec/python3.7/qmp-shell", line 455, in main while qemu.read_exec_command(qemu.get_prompt()): File "/usr/lib/python-exec/python3.7/qmp-shell", line 311, in read_exec_command cmdline = raw_input(prompt) NameError: name 'raw_input' is not defined Expected Results: Welcome to the QMP low-level shell! Connected to QEMU 4.0.0 (QEMU)
Does recently added 4.2.0 work as-is for you? I'd rather stabilize next version. Meanwhile you can drop https://github.com/qemu/qemu/commit/08aa87f5e78270c3b225eb5c89c069aa9f49f5c1.patch into /etc/portage/patches/app-emulation/qemu for emerge to pick up a patch locally.
No modifications are required for 4.2.0 sources. But this bug depends on #703028. It should be fixed for recently added 4.2.0.ebuild to work "as-is".
qemu-4.2.0 is stable now, closing.