Richard W.M. Jones
2019-Jul-22 12:59 UTC
[Libguestfs] [libnbd] ImportError: cannot import name 'Error'
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? 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/
Martin Kletzander
2019-Jul-23 07:38 UTC
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/
Apparently Analagous Threads
- Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
- [PATCH libnbd] python: Raise a custom exception containing error string and errno.
- [nbdkit PATCH 0/2] Another libnbd API bump
- [PATCH libnbd v2] python: Raise a custom exception containing error string and errno.
- [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.