# Python custom plugin

**URL:** <https://discourse.gstreamer.org/t/python-custom-plugin/4462>\
**Category:** Plugin and library development\
**Created:** [April 12, 2025, 10:03pm UTC](https://discourse.gstreamer.org/t/python-custom-plugin/4462 "2025-04-12T22:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alisoliman.47](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@alisoliman.47](https://discourse.gstreamer.org/u/alisoliman.47)\
**Post date:** [April 12, 2025, 10:03pm UTC](https://discourse.gstreamer.org/t/python-custom-plugin/4462/1 "2025-04-12T22:03:56Z")

</div>

![image](https://discourse.gstreamer.org/uploads/default/original/2X/4/49a17389e064d47392643a7078aa365bf3f63a55.png)  
I was wondering if gstreamer allows for custom plugins to be created in python, as I’ve followed the steps that are attached in the picture and I cannot get the plugin to be recognized. I have also attached my code in case I am doing anything wrong

---

<div class="post-metadata">

**Author:** ![alisoliman.47](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@alisoliman.47](https://discourse.gstreamer.org/u/alisoliman.47)\
**Post date:** [April 12, 2025, 10:04pm UTC](https://discourse.gstreamer.org/t/python-custom-plugin/4462/2 "2025-04-12T22:04:36Z")

</div>

![image](https://discourse.gstreamer.org/uploads/default/original/2X/3/330300cd503d3716085a91f340845e4a3c6eff57.png)  
this is the error I’m getting

---

<div class="post-metadata">

**Author:** ![wildiness](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/wildiness/32/1229_2.png) [@wildiness](https://discourse.gstreamer.org/u/wildiness)\
**Post date:** [April 13, 2025, 4:23am UTC](https://discourse.gstreamer.org/t/python-custom-plugin/4462/3 "2025-04-13T04:23:44Z")

</div>

Hello. Do you have `gstreamer1.0-python3-plugin-loader` installed via apt?

> <https://stackoverflow.com/questions/56265072/cannot-load-python-gstreamer-elements/71271916#71271916>

Here’s another thread that might be helpful

> [@GStreamer 1.24 Python blacklisted](https://discourse.gstreamer.org/t/gstreamer-1-24-python-blacklisted/1423/7):
>
> Thanks for pointing that out. It turns out that the issue is not 1.24-specific. [This discussion](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2780) provides some hints, and setting PYTHONPATH=/usr/lib/python3.9/site-packages/ seems to resolve the issue.

---

<div class="post-metadata">

**Author:** ![alisoliman.47](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@alisoliman.47](https://discourse.gstreamer.org/u/alisoliman.47)\
**Post date:** [April 16, 2025, 4:33am UTC](https://discourse.gstreamer.org/t/python-custom-plugin/4462/4 "2025-04-16T04:33:14Z")

</div>

![image](https://discourse.gstreamer.org/uploads/default/original/2X/d/d662f24cc5cbca0681fd71f664223057f3de4e3d.png)  
After trying the steps above and installing the python plugin loader I get this issue. My code is attached at the top of the discussion
