Dear Maintainer,
if I start kazam from an x-term
$ 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: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
** (kazam:30445): WARNING **: 10:35:07.589: Binding '<Super><Ctrl>R' failed!
** (kazam:30445): WARNING **: 10:35:07.589: Binding '<Super><Ctrl>F' failed!
** (kazam:30445): WARNING **: 10:35:07.589: Binding '<Super><Ctrl>P' failed!
** (kazam:30445): WARNING **: 10:35:07.589: Binding '<Super><Ctrl>W' failed!
** (kazam:30445): WARNING **: 10:35:07.589: Binding '<Super><Ctrl>Q' failed!
/usr/lib/python3/dist-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:30445): Gtk-WARNING **: 10:35:07.839: Can't set a parent on
widget which has a parent
(kazam:30445): Gtk-WARNING **: 10:35:07.856: Can't set a parent on
widget which has a parent
And the key for start/stop registration don't work.
So I can set to save the screencast, start it, bug I cannot stop it (I
can do it with Ctrl-C or kill command, but I don't have the screencast
with something usable: I see a movie with area subdivided into black and
withe squares).
I search the internet and found two solution[1] for other users that
don't work for me:
1) comment out some instruction on instruction on
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py
2) install python3-xlib (I try to install also python-xlib)
Ciao
Davide
[1]
https://askubuntu.com/questions/982233/kazam-fails-with-pygiwarning-gtk-was-imported-without-specifying-a-version-fir
Hi, Could you please provide a bit more info about your set up to help track down the root cause here? What desktop environment is in use? I was not able to reproduce this in a new Debian Testing VM running Gnome. Thanks for the report.
ok, tell me what you want to know $ dpkg -l | grep " gnome " ii gnome 1:3.22+9 amd64 I have a Debian testing up to date I will try to give you more information Reading the warning message it is probably that it try to run with the wrong python version or python library version $ python --version Python 2.7.15rc1 I have try to use alias to change the python default for the shell $ alias python='/usr/bin/python3.6' but nothing change, I have always the same warning messages. What I have seen is that someone, that have had the same problem, tell that they don't have installed some package... probably a missing dependency? $ dpkg -l | grep "ii python" | cut -d ' ' -f 3 python python-alabaster python-all python-all-dev python-apt python-apt-common python-asn1crypto python-attr python-automat python-babel python-babel-localedata python-backports-abc python-backports-shutil-get-terminal-size python-backports.functools-lru-cache python-backports.ssl-match-hostname python-bleach python-blinker python-brial python-bs4 python-bsddb3 python-cairo:amd64 python-certifi python-cffi-backend python-chardet python-click python-colorama python-concurrent.futures python-configparser python-constantly python-crypto python-cryptography python-cvxopt python-cycler python-cypari2:amd64 python-cysignals-pari:amd64 python-dateutil python-dbg python-dbus python-debian python-debianbts python-decorator python-defusedxml python-dev python-docutils python-entrypoints python-enum34 python-flask python-flask-autoindex python-flask-babel python-flask-oldsessions python-flask-openid python-flask-silk python-fpylll:amd64 python-funcsigs python-functools32 python-future python-gconf python-gd python-gi python-gi-cairo python-glade2 python-gmpy python-gnome2 python-gnucash python-gnutls python-gobject python-gobject-2 python-gobject-2-dbg python-gtk2 python-html5lib python-httplib2 python-hyperlink python-idna python-imagesize python-imaging python-incremental python-ipaddress python-ipykernel python-ipython python-ipython-genutils python-ipywidgets python-itsdangerous python-jinja2 python-jsonschema python-jupyter-client python-jupyter-core python-keyring python-keyrings.alt python-lxml:amd64 python-lzma python-markupsafe python-matplotlib python-matplotlib-data python-minimal python-mistune python-mlt python-mock python-moinmoin python-mpmath python-nautilus python-nbconvert python-nbformat python-networkx python-nose python-notebook python-numpy python-numpy-dbg:amd64 python-olefile python-opengl python-openid python-openssl python-pam python-pandocfilters python-parsedatetime python-passlib python-path python-pathlib2 python-pbr python-pdfrw python-pexpect python-pickleshare python-pil:amd64 python-pip python-pip-whl python-pkg-resources python-pkgconfig python-ply python-prompt-toolkit python-psutil python-ptyprocess python-pyasn1 python-pyasn1-modules python-pycurl python-pygame python-pyglet python-pygments python-pygraphviz python-pyicu python-pyinotify python-pyorbit python-pyparsing python-pyqt5 python-pyqt5.qtwebkit python-pysimplesoap python-pysqlite2 python-qt4 python-rabbyt python-recaptcha python-renderpm:amd64 python-reportlab python-reportlab-accel:amd64 python-requests python-roman python-rpy2 python-sagenb python-sagenb-export python-scandir python-scipy python-scour python-secretstorage python-send2trash python-serial python-service-identity python-setuptools python-setuptools-scm python-simplegeneric python-simplejson python-singledispatch python-sip python-six python-snowballstemmer python-soappy python-sphinx python-sphinx-rtd-theme python-subprocess32 python-svn python-sympy python-sympy-doc python-talloc python-terminado python-testpath python-tk python-tornado python-traitlets python-twisted python-twisted-bin:amd64 python-twisted-core python-twisted-web python-typing python-tz python-urllib3 python-vcversioner python-wcwidth python-webencodings python-werkzeug python-wheel python-wstools python-wxgtk3.0 python-wxversion python-xapian python-xappy python-xdg python-yaml python-zmq python-zope.interface python2.7 python2.7-dbg python2.7-dev python2.7-minimal python3 python3-apt python3-bleach python3-brlapi python3-cairo:amd64 python3-certifi python3-chardet python3-crypto python3-cups python3-cupshelpers python3-dateutil python3-dbus python3-debconf python3-debian python3-debianbts python3-decorator python3-dev python3-distutils python3-docutils python3-entrypoints python3-gi python3-gi-cairo python3-gpg python3-html5lib python3-httplib2 python3-idna python3-ipykernel python3-ipython python3-ipython-genutils python3-ipywidgets python3-jinja2 python3-jsonschema python3-jupyter-client python3-jupyter-core python3-keyrings.alt python3-lib2to3 python3-louis python3-magic python3-mako python3-markupsafe python3-minimal python3-mistune python3-nbconvert python3-nbformat python3-notebook python3-notify2 python3-olefile python3-pandocfilters python3-pexpect python3-pickleshare python3-pil:amd64 python3-pip python3-pkg-resources python3-prompt-toolkit python3-ptyprocess python3-pyatspi python3-pycurl python3-pygments python3-pyinotify python3-pysimplesoap python3-pyxattr python3-reportbug python3-requests python3-roman python3-scour python3-send2trash python3-setuptools python3-simplegeneric python3-six python3-smbc python3-software-properties python3-speechd python3-systemd python3-terminado python3-testpath python3-tornado python3-traitlets python3-unidiff python3-uno python3-urllib3 python3-wcwidth python3-webencodings python3-wheel python3-xdg python3-yaml python3-zmq python3.6 python3.6-dev python3.6-minimal Ciao Davide
Hi everyone,
I did some digging on this issue in a VM running buster/testing + GNOME,
only to find that Kazam does not work at all on Wayland.
The keybinding errors are caused by Keybinder not supporting
Wayland[1][2], but I've also found several other problems. Some of these
can be worked around by running kazam with GDK_BACKEND=x11 set, but
others are not.
- Screenshots fail under Wayland unless GDK_BACKEND=x11 is set:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kazam/app.py", line 567, in
cb_counter_finished
self.grabber.grab()
File "/usr/lib/python3/dist-packages/kazam/backend/grabber.py", line
146, in grab
c_picbuf.composite(self.pixbuf, 0, 0, w - 1, h - 1,
AttributeError: 'NoneType' object has no attribute 'composite'
- Choosing to record a window under Wayland fails because libwnck only
supports X11 (worked around with GDK_BACKEND=x11):
(kazam:3789): Wnck-WARNING **: 13:08:48.693: libwnck is designed to work
in X11 only, no valid display found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kazam/frontend/window_select.py",
line 111, in cb_button_press_event
screen.force_update()
AttributeError: 'NoneType' object has no attribute 'force_update'
- Screen recording under Wayland shows a black screen with only the
cursor, even when GDK_BACKEND=x11 is set
In this case, no explicit errors are shown.
----
All of these issues are Wayland specific and do not affect GNOME on Xorg
or other X11-based desktops. I'm therefore lowering the severity.
Best,
James
[1]: https://github.com/kupferlauncher/keybinder/issues/11
[2]: https://github.com/Guake/guake/issues/1109