Kazam crashes with Python 3.5.1

Bug #1529050 reported by Mikhail Novosyolov
20
This bug affects 4 people
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_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
Traceback (most recent call last):
  File "/usr/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/lib/python3.5/site-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 478, in <module>
    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/lib/python3.5/configparser.py", line 797, in get
    d)
  File "/usr/lib/python3.5/configparser.py", line 393, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib/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'

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_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
sys:1: 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.
sys:1: 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.
sys:1: 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.
sys:1: 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.
/usr/lib/python3.5/site-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))

(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

Revision history for this message
Steve O (stratus-ss) wrote :

I can confirm this problem on Antergos

stratus@stratus-desktop ~ $ kazam
sys:1: 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.
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
Traceback (most recent call last):
  File "/usr/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/lib/python3.5/site-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 478, in <module>
    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/lib/python3.5/configparser.py", line 797, in get
    d)
  File "/usr/lib/python3.5/configparser.py", line 393, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib/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'

I also had to downgrade to python 3.5.0-2 in order to run kazam without error

Revision history for this message
jgddg cyfszsad (fadioadfgoa-deactivatedaccount) wrote :

This has been fixed, I have an update in AUR and it works again with python 3.5.1.

Please Close this issue :)

Changed in kazam:
status: New → Fix Released
Revision history for this message
Mikhail Novosyolov (mikhailnov) wrote :

I conform that the issue is fixed. Thank you!

Revision history for this message
Mikhail Novosyolov (mikhailnov) wrote :

* confirm

Revision history for this message
Jonathan Vargas (jvargas-alkaid) wrote :

On Ubuntu 16.04 it doesn't work, same issue.

$ 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.5.3 'NX-72307'

$ python3.5 --version
Python 3.5.1+

I installed it via the unstable PPA (http://ppa.launchpad.net/kazam-team/unstable-series/ubuntu/)

Am I using an older version of Kazam?

Revision history for this message
Mikhail Novosyolov (mikhailnov) wrote :

Kazam from Ubuntu 16.04 repos (not PPAs) does work.

Revision history for this message
Jonathan Vargas (jvargas-alkaid) wrote :

Thanks, now it works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.