benzanol / ulauncher-aurman-plugin

Search for and install packages in Arch Linux using ulauncher
GNU General Public License v3.0
4 stars 3 forks source link

ImportError: Requiring namespace 'Gdk' version '3.0', but '4.0' is already loaded #2

Open adovbos opened 3 years ago

adovbos commented 3 years ago

I use Arch with latest packages, and found this extension crashing with error: | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.adamtillou.ulauncher-aurman-plugin" failed with an error: ImportError: Requiring namespace 'Gdk' version '3.0', but '4.0' is already loaded

Found temporary solution here https://github.com/friday/ulauncher-hash2/commit/7478980b8fd6d9da3454dd0fb9ec232d7457a3c6.

So

import gi
gi.require_version('Gdk', '3.0')

in main.py file fixed issue