Unable to open KVM due to "Requiring namespace 'Gtk' version '4.0', but '3.0' is already loaded"

Hello

I installed Tumbleweed about 3 days ago and today I installed KVM patterns through Yast and I’m unable to open KVM due to error “Requiring namespace ‘Gtk’ version ‘4.0’, but ‘3.0’ is already loaded”, how can I load the proper Gtk? I did do a zypper dup before and after installation, also this is what i have for repos

| Alias | Name | Enabled | GPG Check | Refresh
–±--------------------±----------------------------±--------±----------±-------
1 | openSUSE-20211001-0 | openSUSE-20211001-0 | Yes | (rp) Yes | No
2 | repo-debug | openSUSE-Tumbleweed-Debug | No | ---- | ----
3 | repo-non-oss | openSUSE-Tumbleweed-Non-Oss | Yes | (rp) Yes | Yes
4 | repo-oss | openSUSE-Tumbleweed-Oss | Yes | (rp) Yes | Yes
5 | repo-source | openSUSE-Tumbleweed-Source | No | ---- | ----
6 | repo-update | openSUSE-Tumbleweed-Update | Yes | (rp) Yes | Yes

Alas, your repo list is rather useless because it is the URLs that matter, When you want to show your repo list, use

zypper lr -d

And please use CODE tags for that. It is an important, but not easy to find feature on the forums.
It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

zypper lr -d
# | Alias               |  Name                        | Enabled | GPG Check | Refresh | Priority |  Type   | URI                                                      |  Service
--+---------------------+-----------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------+--------
1  | openSUSE-20211001-0 | openSUSE-20211001-0         | Yes     | (rp)  Yes  | No      |   99     | rpm-md |  cd:/?devices=/dev/disk/by-id/wwn-0x5001480000000000      | 
2 |  repo-debug          | openSUSE-Tumbleweed-Debug   | No      | ----      |  ----    |   99     | NONE   |  http://download.opensuse.org/debug/tumbleweed/repo/oss/  | 
3 |  repo-non-oss        | openSUSE-Tumbleweed-Non-Oss | Yes     | (rp) Yes  |  Yes     |   99     | rpm-md |  http://download.opensuse.org/tumbleweed/repo/non-oss/    | 
4 |  repo-oss            | openSUSE-Tumbleweed-Oss     | Yes     | (rp) Yes  |  Yes     |   99     | rpm-md |  http://download.opensuse.org/tumbleweed/repo/oss/        | 
5 |  repo-source         | openSUSE-Tumbleweed-Source  | No      | ----      |  ----    |   99     | NONE   |  http://download.opensuse.org/source/tumbleweed/repo/oss/ | 
6 |  repo-update         | openSUSE-Tumbleweed-Update  | Yes     | (rp) Yes  |  Yes     |   99     | rpm-md |  http://download.opensuse.org/update/tumbleweed/          | 


The problem is libgtksourceview-5-0, get rid of it and install libgtksourceview-3 and or libgtksourceview-4 and the necessary dependencies. This only happens with a fresh install, older updated TW are not affected.
There is already a bug report about it.
https://bugzilla.opensuse.org/show_bug.cgi?id=1191356

I do not know much about KVM, so better wait for others. I have one advice though. Better disable the first repo, the one that starts with cd:/ … It is the install medium and you do not need it now the system has access to the on-line repos. And when it is enabled, the system will ask for it every time you need the repos.

this is issue is solved as I can now deploy VM’s. I did as swannema recommended which was remove libgtksourceview-5-0 and in my case I installed libgtksourceview-4

Sorry for digging this solved thread but could you provide the steps to solve it? Tried that approach and it didn’t work.

Also removed every libgtksourceview, and install 3, or 4 and still get the same message.

Thanks

@nmytik

are you on thumbleweed? how did you uninstall libgtksourceview-5-0? I uninstalled using YaST2, but before uninstall I verified that YaST was set to “Cleanup when deleting packages” which I found on the “Options” menu, then in YaST I just searched for libgtksourceview-4 and thats it, I’m sure I didn’t do a reboot.
I did read on reddit that another solution is to reinstall tumbleweed but have it update all packages during the installation process

THANK YOU! That was indeed the last piece of the puzzle!

I was uninstalling with zypper, doing the YaST thing did solve the problem. However, it showed me 3 options to remove the libgtksourceview package, after choosing the first one it did the trick.

Again, thank you!