:: Re: [DNG] tryng to install virt-man…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Messer
Date:  
À: Mario Marietto
CC: dng
Sujet: Re: [DNG] tryng to install virt-manager on Devuan 4 : ModuleNotFoundError: No module named 'gi'
Hi Mario,

Am Sun, Aug 20, 2023 at 03:46:25PM +0200 schrieb Mario Marietto via Dng:
> Hello to everyone.
>
> I've installed virt-manager on Devuan 4 installed on my ARM
> chromebook,because it is very comfortable to use it to virtualize the
> various guests. Unfortunately,when I run virt-manager I get this error :


That should work out of the box. Using here virt-manager for a long while
now. You should not install python packages from pip if they are available
from apt as well. You might run into unexpected dependency issues which
can silently break your apps. (I had this already)

> [...] 
>    The simple way:

>
>    sudo apt install python3-gi -----> python3-gi is already the newest
> version (3.38.0-2).


If that doesn't work you already managed to break your python
installation, here is what I get:

andi@zeus:~$ cat /etc/devuan_version
chimaera
andi@zeus:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.__file__

'/usr/lib/python3/dist-packages/gi/__init__.py'
>>> quit()

andi@zeus:~$ dpkg -S /usr/lib/python3/dist-packages/gi/__init__.py
python3-gi: /usr/lib/python3/dist-packages/gi/__init__.py
andi@zeus:~$ apt-cache policy python3-gi
python3-gi:
  Installiert:           3.38.0-2
  Installationskandidat: 3.38.0-2
  Versionstabelle:
 *** 3.38.0-2 500
        500 http://deb.devuan.org/merged chimaera/main amd64 Packages
        100 /var/lib/dpkg/status


You most likely managed to break your PYTHONPATH. Maybe some file got
corrupt? You could try to re-install all python packages from apt.


cheers,
Andreas


--
gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51