Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Nico Della Torre
Mon, 12 Oct 2026 18:20
Bug#1150721: dh-virtualenv: --builtin-venv without --python fails with TypeError
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads