-
-
Save jamiekurtz/d325baa979dd3f64f8d1 to your computer and use it in GitHub Desktop.
# 1. download zip from https://launchpad.net/kazam | |
# 2. extract into target folder | |
# install prerequisites (works on Fedora 21 with Python 3) | |
sudo yum install python3-distutils-extra python3-dbus intltool | |
# run the included setup from within the unzipped folder | |
sudo python3 setup.py install | |
# Done! Can start with either `kazam` command or find Kazam in the menu |
After applying patch got this one on Fedora 25:
$ kazam
/usr/lib/python3.5/site-packages/kazam/frontend/window_area.py:30: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
/usr/lib/python3.5/site-packages/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gst
/usr/lib/python3.5/site-packages/kazam/frontend/indicator.py:97: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_version('Keybinder', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Keybinder
Segmentation fault (core dumped)
Works on Fedora 25:
-
Edit all those three files inserting them each gi.require_version.
-
Edit /etc/gdm/custom.conf file and uncoment the line WaylandEnable=false. This will disable Wayland and force to use Xorg.
reboot your system.
Using Fedora 26 and after doing all fixes in this issue I'm still getting
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 879, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/kazam", line 149, in <module>
from kazam.app import KazamApp
File "/usr/lib/python3.6/site-packages/kazam/app.py", line 38, in <module>
from kazam.frontend.window_area import AreaWindow
File "/usr/lib/python3.6/site-packages/kazam/frontend/window_area.py", line 30, in <module>
from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
File "/usr/lib64/python3.6/site-packages/gi/importer.py", line 127, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Wnck, introspection typelib not found
After applying patch got this one on Fedora 25:
$ kazam /usr/lib/python3.5/site-packages/kazam/frontend/window_area.py:30: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11 /usr/lib/python3.5/site-packages/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GObject, Gst /usr/lib/python3.5/site-packages/kazam/frontend/indicator.py:97: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_version('Keybinder', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Keybinder Segmentation fault (core dumped)
@ShahriyarR
have you found solution man? I am not able to fix it yet :)
#shakoheryerde )))
i have the same error on Fedora 32 (Rawhide) and i have installed already python3-pyxdg and get that at the start:
$ kazam /usr/local/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 WARNING Kazam - Failed to correctly detect operating system. Traceback (most recent call last): File "/usr/local/bin/kazam", line 146, in <module> from kazam.app import KazamApp File "/usr/local/lib/python3.8/site-packages/kazam/app.py", line 35, in <module> from kazam.backend.prefs import * File "/usr/local/lib/python3.8/site-packages/kazam/backend/prefs.py", line 478, in <module> prefs = Prefs() File "/usr/local/lib/python3.8/site-packages/kazam/backend/prefs.py", line 119, in __init__ self.config = KazamConfig() File "/usr/local/lib/python3.8/site-packages/kazam/backend/config.py", line 76, in __init__ ConfigParser.__init__(self, self.DEFAULTS[0]['keys']) File "/usr/lib64/python3.8/configparser.py", line 639, in __init__ self._read_defaults(defaults) File "/usr/lib64/python3.8/configparser.py", line 1219, in _read_defaults self.read_dict({self.default_section: defaults}) File "/usr/lib64/python3.8/configparser.py", line 754, in read_dict self.set(section, key, value) File "/usr/local/lib/python3.8/site-packages/kazam/backend/config.py", line 126, in set self.add_section(section) File "/usr/lib64/python3.8/configparser.py", line 1208, in add_section super().add_section(section) File "/usr/lib64/python3.8/configparser.py", line 656, in add_section raise ValueError('Invalid section name: %r' % section) ValueError: Invalid section name: 'DEFAULT'
(why are the newlines not visible in the code block?)
I have this error when I try to run as a normal user.
Over Fedora 32
$ kazam
/usr/local/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
/usr/local/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
dist = platform.linux_distribution()
Traceback (most recent call last):
File "/usr/local/bin/kazam", line 146, in
from kazam.app import KazamApp
File "/usr/local/lib/python3.7/site-packages/kazam/app.py", line 35, in
from kazam.backend.prefs import *
File "/usr/local/lib/python3.7/site-packages/kazam/backend/prefs.py", line 478, in
prefs = Prefs()
File "/usr/local/lib/python3.7/site-packages/kazam/backend/prefs.py", line 119, in init
self.config = KazamConfig()
File "/usr/local/lib/python3.7/site-packages/kazam/backend/config.py", line 76, in init
ConfigParser.init(self, self.DEFAULTS[0]['keys'])
File "/usr/lib64/python3.7/configparser.py", line 638, in init
self._read_defaults(defaults)
File "/usr/lib64/python3.7/configparser.py", line 1216, in _read_defaults
self.read_dict({self.default_section: defaults})
File "/usr/lib64/python3.7/configparser.py", line 753, in read_dict
self.set(section, key, value)
File "/usr/local/lib/python3.7/site-packages/kazam/backend/config.py", line 126, in set
self.add_section(section)
File "/usr/lib64/python3.7/configparser.py", line 1205, in add_section
super().add_section(section)
File "/usr/lib64/python3.7/configparser.py", line 655, in add_section
raise ValueError('Invalid section name: %r' % section)
ValueError: Invalid section name: 'DEFAULT
But when I run as root
$ sudo kazam
/usr/local/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
/usr/local/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
dist = platform.linux_distribution()
Traceback (most recent call last):
File "/usr/local/bin/kazam", line 127, in
bus = dbus.SessionBus()
File "/usr/lib64/python3.7/site-packages/dbus/_dbus.py", line 211, in new
mainloop=mainloop)
File "/usr/lib64/python3.7/site-packages/dbus/_dbus.py", line 100, in new
bus = BusConnection.new(subclass, bus_type, mainloop=mainloop)
File "/usr/lib64/python3.7/site-packages/dbus/bus.py", line 122, in new
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
Over Fedora 32
Alguém sabe como resolver:
[user@pc kazam-1.4.5]$ kazam
/usr/local/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
/usr/local/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
dist = platform.linux_distribution()
Traceback (most recent call last):
File "/usr/local/bin/kazam", line 146, in
from kazam.app import KazamApp
File "/usr/local/lib/python3.7/site-packages/kazam/app.py", line 35, in
from kazam.backend.prefs import *
File "/usr/local/lib/python3.7/site-packages/kazam/backend/prefs.py", line 478, in
prefs = Prefs()
File "/usr/local/lib/python3.7/site-packages/kazam/backend/prefs.py", line 119, in init
self.config = KazamConfig()
File "/usr/local/lib/python3.7/site-packages/kazam/backend/config.py", line 76, in init
ConfigParser.init(self, self.DEFAULTS[0]['keys'])
File "/usr/lib64/python3.7/configparser.py", line 638, in init
self._read_defaults(defaults)
File "/usr/lib64/python3.7/configparser.py", line 1216, in _read_defaults
self.read_dict({self.default_section: defaults})
File "/usr/lib64/python3.7/configparser.py", line 753, in read_dict
self.set(section, key, value)
File "/usr/local/lib/python3.7/site-packages/kazam/backend/config.py", line 126, in set
self.add_section(section)
File "/usr/lib64/python3.7/configparser.py", line 1205, in add_section
super().add_section(section)
File "/usr/lib64/python3.7/configparser.py", line 655, in add_section
raise ValueError('Invalid section name: %r' % section)
ValueError: Invalid section name: 'DEFAULT'
@here any idea why it is not working on Fedora 25? :)