unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* backtrace: guix import egg srfi-1
@ 2022-04-05 22:48 jgart
  2022-04-29 16:56 ` zimoun
  0 siblings, 1 reply; 2+ messages in thread
From: jgart @ 2022-04-05 22:48 UTC (permalink / raw)
  To: Guix Help

Hi Guixers,

Just wanted to share this backtrace I got when trying to use the chicken importer:

```
 λ guix import egg srfi-1
Backtrace:
In ice-9/boot-9.scm:
  1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           9 (apply-smob/0 #<thunk 7f942f09e2e0>)
In ice-9/boot-9.scm:
    724:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  7 (_ #(#(#<directory (guile-user) 7f942f0a3c80>)))
In guix/ui.scm:
   2247:7  6 (run-guix . _)
  2210:10  5 (run-guix-command _ . _)
In guix/scripts/import.scm:
   124:11  4 (guix-import . _)
In guix/scripts/import/egg.scm:
    98:26  3 (guix-import-egg . _)
In guix/import/egg.scm:
   193:26  2 (egg->guix-package "srf-1" #f #:file _ #:source _)
   120:29  1 (egg-metadata "srf-1" #:version _ #:file _)
In unknown file:
           0 (string-append "/home/jgart/.cache/guix/checkouts/exkl…" …)

ERROR: In procedure string-append:
In procedure string-append: Wrong type (expecting string): #f
```

Here' another:

```
 λ guix import egg srfi-11
Backtrace:
In ice-9/boot-9.scm:
  1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           9 (apply-smob/0 #<thunk 7fd9d5d922e0>)
In ice-9/boot-9.scm:
    724:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  7 (_ #(#(#<directory (guile-user) 7fd9d5d97c80>)))
In guix/ui.scm:
   2247:7  6 (run-guix . _)
  2210:10  5 (run-guix-command _ . _)
In guix/scripts/import.scm:
   124:11  4 (guix-import . _)
In guix/scripts/import/egg.scm:
    98:26  3 (guix-import-egg . _)
In guix/import/egg.scm:
   193:26  2 (egg->guix-package "srfi-11" #f #:file _ #:source _)
   120:29  1 (egg-metadata "srfi-11" #:version _ #:file _)
In unknown file:
           0 (string-append "/home/jgart/.cache/guix/checkouts/exkl…" …)

ERROR: In procedure string-append:
In procedure string-append: Wrong type (expecting string): #f

```

Should a condition or exception be added for handling these cases?

all best,

jgart


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: backtrace: guix import egg srfi-1
  2022-04-05 22:48 backtrace: guix import egg srfi-1 jgart
@ 2022-04-29 16:56 ` zimoun
  0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2022-04-29 16:56 UTC (permalink / raw)
  To: jgart, Guix Help

Hi,

On Tue, 05 Apr 2022 at 18:48, jgart <jgart@dismail.de> wrote:

>  λ guix import egg srfi-1

It works for me.

--8<---------------cut here---------------start------------->8---
$ guix import egg srfi-1

Starting download of /tmp/guix-file.04O0k8
From https://code.call-cc.org/egg-tarballs/5/srfi-1/srfi-1-0.5.1.tar.gz...
 …5.1.tar.gz  24KiB                   1.2MiB/s 00:00 [##################] 100.0%
(package
  (name "chicken-srfi-1")
  (version "0.5.1")
  (source
    (origin
      (method url-fetch)
      (uri (egg-uri "srfi-1" version))
      (sha256
        (base32 "03cjp5dvclwkqxr7kp486smagfh44jzzs5k61wkk1k8p7qhcm4k5"))))
  (build-system chicken-build-system)
  (arguments `(#:egg-name "srfi-1"))
  (native-inputs (list chicken-test))
  (home-page "https://wiki.call-cc.org/egg/srfi-1")
  (synopsis "SRFI-1 list library")
  (description #f)
  (license license:bsd?))
--8<---------------cut here---------------end--------------->8---


>  λ guix import egg srfi-11

[...]

>            0 (string-append "/home/jgart/.cache/guix/checkouts/exkl…" …)

No srfi-11 in the repo.

--8<---------------cut here---------------start------------->8---
ls -1 ~/.cache/guix/checkouts/exklapn6sgtprzzjgwrlvhrcb2wwknzjjqd4yvlkcnisbkhhuavq/ | grep srfi-1
srfi-1
srfi-101
srfi-105
srfi-111
srfi-113
srfi-116
srfi-117
srfi-121
srfi-123
srfi-127
srfi-128
srfi-13
srfi-130
srfi-132
srfi-133
srfi-134
srfi-135
srfi-137
srfi-14
srfi-141
srfi-143
srfi-144
srfi-145
srfi-146
srfi-151
srfi-152
srfi-158
srfi-160
srfi-171
srfi-173
srfi-178
srfi-179
srfi-18
srfi-189
srfi-19
srfi-193
srfi-196
srfi-197
--8<---------------cut here---------------end--------------->8---


Well, in addition, srfi-113 does not work for me.

--8<---------------cut here---------------start------------->8---
$ guix import egg srfi-113
Backtrace:
           7 (primitive-load "/home/simon/.config/guix/current/bin/guix")
In guix/ui.scm:
   2230:7  6 (run-guix . _)
  2193:10  5 (run-guix-command _ . _)
In guix/scripts/import.scm:
   124:11  4 (guix-import . _)
In guix/scripts/import/egg.scm:
    98:26  3 (guix-import-egg . _)
In guix/import/egg.scm:
   193:26  2 (egg->guix-package "srfi-113" #f #:file _ #:source _)
In ice-9/ports.scm:
   450:11  1 (call-with-input-file "/home/simon/.cache/guix/checkouts/exklapn6sgtprzzjgwrlvhrcb2wwknzjjqd4yvlkcnisbkhhuavq/srfi-113/0.9/srfi-113.egg" #<…> …)
In unknown file:
           0 (open-file "/home/simon/.cache/guix/checkouts/exklapn6sgtprzzjgwrlvhrcb2wwknzjjqd4yvlkcnisbkhhuavq/srfi-113/0.9/srfi-113.egg" "r" #:encoding …)

ERROR: In procedure open-file:
In procedure open-file: No such file or directory: "/home/simon/.cache/guix/checkouts/exklapn6sgtprzzjgwrlvhrcb2wwknzjjqd4yvlkcnisbkhhuavq/srfi-113/0.9/srfi-113.egg"
--8<---------------cut here---------------end--------------->8---

Roughly speaking, here all the eggs that fail for me:

        dust
        hahn
        http-session
        monad
        postgresql
        scm2wiki
        spiffy-request-vars
        sql-null
        srfi-113
        stb-image-resize
        stb-image-write
        ws-client

find with,

--8<---------------cut here---------------start------------->8---
$ for i in $(ls --color=no -1 ~/.cache/guix/checkouts/exklapn6sgtprzzjgwrlvhrcb2wwknzjjqd4yvlkcnisbkhhuavq/);
   do
     guix import egg $i 1>/dev/null 2>/dev/null ;
     echo $i $?
   ;done | grep 1
--8<---------------cut here---------------end--------------->8---


Maybe it is worth to open a bug report.  Please do. :-)


Cheers,
simon


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-29 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 22:48 backtrace: guix import egg srfi-1 jgart
2022-04-29 16:56 ` zimoun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).