diff --git a/packaging/rules/debian/control b/packaging/rules/debian/control
index b34d1a20faf8b7d759cd6b78f95dbb9f9c01a0d6..e763e4915972e8325840b110b6afc5addfc8bda1 100644
--- a/packaging/rules/debian/control
+++ b/packaging/rules/debian/control
@@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 9),
                autotools-dev,
 # qt client
                libqt-jami,
+               python3,
 # both qt client and gnome client
                libnm-dev,
                libnotify-dev,
diff --git a/packaging/rules/rpm/jami-qt.spec b/packaging/rules/rpm/jami-qt.spec
index d53a29975cb4a450210e884254062b3ed5268212..0771b8a036392d800758a4655bb41e61a5080f3c 100644
--- a/packaging/rules/rpm/jami-qt.spec
+++ b/packaging/rules/rpm/jami-qt.spec
@@ -23,6 +23,9 @@ BuildRequires: cmake
 BuildRequires: gcc-c++
 BuildRequires: make
 
+# For generating resources.qrc in build time.
+BuildRequires: python3
+
 # Build and runtime dependencies.
 BuildRequires: qrencode-devel
 
diff --git a/packaging/rules/snap/jami/snapcraft.yaml b/packaging/rules/snap/jami/snapcraft.yaml
index 20f549c345186834db633fc72eece4f1cb68ec67..19c78dd5fb568e6510d0118d4c478d5c18aca3cd 100644
--- a/packaging/rules/snap/jami/snapcraft.yaml
+++ b/packaging/rules/snap/jami/snapcraft.yaml
@@ -329,6 +329,7 @@ parts:
     - libvdpau-dev
     - libyaml-cpp-dev
     - nasm # seems to be needed for building libvpx on an 18.04 base
+    - python3
     - qt515base
     - qt515declarative
     - qt515graphicaleffects