Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Kazam installs but does not run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sat Jun 05, 2021 7:47 pm    Post subject: [solved] Kazam installs but does not run Reply with quote

Hello.
i added the menelkir overlay and installed kazam
No errors.

But when i run it, i will get

Code:
$ kazam
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.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/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/lib/python3.9/site-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/lib/python3.9/site-packages/kazam/backend/prefs.py", line 462, in <module>
    Gdk.CursorType.TOP_LEFT_CORNER,
  File "/usr/lib/python3.9/site-packages/gi/overrides/__init__.py", line 32, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3.9/site-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gdk' object has no attribute 'CursorType'


Here is the build log:
http://3.14.fi/kazam-error-2021-06/kazam-build-log.txt

Any ideas on what is causing this?


Last edited by heikkikk on Sun Jun 06, 2021 7:15 pm; edited 4 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sun Jun 06, 2021 6:43 am    Post subject: Reply with quote

The problem seems that program not specify to use gtk:3 and if you have installed gtk:4 program fails to start.
Changing line 32 in /usr/bin/kazam from
Code:
from gi.repository import Gtk

to
Code:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

solve the problem, better would be that it is applied when you install the program via emerge.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sun Jun 06, 2021 8:40 am    Post subject: Reply with quote

Thanks, Works!!!

Should the overlay maintainer fix it somehow??
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sun Jun 06, 2021 8:43 am    Post subject: Reply with quote

Or... It's not working.

The program starts ok, but...

If i push capture, the countdown does not start and it is not recording anything.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sun Jun 06, 2021 9:14 am    Post subject: Reply with quote

This is a dead project why not use media-video/obs-studio?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sun Jun 06, 2021 7:14 pm    Post subject: Reply with quote

Thanks, that's what i wanted to hear: an alternative :)

I have been using OBS studio for some other things, didn't know it has a screen video capture also :)
Thanks.
Back to top
View user's profile Send private message
niknah
n00b
n00b


Joined: 06 Oct 2021
Posts: 1

PostPosted: Wed Oct 06, 2021 10:59 am    Post subject: Reply with quote

There is a non-dead fork of this project here...
https://github.com/niknah/kazam
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum