GNOME Bugzilla – Bug 630351
gst-python fails on import
Last modified: 2010-09-23 18:33:14 UTC
I have the GStreamer developer's ppa as a software source on ubuntu 10.04. Recently, I've had the following error: >>> import gst python: symbol lookup error: /usr/lib/python2.6/dist-packages/gst-0.10/gst/_gst.so: undefined symbol: gst_pad_link_check_get_type at which point I'm dropped back to a command-line. This affects any application that uses gst-python.
what does: $ apt-cache policy libgstreamer0.10-0 show?
$>apt-cache policy libgstreamer0.10-0 libgstreamer0.10-0: Installed: 0.10.30-1~lucid1 Candidate: 0.10.30-1~lucid1 Version table: *** 0.10.30-1~lucid1 0 500 http://ppa.launchpad.net/gstreamer-developers/ppa/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status 0.10.28-1 0 500 http://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/ lucid/main Packages
More info: $ ldd /usr/lib/libgstreamer-0.10.so.0 linux-gate.so.1 => (0x004cf000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00b82000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00287000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00dff000) libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00d2b000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00110000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00c6c000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00b1e000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00ce7000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x0023a000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x0028d000) libpcre.so.3 => /lib/libpcre.so.3 (0x00253000) libz.so.1 => /lib/libz.so.1 (0x003e7000) /lib/ld-linux.so.2 (0x00a20000) ----------------------------------------------------------------------- $ ldd /usr/lib/python2.6/dist-packages/gst-0.10/gst/_gst.so linux-gate.so.1 => (0x0067e000) libgstcontroller-0.10.so.0 => /usr/local/lib/libgstcontroller-0.10.so.0 (0x00acb000) libgstnet-0.10.so.0 => /usr/local/lib/libgstnet-0.10.so.0 (0x004d5000) libgstdataprotocol-0.10.so.0 => /usr/local/lib/libgstdataprotocol-0.10.so.0 (0x00d12000) libgstbase-0.10.so.0 => /usr/local/lib/libgstbase-0.10.so.0 (0x0060c000) libgstreamer-0.10.so.0 => /usr/local/lib/libgstreamer-0.10.so.0 (0x0025b000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00f58000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x0064c000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00110000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00f1b000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00c38000) libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00320000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x0023a000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x0067f000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0045a000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00d9c000) libpcre.so.3 => /lib/libpcre.so.3 (0x00832000) libz.so.1 => /lib/libz.so.1 (0x00bb6000) /lib/ld-linux.so.2 (0x00eb5000) ----------------------------------------------------------------------- $ readelf -a /usr/lib/libgstreamer-0.10.so | grep pad_link 624: 000977a0 114 FUNC GLOBAL DEFAULT 12 gst_pad_link_return_get_t 1134: 000967a0 114 FUNC GLOBAL DEFAULT 12 gst_pad_link_check_get_ty 1267: 00055840 50 FUNC GLOBAL DEFAULT 12 gst_pad_link 1670: 00055340 1280 FUNC GLOBAL DEFAULT 12 gst_pad_link_full ---------------------------------------------------------------------- $ apt-cache policy python-gst0.10 python-gst0.10: Installed: 0.10.19-2~lucid1 Candidate: 0.10.19-2~lucid1 Version table: *** 0.10.19-2~lucid1 0 500 http://ppa.launchpad.net/gstreamer-developers/ppa/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status 0.10.18-1 0 500 http://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/ lucid/main Packages -------------------------------------------------------------------------- $ apt-cache policy python-gst0.10-dev python-gst0.10-dev: Installed: 0.10.19-2~lucid1 Candidate: 0.10.19-2~lucid1 Version table: *** 0.10.19-2~lucid1 0 500 http://ppa.launchpad.net/gstreamer-developers/ppa/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status 0.10.18-1 0 500 http://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/ lucid/main Packages
The conflict was from an older .so in /usr/local/lib