Kazam crashes with Python 3.5.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kazam Screencaster |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Manjaro (Arch) Linux, Kazam was installed from AUR.
It crashes with Python 3.5.1 but works with Python 3.5.0
Console output with Python 3.5.1 installed:
[user@Dom1-Manjaro ~]$ kazam
sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_
Traceback (most recent call last):
File "/usr/bin/kazam", line 146, in <module>
from kazam.app import KazamApp
File "/usr/lib/
from kazam.backend.prefs import *
File "/usr/lib/
prefs = Prefs()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return ConfigParser.
File "/usr/lib/
d)
File "/usr/lib/
self.
File "/usr/lib/
rawval = parser.get(section, option, raw=True, fallback=rest)
TypeError: get() got an unexpected keyword argument 'raw'
Kazam doesn't start.
Console output after downgrading Python to 3.5.0 (I recorded a video):
kazam
sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_
/usr/lib/
self.
(kazam:7153): Gtk-WARNING **: Theme directory action/24 of theme maia has no size field
(kazam:7153): Gtk-WARNING **: Can't set a parent on widget which has a parent
(kazam:7153): Gtk-WARNING **: Can't set a parent on widget which has a parent
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
INFO Main - Unable to delete one of the temporary files. Check your temporary directory.
Despite the 'unable to delete temporary files' error, I didn't find any either visible or invisible files in the Kazam's output directory.
So, it works correctly with Python 3.5.0
I can confirm this problem on Antergos
stratus@ stratus- desktop ~ $ kazam version( 'Gtk', '3.0') before import to ensure that the right version gets loaded. version( 'GdkX11' , '3.0') before import to ensure that the right version gets loaded. python3. 5/site- packages/ kazam/app. py", line 35, in <module> python3. 5/site- packages/ kazam/backend/ prefs.py" , line 478, in <module> python3. 5/site- packages/ kazam/backend/ prefs.py" , line 121, in __init__ read_config( ) python3. 5/site- packages/ kazam/backend/ prefs.py" , line 199, in read_config audio_source = int(self. config. get("main" , "audio_source")) python3. 5/site- packages/ kazam/backend/ config. py", line 103, in get get(self, section, key) python3. 5/configparser. py", line 797, in get python3. 5/configparser. py", line 393, in before_get _interpolate_ some(parser, option, L, value, section, defaults, 1) python3. 5/configparser. py", line 406, in _interpolate_some
sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_
Traceback (most recent call last):
File "/usr/bin/kazam", line 146, in <module>
from kazam.app import KazamApp
File "/usr/lib/
from kazam.backend.prefs import *
File "/usr/lib/
prefs = Prefs()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return ConfigParser.
File "/usr/lib/
d)
File "/usr/lib/
self.
File "/usr/lib/
rawval = parser.get(section, option, raw=True, fallback=rest)
TypeError: get() got an unexpected keyword argument 'raw'
I also had to downgrade to python 3.5.0-2 in order to run kazam without error