GNU bug report logs -
#43331
guix repl doesn't find the script to execute
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43331 in the body.
You can then email your comments to 43331 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#43331
; Package
guix
.
(Fri, 11 Sep 2020 11:07:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Konrad Hinsen <konrad.hinsen <at> fastmail.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 11 Sep 2020 11:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Example:
$ guix repl moocrr_guix_jupyter/installed-dependencies.scm
Backtrace:
1 (primitive-load-path "./moocrr_guix_jupyter/installed-d…")
In ice-9/boot-9.scm:
1669:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure primitive-load-path: Unable to find file "./moocrr_guix_jupyter/installed-dependencies.scm" in load path
But the file is there:
$ ls -l moocrr_guix_jupyter/installed-dependencies.scm
-rw-r--r-- 1 hinsen users 783 Sep 11 12:43 moocrr_guix_jupyter/installed-dependencies.scm
And when given the absolute path, guix finds it as well:
$ guix repl `pwd`/moocrr_guix_jupyter/installed-dependencies.scm
122 packages:
cairo <at> 1.16.0
expat <at> 2.2.9
...
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43331
; Package
guix
.
(Fri, 11 Sep 2020 11:14:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 43331 <at> debbugs.gnu.org (full text, mbox):
* guix/scripts/repl.scm (guix-repl): Replace "." by (getcwd)
---
guix/scripts/repl.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 3c79e89f8d..80bf1460e9 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -178,7 +178,7 @@ call THUNK."
(lambda ()
(set-program-arguments script)
(set-user-module)
- (load-in-vicinity "." (car script)))))
+ (load-in-vicinity (getcwd) (car script)))))
(when (null? script)
;; Start REPL
--
2.28.0
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43331
; Package
guix
.
(Fri, 11 Sep 2020 11:16:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 43331 <at> debbugs.gnu.org (full text, mbox):
The patch that I just submitted fixes the problem. However,
I don't really know what the cause of the bug is, given
that load-in-vicinity is undocumented and I don't fully
understand its implementation. So maybe there is a better
way to fix this.
Konrad.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43331
; Package
guix
.
(Fri, 11 Sep 2020 11:20:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 43331 <at> debbugs.gnu.org (full text, mbox):
Hi Konrad,
It sounds similar to the recent #42543 [1]. I proposed the fix [2]
using 'canonicalize-path' but Ludo was not fine with it and then
committed d10474c38d58bdc676e64336769dc2e00cdfa8ed [3].
[1] http://issues.guix.gnu.org/42543
[2] http://issues.guix.gnu.org/42543#3
[3] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d10474c38d58bdc676e64336769dc2e00cdfa8ed
Does it make sense?
Cheers,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43331
; Package
guix
.
(Fri, 11 Sep 2020 15:33:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 43331 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
> It sounds similar to the recent #42543 [1]. I proposed the fix [2]
> using 'canonicalize-path' but Ludo was not fine with it and then
> committed d10474c38d58bdc676e64336769dc2e00cdfa8ed [3].
Thanks for the references, all that happened while I was on vacation.
There is indeed some parallel, but also an important difference:
the -L option requires searching LOADPATH plus following local relative
filenames. "guix repl" does not search LOADPATH.
But I am happy I didn't use 'canonicalize-path' in my patch ;-)
Cheers,
Konrad.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 16 Sep 2020 13:37:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Konrad Hinsen <konrad.hinsen <at> fastmail.net>
:
bug acknowledged by developer.
(Wed, 16 Sep 2020 13:37:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 43331-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:
> * guix/scripts/repl.scm (guix-repl): Replace "." by (getcwd)
> ---
> guix/scripts/repl.scm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
> index 3c79e89f8d..80bf1460e9 100644
> --- a/guix/scripts/repl.scm
> +++ b/guix/scripts/repl.scm
> @@ -178,7 +178,7 @@ call THUNK."
> (lambda ()
> (set-program-arguments script)
> (set-user-module)
> - (load-in-vicinity "." (car script)))))
> + (load-in-vicinity (getcwd) (car script)))))
I added a test and a comment and applied.
Thank you!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 15 Oct 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.