GStreamer 1.24 Python bindings are blacklisted
I am trying to install Python bindings for GStreamer, but the library is blacklisted. My Dockerfile is below. Everything installs without issue, but the libgstpython.so library is blacklisted. I have tried different Python versions, specifying the Python path, and random keyboard bashing without success.
FROM ubuntu:24.04
# Install Python
ARG PYTHON_VERSION=3.9.18
WORKDIR /opt
RUN apt update -y && apt upgrade -y && \
apt install -y libbz2-dev libsqlite3-dev zlib1g-dev libffi-dev wget curl build-essential libssl-dev openssl vim && \
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
tar xzvf Python-${PYTHON_VERSION}.tgz && \
cd Python-${PYTHON_VERSION} && \
./configure --enable-shared && \
make && \
make install && \
ln -s /usr/local/bin/python3 /usr/bin/python && \
ln -s /usr/local/bin/pip3 /usr/bin/pip
# # Install FFmpeg, GStreamer, and reqs for custom plugins
RUN apt update && apt upgrade -y && apt install -y \
ffmpeg \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
libhdf5-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-base-apps \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio \
graphviz \
python3-gi \
python3-gst-1.0 \
libgirepository1.0-dev \
cmake \
python-gi-dev \
libcairo2-dev \
ninja-build \
git \
flex \
bison
# # NOTE: pygobject 3.47.0 introduced a bug
# # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3353
WORKDIR /opt
RUN pip install pycairo pygobject==3.46.0 meson pipenv
RUN GSTREAMER_VERSION=$(gst-launch-1.0 --version | grep version | tr -s ' ' '\n' | tail -1) \
&& export GIT_SSL_NO_VERIFY=1 \
&& git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git \
&& cd gstreamer \
&& git checkout $GSTREAMER_VERSION \
&& cd subprojects/gst-python \
&& PREFIX=$(dirname $(dirname $(which python))) \
&& meson setup --prefix=$PREFIX builddir \
&& ninja -C builddir \
&& meson install -C builddir
# Install other dependencies
ENV GST_PLUGIN_PATH=/usr/lib/aarch64-linux-gnu/gstreamer-1.0
The is the output from gst-inspect-1.0:
# gst-inspect-1.0 -b
Blacklisted files:
libgstpython.so
Total count: 1 blacklisted file