Building deb packages from Python

For some considerable time now, I’ve been having trouble building packages for Debian. However, considering that I built these packages last year, it’s strange… I must confess that I’m sagging on this topic already. Please help. On OBS I build my own open source , author projects, nothing big, nothing important.

A fragment of the log from the compilation process (I look at this message and guess that the problem, may be in the ‘control’ file - and maybe also ‘dsc’):

23s] -----------------------------------------------------------------
[   23s] ----- building photocrop_0.230112-1.dsc (user abuild)
[   23s] -----------------------------------------------------------------
[   23s] -----------------------------------------------------------------
[   23s] dpkg-buildpackage: info: source package photocrop
[   23s] dpkg-buildpackage: info: source version 0.230112-1
[   23s] dpkg-buildpackage: info: source distribution unstable
[   23s] dpkg-buildpackage: info: source changed by debtransform <>
[   23s]  dpkg-source --before-build .
[   23s] dpkg-buildpackage: info: host architecture i386
[   23s] dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 12) python3 | python3-all | python3-dev | python3-all-dev dh-python python3-gi python3-gi-cairo gir1.2-gtk-3.0 pkg-config
[   23s] dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
[   23s] dpkg-buildpackage: warning: (Use -d flag to override.)
[   23s] ### VM INTERACTION START ###
[   23s] [   15.833338][    T1] sysrq: Power Off
[   23s] [   15.834419][    T9] reboot: Power down
[   23s] ### VM INTERACTION END ###
[   23s] 
[   23s] i04-ch1d failed "build photocrop_0.230112-1.dsc" at Thu Apr  4 20:57:45 UTC 2024.
[   23s] 

control file

Source: photocrop
Section: python
Priority: extra
Maintainer: Przemysław R. Pietraszczyk
Build-Depends: debhelper-compat (= 12), python3 | python3-all | python3-dev | python3-all-dev, dh-python, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0, fakeroot, pkg-config
Standards-Version: 3.9.6

Package: photocrop
Architecture: all
Depends: ${misc:Depends}, python3-all, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0
Description: An application for cropping photos to popular paper sizes.

dsc file

Hash: SHA256

Format: 1.0
Source: photocrop
Binary: photocrop
Architecture: all
Version: 0.230112-1
Maintainer: Przemysław R. Pietraszczyk <>

DEBTRANSFORM-TAR: photocrop_0.2301012-1.tar.gz
Standards-Version: 3.9.6
Build-Depends: debhelper-compat (>= 12), python3-all, dh-python, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0, fakeroot, pkg-config
 photocrop deb x11 optional arch=all
 b31649bc23b2b7bca9ab70ea3410711a 128820 photocrop_0.230112-1.tar.gz
 29e7e7e60bc81891e3da3871b9eeb549 764 photocrop-0.230112-1.debian.tar.xz

I have another project in Python, using Tkinter, and I can’t build a package either. However, there is one success in the topic of Python packages, I managed to build a CLI package that does not have any widget libraries in the dependencies.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.