Install kazam di Fedora 25
Install kazam Fedora 25
- Download zip dari https://launchpad.net/kazam.
- Ekstrak hasil download. Misal di ekstrak di folder
~/Downloads . - Install paket yang dibutuhkan.
- Jalankan file setup di folder hasil ekstrak.
- Kemudian jalankan kazam dari terminal.
- Jika muncul pesan seperti dibawah:
- Edit file
/usr/bin/kazam dan tambahkan baris berikut sebelumfrom gi.repository import Gtk . - Edit file
/usr/lib/python3.5/site-packages/kazam/backend/config.py dan rubah get method.
$ sudo dnf install python3-distutils-extra python3-dbus intltool
$ cd ~/Downloads/kazam-1.4.5/kazam-1.4.5/ $ sudo python3 setup.py install
$ kazam
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk Traceback (most recent call last): File "/usr/bin/kazam", line 146, infrom kazam.app import KazamApp File "/usr/lib/python3.5/site-packages/kazam/app.py", line 35, in from kazam.backend.prefs import * File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 478, in prefs = Prefs() File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 121, in __init__ self.read_config() File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 199, in read_config self.audio_source = int(self.config.get("main", "audio_source")) File "/usr/lib/python3.5/site-packages/kazam/backend/config.py", line 103, in get return ConfigParser.get(self, section, key) File "/usr/lib64/python3.5/configparser.py", line 797, in get d) File "/usr/lib64/python3.5/configparser.py", line 393, in before_get self._interpolate_some(parser, option, L, value, section, defaults, 1) File "/usr/lib64/python3.5/configparser.py", line 406, in _interpolate_some rawval = parser.get(section, option, raw=True, fallback=rest) TypeError: get() got an unexpected keyword argument 'raw'
lakukan langkah selanjutnya.
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk
sebelum:
def get(self, section, key): try: return ConfigParser.get(self, section, key)
sesudah:
def get(self, section, key,raw=True,fallback='rest'): try: return super(KazamConfig,self).get(section, key, raw=raw, fallback=fallback)
Selesai.
Sumber: https://gist.github.com/jamiekurtz/d325baa979dd3f64f8d1
Comments
Post a Comment