• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

gajim: python-farstream für CentOS 7

gehrke

Administrator
Teammitglied
Moin *,

ich brauche Video-Support in gajim (XMPP-Client) unter CentOS 7.

Laut Dokumentation (https://dev.gajim.org/gajim/gajim/wikis/GajimFaq) benötige ich diese zusätzlichen Pakete:
*python-farstream
*gstreamer-plugins-bad

'gstreamer-plugins-bad' ist kein Problem, aber leider befindet sich 'python-farstream' scheinbar nicht in den üblichen Repositories (epel, nux-dextop).

Als Schuss ins Blaue habe ich einfach mal diese Installation versucht:
Code:
[root@j3 ~]# yum install ftp://mirror.switch.ch/pool/4/mirror/centos/7.3.1611/os/x86_64/Packages/farstream-python-0.1.2-8.el7.x86_64.rpm
Geladene Plugins: fastestmirror, langpacks
farstream-python-0.1.2-8.el7.x86_64.rpm                                                                                  |  19 kB  00:00:01     
/var/tmp/yum-root-tscPxX/farstream-python-0.1.2-8.el7.x86_64.rpm wird untersucht: farstream-python-0.1.2-8.el7.x86_64
/var/tmp/yum-root-tscPxX/farstream-python-0.1.2-8.el7.x86_64.rpm wird zum Installieren markiert
Abhängigkeiten werden aufgelöst
--> Transaktionsprüfung wird ausgeführt
---> Paket farstream-python.x86_64 0:0.1.2-8.el7 markiert, um installiert zu werden
--> Abhängigkeitsauflösung beendet

Abhängigkeiten aufgelöst

================================================================================================================================================
 Package                          Arch                   Version                     Paketquelle                                          Größe
================================================================================================================================================
Installieren:
 farstream-python                 x86_64                 0.1.2-8.el7                 /farstream-python-0.1.2-8.el7.x86_64                  44 k

Transaktionsübersicht
================================================================================================================================================
Installieren  1 Paket

Gesamtgröße: 44 k
Installationsgröße: 44 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installieren     : farstream-python-0.1.2-8.el7.x86_64                                                                                    1/1 
  Überprüfung läuft: farstream-python-0.1.2-8.el7.x86_64                                                                                    1/1 

Installiert:
  farstream-python.x86_64 0:0.1.2-8.el7                                                                                                         

Komplett!
Soweit gut, aber das crasht den Client:
Code:
-bash-4.2$ gajim
ImportError: could not import gst
Traceback (most recent call last):
  File "gajim.py", line 512, in <module>
    interface = Interface()
  File "/usr/share/gajim/src/gui_interface.py", line 2970, in __init__
    import network_watcher
  File "/usr/share/gajim/src/network_watcher.py", line 63, in <module>
    '/org/freedesktop/NetworkManager')
  File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 148, in add_signal_receiver
    path, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 400, in add_signal_receiver
    self._require_main_loop()
RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)
Via
Code:
yum history undo <id>
lässt sich das Problem schnell wieder beheben.

Nun suche ich nach einer Möglichkeit, diese Software systemkonform zu installieren.
Sachdienliche Hinweise werden immer gern angenommen...
TNX

cu, gehrke

EDIT:
Code:
[root@j3 ~]# yum info gajim
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.net-d-sign.de
 * epel: ftp.nluug.nl
 * extras: ftp.halifax.rwth-aachen.de
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.mirror.net-d-sign.de
Installierte Pakete
Name       : gajim
Architektur : noarch
Version    : 0.16.8
Ausgabe    : 1.el7
Größe : 15 M
Quelle      : installed
Aus Quelle  : epel
Zusammenfassung: Jabber client written in PyGTK
URL        : https://gajim.org/
Lizenz      : GPLv3
Beschreibung: Gajim is a Jabber client written in PyGTK. The goal of Gajim's developers is
            : to provide a full featured and easy to use xmpp client for the GTK+ users.
            : Gajim does not require GNOME to run, even though it exists with it nicely.
Code:
[root@j3 ~]# yum info python
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: ftp.nluug.nl
 * extras: ftp.halifax.rwth-aachen.de
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.mirror.net-d-sign.de
Installierte Pakete
Name       : python
Architektur : x86_64
Version    : 2.7.5
Ausgabe    : 48.el7
Größe : 79 k
Quelle      : installed
Aus Quelle  : base
Zusammenfassung: An interpreted, interactive, object-oriented programming language
URL        : http://www.python.org/
Lizenz      : Python
Beschreibung: Python is an interpreted, interactive, object-oriented programming
            : language often compared to Tcl, Perl, Scheme or Java. Python includes
            : modules, classes, exceptions, very high level dynamic data types and
            : dynamic typing. Python supports interfaces to many system calls and
            : libraries, as well as to various windowing systems (X11, Motif, Tk,
            : Mac and MFC).
            : 
            : Programmers can write new built-in modules for Python in C or C++.
            : Python can be used as an extension language for applications that need
            : a programmable interface.
            : 
            : Note that documentation for Python is provided in the python-docs
            : package.
            : 
            : This package provides the "python" executable; most of the actual
            : implementation is within the "python-libs" package.
 
