Bug 1670052 - python plugin incorrect initialization of built in "nbdkit" module
Summary: python plugin incorrect initialization of built in "nbdkit" module
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nbdkit
Version: 7.7
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1669891
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-28 13:56 UTC by Richard W.M. Jones
Modified: 2019-05-13 10:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1669891
Environment:
Last Closed: 2019-05-13 10:15:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2019-01-28 13:56:25 UTC
+++ This bug was initially created as a clone of Bug #1669891 +++

Description of problem:

nbdkit python plugin (both Python 2 & Python 3) was found to
be initializing the built in nbdkit API module incorrectly.  A
simple test which demonstrates this is:

$ echo "import nbdkit" > test.py
$ nbdkit python test.py
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import nbdkit
ModuleNotFoundError: No module named 'nbdkit'
nbdkit: error: test.py: error running this script

NOTE you will only see the error with a very recent version
of Python 3.7.  Earlier versions of Python don't fail, but
since we are using the Python API incorrectly they could
begin to fail at any time.

This is fixed upstream in:

https://github.com/libguestfs/nbdkit/commit/6e756abe3db120f67bd789e3eb2f5a0449b8dab1
https://github.com/libguestfs/nbdkit/commit/308092dfaf191e9ef59eeaa3db81f3b65a3bb31f

Comment 2 Richard W.M. Jones 2019-05-13 10:15:44 UTC
It looks like we aren't going to fix this in RHEL 7.  The issue should be addressed
in RHEL 8.1 when we move to nbdkit >= 1.12 there.


Note You need to log in before you can comment on or make changes to this bug.