From unknown Sat Aug 16 00:30:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#73700 <73700@debbugs.gnu.org> To: bug#73700 <73700@debbugs.gnu.org> Subject: Status: python-django executable unable to find 'django' module Reply-To: bug#73700 <73700@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:30:12 +0000 retitle 73700 python-django executable unable to find 'django' module reassign 73700 guix submitter 73700 Gabriel Wicki severity 73700 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 08 04:45:49 2024 Received: (at submit) by debbugs.gnu.org; 8 Oct 2024 08:45:49 +0000 Received: from localhost ([127.0.0.1]:50869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sy5qm-0008WC-Sn for submit@debbugs.gnu.org; Tue, 08 Oct 2024 04:45:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:41766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sy5ql-0008W3-7d for submit@debbugs.gnu.org; Tue, 08 Oct 2024 04:45:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sy5qa-0008HH-0y for bug-guix@gnu.org; Tue, 08 Oct 2024 04:45:38 -0400 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sy5qW-0002xU-VZ for bug-guix@gnu.org; Tue, 08 Oct 2024 04:45:34 -0400 Received: from localhost (antispam.ee.ethz.ch [129.132.2.16]) by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id AAE7F20321 for ; Tue, 8 Oct 2024 10:45:27 +0200 (CEST) X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]) by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10028) with ESMTP id JmYf9kafIAwy for ; Tue, 8 Oct 2024 10:45:26 +0200 (CEST) Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA for ; Tue, 8 Oct 2024 10:45:26 +0200 (CEST) Date: Tue, 8 Oct 2024 10:45:23 +0200 From: Gabriel Wicki To: bug-guix@gnu.org Subject: python-django executable unable to find 'django' module Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: permerror client-ip=129.132.148.196; envelope-from=gabriel@erlikon.ch; helo=cotopaxi.ee.ethz.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Running guix shell python-django -- django-admin throws a "ModuleNotFoundError: No module named 'django'". From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 08 06:46:20 2024 Received: (at 73700) by debbugs.gnu.org; 8 Oct 2024 10:46:20 +0000 Received: from localhost ([127.0.0.1]:51241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sy7jP-0006Th-Pt for submit@debbugs.gnu.org; Tue, 08 Oct 2024 06:46:20 -0400 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:58407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sy7jM-0006TD-Sv for 73700@debbugs.gnu.org; Tue, 08 Oct 2024 06:46:17 -0400 Received: from localhost (antispam.ee.ethz.ch [129.132.2.16]) by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id 9DF9020321 for <73700@debbugs.gnu.org>; Tue, 8 Oct 2024 12:46:00 +0200 (CEST) X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]) by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10028) with ESMTP id R2nBO3JPSZFB for <73700@debbugs.gnu.org>; Tue, 8 Oct 2024 12:45:59 +0200 (CEST) Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA for <73700@debbugs.gnu.org>; Tue, 8 Oct 2024 12:45:59 +0200 (CEST) Date: Tue, 8 Oct 2024 12:45:56 +0200 From: Gabriel Wicki To: 73700@debbugs.gnu.org Subject: Re: bug#73700: Acknowledgement (python-django executable unable to find 'django' module) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73700 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The following is an obvious, simple fix. I am not sure how others regard the issue at hand i would summarize as usability vs. disk-space. IMHO usability - or shipping broken executables - should be prioritized before saving some hundred megabytes. >From 5601bbf93baf65e1f6902bf678acb9dddb9e98f1 Mon Sep 17 00:00:00 2001 Message-ID: <5601bbf93baf65e1f6902bf678acb9dddb9e98f1.1728384174.git.gabriel@erlikon.ch> From: Gabriel Wicki Date: Tue, 8 Oct 2024 12:41:14 +0200 Subject: [PATCH] gnu: python-django: Fix broken django-admin executable. * gnu/packages/django.scm (python-django) [phases]: Un-delete 'wrap phase. Change-Id: If8c3c7f7396e7865a7c0ea662845b228984a4789 --- gnu/packages/django.scm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 4404c8368d..d0e331e0aa 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -98,13 +98,7 @@ (define-public python-django-4.2 ;; Tests expect PYTHONPATH to contain the root directory. (setenv "PYTHONPATH" "..") (apply invoke "python" "runtests.py" test-flags)) - (format #t "test suite not run~%")))) - ;; XXX: The 'wrap' phase adds native inputs as runtime dependencies, - ;; see . The django-admin script typically - ;; runs in an environment that has Django and its dependencies on - ;; PYTHONPATH, so just disable the wrapper to reduce the size from - ;; ~710 MiB to ~203 MiB. - (delete 'wrap)))) + (format #t "test suite not run~%"))))))) ;; TODO: Install extras/django_bash_completion. (native-inputs (list tzdata-for-tests base-commit: d44beb9b4ad836781928a0c5667e94c0d6df13f0 -- 2.45.2