all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* crate importer throws
@ 2022-10-11 21:39 jgart
  2022-10-12  9:09 ` Csepp
  2022-10-12 12:24 ` Maxime Devos
  0 siblings, 2 replies; 12+ messages in thread
From: jgart @ 2022-10-11 21:39 UTC (permalink / raw)
  To: Guix Devel

```
 λ guix import crate the-way
;;; Failed to autoload string->semver-range in (semver ranges):
;;; no code for module (semver ranges)
Backtrace:
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           8 (apply-smob/0 #<thunk 7f6f033b62e0>)
In ice-9/boot-9.scm:
    724:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  6 (_ #(#(#<directory (guile-user) 7f6f033bbc80>)))
In guix/ui.scm:
   2263:7  5 (run-guix . _)
  2226:10  4 (run-guix-command _ . _)
In guix/scripts/import.scm:
    92:11  3 (guix-import . _)
In guix/scripts/import/crate.scm:
    95:24  2 (guix-import-crate . _)
In guix/import/crate.scm:
    287:9  1 (crate->guix-package "the-way" #:version _ # _ #:repo _)
   260:26  0 (find-crate-version #<<crate> name: "the-way" latest-v…> …)

guix/import/crate.scm:260:26: In procedure find-crate-version:
error: string->semver-range: unbound variable
```

WDYT



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

* Re: crate importer throws
  2022-10-11 21:39 crate importer throws jgart
@ 2022-10-12  9:09 ` Csepp
  2022-10-12 12:24 ` Maxime Devos
  1 sibling, 0 replies; 12+ messages in thread
From: Csepp @ 2022-10-12  9:09 UTC (permalink / raw)
  To: jgart; +Cc: guix-devel


jgart <jgart@dismail.de> writes:

> ```
>  λ guix import crate the-way
> ;;; Failed to autoload string->semver-range in (semver ranges):
> ;;; no code for module (semver ranges)
> Backtrace:
> In ice-9/boot-9.scm:
>   1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            8 (apply-smob/0 #<thunk 7f6f033b62e0>)
> In ice-9/boot-9.scm:
>     724:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 7f6f033bbc80>)))
> In guix/ui.scm:
>    2263:7  5 (run-guix . _)
>   2226:10  4 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>     92:11  3 (guix-import . _)
> In guix/scripts/import/crate.scm:
>     95:24  2 (guix-import-crate . _)
> In guix/import/crate.scm:
>     287:9  1 (crate->guix-package "the-way" #:version _ # _ #:repo _)
>    260:26  0 (find-crate-version #<<crate> name: "the-way" latest-v…> …)
>
> guix/import/crate.scm:260:26: In procedure find-crate-version:
> error: string->semver-range: unbound variable
> ```
>
> WDYT

Try re-running it with guile-semver in the environment:
guix shell guile-semver -- guix import crate the-way


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

