[Libguestfs] [libnbd] ImportError: cannot import name 'Error'

Martin Kletzander mkletzan at redhat.com
Tue Jul 23 07:38:55 UTC 2019


On Mon, Jul 22, 2019 at 01:59:02PM +0100, Richard W.M. Jones wrote:
>
>13:38 < mkletzan> rjones: Not sure where to look, but when I do just `import nbd` from python on the clean installation of libnbd, I just get `ImportError: cannot
>                  import name 'Error'`
>
>I can't reproduce it:
>
>$ rpm -q python3-libnbd
>python3-libnbd-0.1.8-1.fc30.x86_64
>$ python3
>Python 3.7.3 (default, May 11 2019, 00:38:04)
>[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import nbd
>>>>
>
>Do you know which version of libnbd & python this happens for?
>

So I re-did everything from scratch, just to make sure I can reproduce that.  And then I found a two stray libnbdmod libs in my user's python site-packages.  Sorry for the noise.  I knew it worked for me before, I haven't realized I somehow installed it locally and didn't clean it.

>Rich.
>
>-- 
>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
>Read my programming and virtualization blog: http://rwmj.wordpress.com
>virt-df lists disk usage of guests without needing to install any
>software inside the virtual machine.  Supports Linux and Windows.
>http://people.redhat.com/~rjones/virt-df/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190723/5f8a7493/attachment.sig>


More information about the Libguestfs mailing list