Open SebaDA opened 7 years ago
My problem too...'
I am seeing the same problem on Ubuntu 17.10:
λ Neutron ~ → python3 -V
Python 3.6.3 λ Neutron ~ → kazam -v /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 kazam 1.4.5 'NCC-80102' λ Neutron ~ → 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 /usr/lib/python3/dist-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/dist-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/dist-packages/kazam/frontend/indicator.py:148: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded. from gi.repository import AppIndicator3 /usr/lib/python3/dist-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 [1] 7891 segmentation fault (core dumped) kazam λ Neutron ~ → cat /etc/lsb-release
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.10 DISTRIB_CODENAME=artful DISTRIB_DESCRIPTION="Ubuntu 17.10"
+1
On Ubuntu 17.10: I switched to Xorg at the login prompt and everything started working fine then after.
/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. ...blah blah blah...
Open file
/usr/lib/python3/dist-packages/kazam/backend/config.py
find
def get(self, section, key): try: ret = ConfigParser.get(self, section, key)
and replace
def get(self, section, key,raw=True,fallback='rest'): try: return super(KazamConfig,self).get(section, key,raw=raw,fallback=fallback) ret = ConfigParser.get(self, section, key)
Try start Kazam.
+1
Ubuntu 17.10, x64, Python 2.7.14
@RaviTezu, seems like your error is not the same as the @SebaDA’s one (but I’m not sure, of course).
The surgical solution for you is in my answer to this StackExchange question:
Another solution is to modify the function prototype to pass extra arguments:
def get(self, section, key,raw=True,fallback='rest',**kwargs):
Then forward extra kwargs in the call:
ret = ConfigParser.get(self, section, key, **kwargs)
And per the previous suggestion I would simplify:
ret = super().get(self, section, key, **kwargs)
The additional arguments are not necessary for python 3. Both approaches are equivalent. The only advantage here is to avoid having to fix the same problem if the parameters change in the future.
@cutephoton Nice fix! Why didn't you ask for a pull request?
Yeah, sorry about that -- I needed kazam for a project at the time and forgot about the fix. Looks like there's a pull request with a similar fix as of the last week.
Thank you for the positive feedback.
JUST ADDING **KWARGS TO THE PARAMETERS WILL SOLVE THE PROBLEM.
1-Open file
/usr/lib/python3/dist-packages/kazam/backend/config.py
or
/usr/local/lib/python3.6/dist-packages/kazam/backend/config.py
2-Find this function
def get(self, section, key):
and replace
def get(self, section, key,**kwargs):
3-Find this return line
return ConfigParser.get(self, section, key)
and replace
return ConfigParser.get(self, section, key,**kwargs)
It seems tha Kazam is not working on Python 3.5
Steps:
https://launchpad.net/kazam/stable/1.4.5/+download/kazam-1.4.5.tar.gz