pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ImportError: No module named libvirt



netbsd-marietto# ping google.it

PING google.it (216.58.209.35): 56 data bytes
64 bytes from 216.58.209.35: icmp_seq=0 ttl=112 time=22.236755 ms
64 bytes from 216.58.209.35: icmp_seq=1 ttl=112 time=22.115848 ms
^C
----google.it PING Statistics----
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.115848/22.176302/22.236755/0.085494 ms

netbsd-marietto# make

=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for virt-manager-2.2.1.tar.gz
=> Checksum RMD160 OK for virt-manager-2.2.1.tar.gz
=> Checksum SHA512 OK for virt-manager-2.2.1.tar.gz
===> Installing dependencies for virt-manager-2.2.1
==========================================================================
The following variables will affect the build process of this package,
virt-manager-2.2.1.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 38

Based on these variables, the following variables have been set:

        * PYPACKAGE = python38

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.68.3
=> Tool dependency intltool>=0.40.0: found intltool-0.51.0nb6
=> Tool dependency perl>=5.0: found perl-5.34.0nb2
=> Build dependency x11-links>=1.34: found x11-links-1.34
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency py38-gobject3-[0-9]*: found py38-gobject3-3.36.1nb1
=> Full dependency py38-libvirt-[0-9]*: found py38-libvirt-5.8.0
=> Full dependency libosinfo>=1.2.0: found libosinfo-1.2.0
=> Full dependency libvirt-glib>=2.0.0: NOT found
=> Verifying reinstall for ../../wip/libvirt-glib
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Fetching v2.0.0.tar.gz
=> Total size: 245817 bytes
Requesting https://github.com/libvirt/libvirt-glib/archive/2.0.0.tar.gz
Redirected to https://codeload.github.com/libvirt/libvirt-glib/tar.gz/2.0.0
Requesting https://codeload.github.com/libvirt/libvirt-glib/tar.gz/2.0.0
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file v2.0.0.tar.gz
Trying [2a04:4e42::262]:80 ...
ftp: Can't connect to `2a04:4e42::262:80': No route to host
Trying [2a04:4e42:200::262]:80 ...
ftp: Can't connect to `2a04:4e42:200::262:80': No route to host
Trying [2a04:4e42:400::262]:80 ...
ftp: Can't connect to `2a04:4e42:400::262:80': No route to host
Trying [2a04:4e42:600::262]:80 ...
ftp: Can't connect to `2a04:4e42:600::262:80': No route to host
Trying 151.101.1.6:80 ...
Requesting http://cdn.NetBSD.org/pub/pkgsrc/distfiles/libvirt-glib/v2.0.0.tar.gz
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file v2.0.0.tar.gz
ftp: Can't connect to `2001:470:a085:999::21:80': No route to host
ftp: Can't connect to `ftp6.NetBSD.org:http'
fetch: Unable to fetch expected file v2.0.0.tar.gz
Trying [2001:660:3302:282a:204:75ff:fe9f:9e11]:80 ...
ftp: Can't connect to `2001:660:3302:282a:204:75ff:fe9f:9e11:80': No route to host
Trying 132.227.74.11:80 ...
Requesting http://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/libvirt-glib/v2.0.0.tar.gz
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file v2.0.0.tar.gz
Trying [2001:470:a085:999::21]:80 ...
ftp: Can't connect to `2001:470:a085:999::21:80': No route to host
Trying 199.233.217.201:80 ...
Requesting http://ftp.NetBSD.org/pub/pkgsrc/distfiles/libvirt-glib/v2.0.0.tar.gz
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file v2.0.0.tar.gz

Il giorno mar 14 set 2021 alle ore 15:28 Thomas Klausner <wiz%netbsd.org@localhost> ha scritto:
On Tue, Sep 14, 2021 at 02:18:05PM +0100, Chavdar Ivanov wrote:
> On Tue, 14 Sept 2021 at 13:58, Mario Marietto <marietto2008%gmail.com@localhost> wrote:
> >
> > So,let's make a recap of what I've experimented :
> >
> > 1) if I make the installation of virt-manager using pkgin virt-manager I see the error :
> >
> > 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
> >
> > 2) and if I go under the folder /usr/pkgsrc/wip/virt-manager and I do a make I get the following error :
> >
> > => Automatic manual page handling
> > => Generating post-install file lists
> > pkg_create: can't stat `/usr/pkgsrc/wip/libosinfo/work/.destdir/usr/pkg/share/vala/vapi/libosinfo-1.0.vapi'
>
>
> You probably have a problem with lang/vala. My version is 0.52.4 and
> the file you indicate as missing is correctly generated in my build.

The package was missing the vala dependency completely, so I guess Mario needs to update the wip checkout.
 Thomas


--
Mario.


Home | Main Index | Thread Index | Old Index