* Re: crate importer throws
  2022-10-11 21:39 crate importer throws jgart
  2022-10-12  9:09 ` Csepp
@ 2022-10-12 12:24 ` Maxime Devos
  2022-10-12 15:50   ` jgart
  1 sibling, 1 reply; 12+ messages in thread
From: Maxime Devos @ 2022-10-12 12:24 UTC (permalink / raw)
  To: jgart, Guix Devel


[-- Attachment #1.1.1: Type: text/plain, Size: 1232 bytes --]



On 11-10-2022 23:39, jgart wrote:
> ```
>   λ guix import crate the-way
> ;;; Failed to autoload string->semver-range in (semver ranges):
> ;;; no code for module (semver ranges)
> Backtrace:
> In ice-9/boot-9.scm:
>    1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>             8 (apply-smob/0 #<thunk 7f6f033b62e0>)
> In ice-9/boot-9.scm:
>      724:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>      619:8  6 (_ #(#(#<directory (guile-user) 7f6f033bbc80>)))
> In guix/ui.scm:
>     2263:7  5 (run-guix . _)
>    2226:10  4 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>      92:11  3 (guix-import . _)
> In guix/scripts/import/crate.scm:
>      95:24  2 (guix-import-crate . _)
> In guix/import/crate.scm:
>      287:9  1 (crate->guix-package "the-way" #:version _ # _ #:repo _)
>     260:26  0 (find-crate-version #<<crate> name: "the-way" latest-v…> …)
> 
> guix/import/crate.scm:260:26: In procedure find-crate-version:
> error: string->semver-range: unbound variable
> ```
> 
> WDYT

I think it should ask to run in an environment with "guile-semver" in a 
nice error message.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* Re: crate importer throws
  2022-10-12 12:24 ` Maxime Devos
@ 2022-10-12 15:50   ` jgart
  2022-10-12 21:51     ` Csepp
  2022-10-13  8:47     ` Maxime Devos
  0 siblings, 2 replies; 12+ messages in thread
From: jgart @ 2022-10-12 15:50 UTC (permalink / raw)
  To: Maxime Devos; +Cc: Guix Devel

On Wed, 12 Oct 2022 14:24:26 +0200 Maxime Devos <maximedevos@telenet.be> wrote:

That still throws:

guix shell guile-semver -- guix import crate the-way
;;; Failed to autoload string->semver-range in (semver ranges):
;;; no code for module (semver ranges)
Backtrace:
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           8 (apply-smob/0 #<thunk 7fee216872e0>)
In ice-9/boot-9.scm:
    724:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  6 (_ #(#(#<directory (guile-user) 7fee2168cc80>)))
In guix/ui.scm:
   2263:7  5 (run-guix . _)
  2226:10  4 (run-guix-command _ . _)
In guix/scripts/import.scm:
    92:11  3 (guix-import . _)
In guix/scripts/import/crate.scm:
    95:24  2 (guix-import-crate . _)
In guix/import/crate.scm:
    287:9  1 (crate->guix-package "the-way" #:version _ # _ #:repo _)
   260:26  0 (find-crate-version #<<crate> name: "the-way" latest-v…> …)

guix/import/crate.scm:260:26: In procedure find-crate-version:
error: string->semver-range: unbound variable


WDYT


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

* Re: crate importer throws
  2022-10-12 15:50   ` jgart
@ 2022-10-12 21:51     ` Csepp
  2022-10-15 11:18       ` Maxime Devos
  2022-10-13  8:47     ` Maxime Devos
  1 sibling, 1 reply; 12+ messages in thread
From: Csepp @ 2022-10-12 21:51 UTC (permalink / raw)
  To: jgart; +Cc: Maxime Devos, guix-devel


jgart <jgart@dismail.de> writes:

> On Wed, 12 Oct 2022 14:24:26 +0200 Maxime Devos <maximedevos@telenet.be> wrote:
>
> That still throws:
>
> guix shell guile-semver -- guix import crate the-way
> ;;; Failed to autoload string->semver-range in (semver ranges):
> ;;; no code for module (semver ranges)
> Backtrace:
> In ice-9/boot-9.scm:
>   1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            8 (apply-smob/0 #<thunk 7fee216872e0>)
> In ice-9/boot-9.scm:
>     724:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 7fee2168cc80>)))
> In guix/ui.scm:
>    2263:7  5 (run-guix . _)
>   2226:10  4 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>     92:11  3 (guix-import . _)
> In guix/scripts/import/crate.scm:
>     95:24  2 (guix-import-crate . _)
> In guix/import/crate.scm:
>     287:9  1 (crate->guix-package "the-way" #:version _ # _ #:repo _)
>    260:26  0 (find-crate-version #<<crate> name: "the-way" latest-v…> …)
>
> guix/import/crate.scm:260:26: In procedure find-crate-version:
> error: string->semver-range: unbound variable
>
>
> WDYT

Weird, that exact command worked for me, but it's likely we are on
different commits.  And yes, the error message could be clearer,
although I'm not sure where that should be fixed.  Guile doesn't know
what packages correspond to what modules and it should probably stay
that way.

```
$ guix describe
Generation 162	Oct 01 2022 00:15:38	(current)
  guix 1266b9e
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1266b9ed111bff7b860cba6921e4540bc1f61c9e
```


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

* Re: crate importer throws
  2022-10-12 15:50   ` jgart
  2022-10-12 21:51     ` Csepp
@ 2022-10-13  8:47     ` Maxime Devos
  2022-10-14 23:35       ` Csepp
  1 sibling, 1 reply; 12+ messages in thread
From: Maxime Devos @ 2022-10-13  8:47 UTC (permalink / raw)
  To: jgart; +Cc: Guix Devel


[-- Attachment #1.1.1: Type: text/plain, Size: 761 bytes --]



On 12-10-2022 17:50, jgart wrote:
> On Wed, 12 Oct 2022 14:24:26 +0200 Maxime Devos <maximedevos@telenet.be> wrote:
> 
> That still throws:
> 
> guix shell guile-semver -- guix import crate the-way
> [...] 
> WDYT

I think you need to add 'guile' as well (profiles don't properly compose 
yet w.r.t. search paths):

$ guix shell guile guile-semver -- guix import crate the-way

Can't reproduce locally though ('guix import crate the-way' works for me 
even without 'guix shell guile guile-semver').

$ guix describe
Generatie 14	18:45:20 10 okt 2022	(huidig)
   guix f0a6aaf
     bewaarplaats-URL: https://git.savannah.gnu.org/git/guix.git
     tak: master
     commit: f0a6aafa22c2e7c7f33786dd7de7083a64401d01

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* Re: crate importer throws
  2022-10-13  8:47     ` Maxime Devos
@ 2022-10-14 23:35       ` Csepp
  2022-10-15 11:10         ` Maxime Devos
  0 siblings, 1 reply; 12+ messages in thread
From: Csepp @ 2022-10-14 23:35 UTC (permalink / raw)
  To: Maxime Devos; +Cc: jgart, guix-devel


Maxime Devos <maximedevos@telenet.be> writes:

> [[PGP Signed Part:Undecided]]
>
>
> On 12-10-2022 17:50, jgart wrote:
>> On Wed, 12 Oct 2022 14:24:26 +0200 Maxime Devos <maximedevos@telenet.be> wrote:
>> That still throws:
>> guix shell guile-semver -- guix import crate the-way
>> [...] WDYT
>
> I think you need to add 'guile' as well (profiles don't properly
> compose yet w.r.t. search paths):
>
> $ guix shell guile guile-semver -- guix import crate the-way
>
> Can't reproduce locally though ('guix import crate the-way' works for
> me even without 'guix shell guile guile-semver').
>
> $ guix describe
> Generatie 14	18:45:20 10 okt 2022	(huidig)
>   guix f0a6aaf
>     bewaarplaats-URL: https://git.savannah.gnu.org/git/guix.git
>     tak: master
>     commit: f0a6aafa22c2e7c7f33786dd7de7083a64401d01
>
> Greetings,
> Maxime.
>
> [2. OpenPGP public key --- application/pgp-keys; OpenPGP_0x49E3EE22191725EE.asc]...
>
> [[End of PGP Signed Part]]

This works without adding guile:
guix shell --pure guile-semver -- "$(which guix)" import crate the-way
Any idea why?  I didn't add guix to the shell because I wanted it to use
the same guix profile.


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

* Re: crate importer throws
  2022-10-14 23:35       ` Csepp
@ 2022-10-15 11:10         ` Maxime Devos
  2022-10-15 12:58           ` Csepp
  0 siblings, 1 reply; 12+ messages in thread
From: Maxime Devos @ 2022-10-15 11:10 UTC (permalink / raw)
  To: Csepp; +Cc: jgart, guix-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 646 bytes --]



On 15-10-2022 01:35, Csepp wrote:
of PGP Signed Part]]
>[...] 
> This works without adding guile:
> guix shell --pure guile-semver -- "$(which guix)" import crate the-way
> Any idea why?  I didn't add guix to the shell because I wanted it to use
> the same guix profile.

"guix shell --pure guile-semver" resets all environment variables, no 
search path is set.

Could you check if

$ guix shell --pure -- "$(which guix)" import crate the-way

(i.e. a pure environment without any packages) works for you?  Maybe 
somehow there is some other guile-semver in your usual environment that 
breaks Guix.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* Re: crate importer throws
  2022-10-12 21:51     ` Csepp
@ 2022-10-15 11:18       ` Maxime Devos
  0 siblings, 0 replies; 12+ messages in thread
From: Maxime Devos @ 2022-10-15 11:18 UTC (permalink / raw)
  To: Csepp, jgart; +Cc: guix-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 726 bytes --]



On 12-10-2022 23:51, Csepp wrote:
> And yes, the error message could be clearer,
> although I'm not sure where that should be fixed.

How about in the Guix code that uses the semver stuff?

> Guile doesn't know
> what packages correspond to what modules and it should probably stay
> that way.

It doesn't need to know, e.g. Guix could do

(define-module (whatever) #:autoload (bar) (foo))

(define (foo-if-available)
   (catch 'unbound-variable
     (lambda () foo)
     (lambda _ #false)))

[...]

(define (stuff)
   (define foo (foo-if-available))
   (unless foo
     (error "To use \"guix import crate\", you need to install 
guile-semver"))
   [... use foo ...])

Greetings,
Maxime.



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* Re: crate importer throws
  2022-10-15 11:10         ` Maxime Devos
@ 2022-10-15 12:58           ` Csepp
  2022-10-19 19:37             ` Efraim Flashner
  0 siblings, 1 reply; 12+ messages in thread
From: Csepp @ 2022-10-15 12:58 UTC (permalink / raw)
  To: Maxime Devos; +Cc: Csepp, jgart, guix-devel


Maxime Devos <maximedevos@telenet.be> writes:

> Could you check if
>
> $ guix shell --pure -- "$(which guix)" import crate the-way
>
> (i.e. a pure environment without any packages) works for you?  Maybe
> somehow there is some other guile-semver in your usual environment
> that breaks Guix.

Weirdly enough it works.
...oh it also works without importing guile-semver.
HhmmMM!
Maybe my channels config makes a difference?


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

* Re: crate importer throws
  2022-10-15 12:58           ` Csepp
@ 2022-10-19 19:37             ` Efraim Flashner
  2022-10-20 12:56               ` Csepp
  0 siblings, 1 reply; 12+ messages in thread
From: Efraim Flashner @ 2022-10-19 19:37 UTC (permalink / raw)
  To: Csepp; +Cc: Maxime Devos, jgart, guix-devel

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

On Sat, Oct 15, 2022 at 02:58:53PM +0200, Csepp wrote:
> 
> Maxime Devos <maximedevos@telenet.be> writes:
> 
> > Could you check if
> >
> > $ guix shell --pure -- "$(which guix)" import crate the-way
> >
> > (i.e. a pure environment without any packages) works for you?  Maybe
> > somehow there is some other guile-semver in your usual environment
> > that breaks Guix.
> 
> Weirdly enough it works.
> ...oh it also works without importing guile-semver.
> HhmmMM!
> Maybe my channels config makes a difference?

More likely something in your .bashrc

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: crate importer throws
  2022-10-19 19:37             ` Efraim Flashner
@ 2022-10-20 12:56               ` Csepp
  0 siblings, 0 replies; 12+ messages in thread
From: Csepp @ 2022-10-20 12:56 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: Csepp, Maxime Devos, jgart, guix-devel


Efraim Flashner <efraim@flashner.co.il> writes:

> [[PGP Signed Part:Undecided]]
> On Sat, Oct 15, 2022 at 02:58:53PM +0200, Csepp wrote:
>> 
>> Maxime Devos <maximedevos@telenet.be> writes:
>> 
>> > Could you check if
>> >
>> > $ guix shell --pure -- "$(which guix)" import crate the-way
>> >
>> > (i.e. a pure environment without any packages) works for you?  Maybe
>> > somehow there is some other guile-semver in your usual environment
>> > that breaks Guix.
>> 
>> Weirdly enough it works.
>> ...oh it also works without importing guile-semver.
>> HhmmMM!
>> Maybe my channels config makes a difference?
>
> More likely something in your .bashrc

It's a standard Guix System bashrc and bash_profile.
...oh, I actually use zsh, so not sure why I even checked that.  But
yeah, that is not customized much either, I just added the GRML config.


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

end of thread, other threads:[~2022-10-20 15:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-11 21:39 crate importer throws jgart
2022-10-12  9:09 ` Csepp
2022-10-12 12:24 ` Maxime Devos
2022-10-12 15:50   ` jgart
2022-10-12 21:51     ` Csepp
2022-10-15 11:18       ` Maxime Devos
2022-10-13  8:47     ` Maxime Devos
2022-10-14 23:35       ` Csepp
2022-10-15 11:10         ` Maxime Devos
2022-10-15 12:58           ` Csepp
2022-10-19 19:37             ` Efraim Flashner
2022-10-20 12:56               ` Csepp

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.