Bug 1624635

Summary: solaar command crashes
Product: [Fedora] Fedora Reporter: Tomasz Kłoczko <kloczko.tomasz>
Component: solaarAssignee: Jason Tibbitts <j>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: j, kloczko.tomasz, richardfearn, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-21 15:18:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomasz Kłoczko 2018-09-02 17:20:22 UTC
$ solaar 
Traceback (most recent call last):
  File "/usr/bin/solaar", line 57, in <module>
    solaar.gtk.main()
  File "/usr/lib/python3.7/site-packages/solaar/gtk.py", line 91, in main
    _require('gi.repository.Gtk', 'gir1.2-gtk-3.0')
  File "/usr/lib/python3.7/site-packages/solaar/gtk.py", line 35, in _require
    return importlib.import_module(module)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  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 "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  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 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 132, 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 1 Jason Tibbitts 2018-09-02 17:56:49 UTC
I don't think this has anything to do with solaar.

Comment 2 Jason Tibbitts 2018-09-04 16:21:38 UTC
So, I did look and I can't reproduce that issue.  I would need more information about what is installed on the system before I can do much; you don't even say which version of the solaar package is installed.  Just pasting in a backtrace isn't particularly helpful.

While looking into this I found a different issue that crops up if you have solaar installed without gtk3.  That's actually perfectly reasonable; you can use various command line options (show, config, pair, unpair) without it but if you try to launch the interface then it should give useful output instead of backtracing.

I've applied a patch which will bail with a more useful message if you don't have gtk3 installed and try to run the graphical interface.  Gtk3 is also added as a optional dependency.  I don't think it will fix the above issue, but... maybe.

Built in rawhide as https://koji.fedoraproject.org/koji/taskinfo?taskID=29487172.  Will push to F29 as well.

Comment 3 Red Hat Bugzilla 2023-09-14 04:33:59 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days