GNU bug report logs -
#73700
python-django executable unable to find 'django' module
Previous Next
To reply to this bug, email your comments to 73700 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#73700
; Package
guix
.
(Tue, 08 Oct 2024 08:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gabriel Wicki <gabriel <at> erlikon.ch>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Tue, 08 Oct 2024 08:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Running
guix shell python-django -- django-admin
throws a "ModuleNotFoundError: No module named 'django'".
Information forwarded
to
bug-guix <at> gnu.org
:
bug#73700
; Package
guix
.
(Tue, 08 Oct 2024 10:47:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 73700 <at> debbugs.gnu.org (full text, mbox):
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 <at> erlikon.ch>
From: Gabriel Wicki <gabriel <at> erlikon.ch>
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 <https://bugs.gnu.org/25235>. 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
This bug report was last modified 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.