Closed DemonRx closed 1 year ago
Adding import gi
is needed due to warnings on the files:
File "/home/demon/.local/lib/python3.10/site-packages/kazam/backend/gstreamer.py", line 22, in <module>
gi.require_version('Gst', '1.0')
File "/home/demon/.local/lib/python3.10/site-packages/kazam/backend/webcam.py", line 22, in <module>
gi.require_version('GUdev', '1.0')
NameError: name 'gi' is not defined
after this correction and specifying versions where necessary. The result is:
WARNING Kazam - Failed to correctly detect operating system.
Traceback (most recent call last):
File "/home/demon/.local/bin/./kazam", line 148, in <module>
from kazam.app import KazamApp
File "/home/demon/.local/lib/python3.10/site-packages/kazam/app.py", line 39, in <module>
from kazam.backend.gstreamer import Screencast, GWebcam
File "/home/demon/.local/lib/python3.10/site-packages/kazam/backend/gstreamer.py", line 41, in <module>
from gi.repository import GObject, Gst, GstVideo
File "/usr/lib/python3/dist-packages/gi/importer.py", line 136, in load_module
raise ImportError('cannot import name %s, '
ImportError: cannot import name GstVideo, introspection typelib not found
The part that says ImportError: cannot import name GstVideo, introspection typelib not found
Is apparently a dependency issue? Trying to determine how to solve it.
The part that says ImportError: cannot import name GstVideo, introspection typelib not found
Is apparently a dependency issue? Trying to determine how to solve it.
To resolve this:
The following packages need to be installed: gir1.2-gst-plugins-base-1.0 gir1.2-gst-plugins-bad-1.0
Which leads to another error:
ImportError: cannot import name Wnck, introspection typelib not found
That is resolved by installing the package: gir1.2-wnck-3.0
The program successfuly initialized after these dependencies were installed and version requirements satisfied.
Will open a PR to fix
Kazam version: 1.5.6 Installation method:
pip install kazam
OS: Ubuntu 22.04.2 LTSErrors: