Skip to content

ImportError: No module named libvirt #21

@Marietto2008

Description

@Marietto2008

Hello.

I've just installed virt-manager with pkgin. Everything went ok. But,when I ran it,an error came up :

netbsd-marietto# virt-manager


Traceback (most recent call last):

File "/usr/pkg/share/virt-manager/virt-manager.py", line 386, in <module>

main()

File "/usr/pkg/share/virt-manager/virt-manager.py", line 247, in main

from virtManager import cli

File "/usr/pkg/share/virt-manager/virtManager/cli.py", line 29, in <module>

import libvirt

ImportError: No module named libvirt

Googling a little bit maybe I've found the solution here :

https://www.unitedbsd.com/d/285-linux-user-and-netbsd-enthusiast-hoping-to-migrate-some-day

where "kim" said :

Looking at pkgsrc/sysutils/libvirt/PLIST it doesn't look like the package provides any Python bindings -- which is what the "ImportError: No module named libvirt" error message is about. You could try py-libvirt from pkgsrc-wip and see how that works out.

I tried,but it didn't work :

netbsd-marietto# cd py-libvirt

netbsd-marietto# ls

DESCR Makefile PLIST distinfo distinfo.25058

netbsd-marietto# make

make: "/home/mario/Desktop/pkgsrc-wip/py-libvirt/Makefile" line 15: Need an operator

make: "/home/mario/Desktop/pkgsrc-wip/py-libvirt/Makefile" line 16: Need an operator

make: "/home/mario/Desktop/pkgsrc-wip/py-libvirt/Makefile" line 17: Need an operator

make: Fatal errors encountered -- cannot continue

make: stopped in /home/mario/Desktop/pkgsrc-wip/py-libvirt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions