[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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/

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]