OP
gehrke

gehrke

Administrator
Teammitglied
Oops... Ich sehe gerade, dass ich schon Version '02' auf dem System habe:
Code:
[root@j3 ~]# yum info farstream02-0.2.3-3.el7.x86_64
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.intergenia.de
 * epel: ftp.nluug.nl
 * extras: mirror.softaculous.com
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.mirror.net-d-sign.de
Installierte Pakete
Name       : farstream02
Architektur : x86_64
Version    : 0.2.3
Ausgabe    : 3.el7
Größe : 681 k
Quelle      : installed
Aus Quelle  : base
Zusammenfassung: Libraries for videoconferencing
URL        : http://www.freedesktop.org/wiki/Software/Farstream
Lizenz      : LGPLv2+ and GPLv2+
Beschreibung: farstream02 is a collection of GStreamer modules and libraries for
            : videoconferencing.
gajim zeigt mir damit auch zwei zusätzliche Schalter für Audio- und Video-Sessions. Möglicherweise ist mein Problem damit schon gelöst. Ich schau mal, wie weit ich damit komme...
 
OP
gehrke

gehrke

Administrator
Teammitglied
Irgendwas fehlt noch, die Funktion ist unter 'Features' nicht selektierbar:
Liste der verwendbaren Features:
[ ] Audio/Video: Audio und Video Chat sind möglich. Benötigt python-farstream und gstreamer-plugins-bad.
 
OP
gehrke

gehrke

Administrator
Teammitglied
In den Settings von gajim finden sich weder ein Audio- noch ein Videodevice. In dem betreffenden Notebook sollte aber eigentlich (TM) beides verbaut sein...

Code:
[root@j3 ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Qualcomm Atheros AR8132 Fast Ethernet (rev c0)
08:00.0 Network controller: Broadcom Limited BCM4312 802.11b/g LP-PHY (rev 01)
Code:
[root@j3 ~]# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0c45:6410 Microdia 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]
Bus 003 Device 003: ID 413c:8161 Dell Computer Corp. Integrated Keyboard
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

EDIT:
Code:
Jun 20 19:32:53 j3 kernel: input: Laptop_Integrated_Webcam_1.3M as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2:1.0/input/input10
Jun 20 19:32:53 j3 kernel: usbcore: registered new interface driver uvcvideo
Jun 20 19:32:53 j3 kernel: USB Video Class driver (1.1.1)
 
OP
gehrke

gehrke

Administrator
Teammitglied
Ein Vergleich mit einem 10 Jahre jüngeren Notebook mit Fedora 25 zeigt, dass die AV-Settings von gajim dort out-of-the-box gefüllt sind. :zensur:

EDIT:
Es liegt aber definitiv nicht an der Hardware oder dem OS, denn auf dem betreffenden Notebook funktioniert die WebCam mit der Gnome-App 'Cheese' problemlos.
 
OP
gehrke

gehrke

Administrator
Teammitglied
Zu wenig Schlaf und/oder zu wenig Koffein:
gehrke schrieb:
Oops... Ich sehe gerade, dass ich schon Version '02' auf dem System habe:
Code:
Installierte Pakete
Name       : farstream02
farstream02 != python-farstream :eek:ps:

Es fehlt also weiterhin noch ein Paket.
 
OP
gehrke

gehrke

Administrator
Teammitglied
Mühsam wird das Eichhörnchen dick:
https://dev.gajim.org/gajim/gajim/issues/7836
Code:
[root@j3 ~]# yum install gstreamer-python-0.10.22-6.el7.x86_64

Damit werden zumindest die Einträge im Settings-Dialog mit plausiblen Device-Einträgen gefüllt. Vielleicht einen Schritt weiter?!?
 
OP
gehrke

gehrke

Administrator
Teammitglied
Dann noch:
Code:
[root@j3 ~]# yum install ftp://mirror.switch.ch/pool/4/mirror/centos/7.3.1611/os/x86_64/Packages/farstream-python-0.1.2-8.el7.x86_64.rpm

Nun startet gajim fehlerfrei und ich bekomme bei einer entsprechenden Jabber-Session zumindest schon mal mein eigenes Videobild präsentiert. So ganz falsch scheint der letzte Schritt nicht gewesen zu sein...
 
Oben