Article View: linux.debian.bugs.dist
Article #620Bug#1150721: dh-virtualenv: --builtin-venv without --python fails with TypeError
From: Nico Della Torre
Date: Mon, 12 Oct 2026 18:20
Date: Mon, 12 Oct 2026 18:20
39 lines
2854 bytes
2854 bytes
Package: dh-virtualenv
Version: 1.2.2-3
Severity: normal
Running dh_virtualenv --builtin-venv without --python makes the build
fail, because the interpreter used to create the virtualenv is None:
File "/usr/lib/python3.14/subprocess.py", line 1861, in _execute_child
and os.path.dirname(executable)
File "<frozen posixpath>", line 178, in dirname
TypeError: expected str, bytes or os.PathLike object, not NoneType
Steps to reproduce, in debian/rules:
%:
dh $@ --with python-virtualenv
override_dh_virtualenv:
dh_virtualenv --builtin-venv
--python is optional, and without it dh_virtualenv crashes instead of
reporting an error. Since the venv module is only available in
Python 3, it should fall back to the default Python 3 interpreter and
run "python3 -m venv".
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.2.9+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Technical Details
Message-ID:
<NNsMV-57uw-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Nico Della Torre <nicoz91@ubuntu.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150721: dh-virtualenv: --builtin-venv without --python fails with TypeError Date: Mon, 12 Oct 2026 20:20:01 +0200 Message-ID: <NNsMV-57uw-9@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 12 18:11:16 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Nico Della Torre <nicoz91@ubuntu.com>, 1150721@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+python@tracker.debian.org X-Debian-Pr-Message: report 1150721 X-Debian-Pr-Package: dh-virtualenv X-Debian-Pr-Source: dh-virtualenv Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0+nmu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996442 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 39 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 12 Oct 2026 20:09:03 +0200 X-Original-Message-ID: <179182854361.89857.3473667616058844835.reportbug@ryzendeb.linuxlab>