Bug 1627293 - virt-manager don't start (metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases: Could not open display: :0)
Summary: virt-manager don't start (metaclass conflict: the metaclass of a derived clas...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject3
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-10 15:14 UTC by Mikhail
Modified: 2019-09-21 18:08 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-09-21 18:08:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2018-09-10 15:14:57 UTC
Description of problem:
$ virt-manager  --debug
[Mon, 10 Sep 2018 20:12:20 virt-manager 13020] DEBUG (cli:225) Launched with command line: /usr/share/virt-manager/virt-manager --debug
[Mon, 10 Sep 2018 20:12:20 virt-manager 13020] DEBUG (virt-manager:178) virt-manager version: 1.6.0
[Mon, 10 Sep 2018 20:12:20 virt-manager 13020] DEBUG (virt-manager:179) virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.py'>
[Mon, 10 Sep 2018 20:12:20 virt-manager 13020] DEBUG (virt-manager:84) Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 62, in _import_gtk
    from gi.repository import Gtk
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
  File "/usr/lib64/python3.7/site-packages/gi/importer.py", line 146, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib64/python3.7/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 136, in <module>
    class Widget(Gtk.Widget):
  File "/usr/lib64/python3.7/site-packages/gi/module.py", line 215, in __getattr__
    wrapper = metaclass(name, bases, dict_)
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases: Could not open display: :0


# rpm -q virt-manager
virt-manager-1.6.0-1.3.git3bc7ff24c.fc30.noarch

Comment 1 Cole Robinson 2018-09-10 20:20:16 UTC
This looks like it's failing just importing gtk, meaning it's a problem elsewhere.

Can you confirm this fails: python -c 'from gi.repository import Gtk'

Comment 2 Mikhail 2018-09-10 20:23:31 UTC
$ python3 -c 'from gi.repository import Gtk'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
  File "/usr/lib64/python3.7/site-packages/gi/importer.py", line 146, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib64/python3.7/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 136, in <module>
    class Widget(Gtk.Widget):
  File "/usr/lib64/python3.7/site-packages/gi/module.py", line 215, in __getattr__
    wrapper = metaclass(name, bases, dict_)
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Comment 3 Marcos Simental 2018-09-20 17:18:06 UTC
I saw this happening on Clear Linux OS* too, but was related to getting spice-gtk built with atk-2.29.92, jumping into atk-2.30 fixed the issue.

Comment 4 Ben Cotton 2019-08-13 16:50:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 5 Ben Cotton 2019-08-13 19:43:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 6 Kalev Lember 2019-09-21 18:08:59 UTC
Closing as this was fixed a long time ago.


Note You need to log in before you can comment on or make changes to this bug.