Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703028 - app-emulation/qemu-4.0.0-r50[python]: qmp-shell: ModuleNotFoundError: No module named 'qemu'
Summary: app-emulation/qemu-4.0.0-r50[python]: qmp-shell: ModuleNotFoundError: No modu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 703034
  Show dependency tree
 
Reported: 2019-12-15 19:10 UTC by Andrey Volkov
Modified: 2019-12-31 22:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Volkov 2019-12-15 19:10:47 UTC
qmp-shell cli script has been broken since app-emulation/qemu-4.0.0

The new python module 'qemu' (includes qmp) was introduced since qemu-4.0.0-rc0
https://github.com/qemu/qemu/commit/8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a


Ebuild should be fixed:

 qemu_python_install() {
-python_domodule "${S}/python/qemu/qmp.py"
+python_domodule "${S}/python/qemu"

Reproducible: Always

Steps to Reproduce:
1. emerge app-emulation/qemu
2. Run qmp-shell

Actual Results:  
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/qmp-shell", line 79, in <module>
    from qemu import qmp
ModuleNotFoundError: No module named 'qemu'

Expected Results:  
qmp-shell [ -v ] [ -p ] [ -H ] [ -N ] < UNIX socket path> | < TCP address:port >
    -v     Verbose (echo command sent and received)
    -p     Pretty-print JSON
    -H     Use HMP interface
    -N     Skip negotiate (for qemu-ga)

This bug also affects the newer ebuilds:
4.1.0
4.2.0
9999
Comment 1 Larry the Git Cow gentoo-dev 2019-12-31 22:01:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95aa7a90657148816c6a248e77a3bc7999819de7

commit 95aa7a90657148816c6a248e77a3bc7999819de7
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-12-31 21:32:53 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-12-31 22:01:31 +0000

    app-emulation/qemu: fix qmp-shell for 4.1.0, 4.2.0
    
    Closes: https://bugs.gentoo.org/703028
    Package-Manager: Portage-2.3.83, Repoman-2.3.20
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/qemu/{qemu-4.1.0.ebuild => qemu-4.1.0-r1.ebuild} | 2 +-
 app-emulation/qemu/{qemu-4.2.0.ebuild => qemu-4.2.0-r1.ebuild} | 2 +-
 app-emulation/qemu/qemu-9999.ebuild                            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)