unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33279: guile-readline: error: no code for module
@ 2018-11-05 20:14 swedebugia
  2018-11-06 11:36 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: swedebugia @ 2018-11-05 20:14 UTC (permalink / raw)
  To: 33279

Hi

Found another error :p

This time after installing guile-readline it is not imediately available 
to guile even though it is available in the path. Weird.

Install:

sdb@komputilo ~$ guix package -i guile-readline 
--substitute-urls=http://berlin.guixsd.org
The following package will be installed:
    guile-readline    2.2.3 
/gnu/store/i0nqs30zn0bdij5zwagqx1chcdk460ai-guile-readline-2.2.3

substitute: updating substitutes from 'http://berlin.guixsd.org'... 100.0%
The following derivations will be built:
    /gnu/store/rfaxkh0khj8b6f2fgj6s0yq1s7db4aak-profile.drv
/gnu/store/y6vzf4vlmigyhvy1mh0s1ybbajaiq9dr-ca-certificate-bundle.drv
    /gnu/store/kybcp4pvjvz7xiwgzyv5x93ccszp1zv4-info-dir.drv
    /gnu/store/90a77pf8006r914ma7f4wzn95ncqr3lq-fonts-dir.drv
    /gnu/store/m1scixlkly42c6ckrn833h1kklbw0b41-manual-database.drv
Creating manual page database...
190 entries processed in 1.0 s
7 packages in profile

**NOTE: no env variables suggested**

Try to use it:

$ guile -c '(use-modules (ice-9 readline))'
Backtrace:
           13 (apply-smob/1 #<catch-closure 1ac4280>)
In ice-9/boot-9.scm:
     705:2 12 (call-with-prompt ("prompt") #<procedure 1acf0a0 at ic…> …)
In ice-9/eval.scm:
     619:8 11 (_ #(#(#<directory (guile-user) 1b83140>)))
In ice-9/command-line.scm:
    181:18 10 (_ #<input: string 1ba0a80>)
In unknown file:
            9 (eval (use-modules (ice-9 readline)) #<directory (guile…>)
In ice-9/eval.scm:
    721:20  8 (primitive-eval (use-modules (ice-9 readline)))
In ice-9/psyntax.scm:
   1235:36  7 (expand-top-sequence ((use-modules (ice-9 readline))) _ …)
   1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
    285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) …)
In ice-9/boot-9.scm:
   3365:20  4 (process-use-modules _)
    222:17  3 (map1 (((ice-9 readline))))
   3366:31  2 (_ ((ice-9 readline)))
    2791:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
In unknown file:
            0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)

ERROR: In procedure scm-error:
no code for module (ice-9 readline)

--

sdb@komputilo ~$ guix --version
guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76

sdb@komputilo ~$ guix package -I
openssh    7.7p1    out 
/gnu/store/1lp98789cd5h1f1hv8z9bhbirvnaax5x-openssh-7.7p1
nss    3.36.1    out /gnu/store/lv63vga40p1g9bc8c8zxsjybxmqsdrgz-nss-3.36.1
guile-readline    2.2.3    out 
/gnu/store/i0nqs30zn0bdij5zwagqx1chcdk460ai-guile-readline-2.2.3
file    5.32    out /gnu/store/pky001r9bbcrqvv3gdgvjj8b56hhifpv-file-5.32
wget    1.19.5    out 
/gnu/store/7jd4nbdamp5bjvvi9acnk4nkk2dzyi71-wget-1.19.5
git    2.18.0    out /gnu/store/w9qwlwpfmhkyj6rqk3rvkk1a89vmymqf-git-2.18.0
git    2.18.0    send-email 
/gnu/store/pvj35w3xlfvxdw3gljxxba2xjm2v7958-git-2.18.0-send-email

sdb@komputilo ~$ guile --version
guile (GNU Guile) 2.2.3

sdb@komputilo ~$ env |grep guile
GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2
GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2

sdb@komputilo ~$ file 
.guix-profile/lib/guile/2.2/site-ccache/ice-9/readline.go
.guix-profile/lib/guile/2.2/site-ccache/ice-9/readline.go: ELF 64-bit 
LSB shared object, no machine, version 1 (embedded), dynamically linked, 
with debug_info, not stripped

--

exporting these variables did not help:

$ export GUILE_LOAD_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_PATH
$ export 
GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_COMPILED_PATH

Any ideas?

-- 
Cheers
Swedebugia

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

* bug#33279: guile-readline: error: no code for module
  2018-11-05 20:14 bug#33279: guile-readline: error: no code for module swedebugia
@ 2018-11-06 11:36 ` Ludovic Courtès
  2018-11-06 19:05   ` swedebugia
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2018-11-06 11:36 UTC (permalink / raw)
  To: swedebugia; +Cc: 33279-done

Hello,

swedebugia <swedebugia@riseup.net> skribis:

> exporting these variables did not help:
>
> $ export GUILE_LOAD_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_PATH
> $ export
> GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_COMPILED_PATH

Rather you need:

  export GUILE_LOAD_PATH=~/.guix-profile/share/guile/site/2.2:$GUILE_LOAD_PATH
  export GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH

Better yet, you can install both ‘guile’ and ‘guile-readline’ in the
same profile and you’ll get a message telling you what to do:

--8<---------------cut here---------------start------------->8---
$ guix package -p foo -i guile guile-readline

[...]

La jenaj medi-variablaj difinoj povos esti necesaj:
   export PATH="foo/bin${PATH:+:}$PATH"
   export GUILE_LOAD_PATH="foo/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
   export GUILE_LOAD_COMPILED_PATH="foo/lib/guile/2.2/site-ccache:foo/share/guile/site/2.2${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
--8<---------------cut here---------------end--------------->8---

HTH!

Ludo’.

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

* bug#33279: guile-readline: error: no code for module
  2018-11-06 11:36 ` Ludovic Courtès
@ 2018-11-06 19:05   ` swedebugia
  2018-11-06 20:14     ` Marius Bakke
  0 siblings, 1 reply; 6+ messages in thread
From: swedebugia @ 2018-11-06 19:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 33279-done

Saluton :)

On 2018-11-06 12:36, Ludovic Courtès wrote:
> Hello,
>
> swedebugia <swedebugia@riseup.net> skribis:
>
>> exporting these variables did not help:
>>
>> $ export GUILE_LOAD_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_PATH
>> $ export
>> GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_COMPILED_PATH
> Rather you need:
>
>    export GUILE_LOAD_PATH=~/.guix-profile/share/guile/site/2.2:$GUILE_LOAD_PATH
>    export GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH
>
> Better yet, you can install both ‘guile’ and ‘guile-readline’ in the
> same profile and you’ll get a message telling you what to do:

Thanks for the tip! I only installed guile-readline and it did not emit 
any environment variable suggestions.

Could we make all guile-* packages emit this suggestion?

-- 
Cheers
Swedebugia

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

* bug#33279: guile-readline: error: no code for module
  2018-11-06 19:05   ` swedebugia
@ 2018-11-06 20:14     ` Marius Bakke
  2018-11-07 16:40       ` bug#33279: GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH on GuixSD Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Marius Bakke @ 2018-11-06 20:14 UTC (permalink / raw)
  To: swedebugia, Ludovic Courtès; +Cc: 33279-done

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

swedebugia <swedebugia@riseup.net> writes:

> Saluton :)
>
> On 2018-11-06 12:36, Ludovic Courtès wrote:
>> Hello,
>>
>> swedebugia <swedebugia@riseup.net> skribis:
>>
>>> exporting these variables did not help:
>>>
>>> $ export GUILE_LOAD_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_PATH
>>> $ export
>>> GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/:$GUILE_LOAD_COMPILED_PATH
>> Rather you need:
>>
>>    export GUILE_LOAD_PATH=~/.guix-profile/share/guile/site/2.2:$GUILE_LOAD_PATH
>>    export GUILE_LOAD_COMPILED_PATH=~/.guix-profile/lib/guile/2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH
>>
>> Better yet, you can install both ‘guile’ and ‘guile-readline’ in the
>> same profile and you’ll get a message telling you what to do:
>
> Thanks for the tip! I only installed guile-readline and it did not emit 
> any environment variable suggestions.
>
> Could we make all guile-* packages emit this suggestion?

This limitation is the same as <https://bugs.gnu.org/22138>.

Alas, no good solution have surfaced.  Perhaps we need a
"propagated-search-paths" package record or similar?

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

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

* bug#33279: GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH on GuixSD
  2018-11-06 20:14     ` Marius Bakke
@ 2018-11-07 16:40       ` Ludovic Courtès
  2018-11-07 17:08         ` swedebugia
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2018-11-07 16:40 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 33279-done

Marius Bakke <mbakke@fastmail.com> skribis:

> swedebugia <swedebugia@riseup.net> writes:

[...]

>> Could we make all guile-* packages emit this suggestion?
>
> This limitation is the same as <https://bugs.gnu.org/22138>.

It’s actually a different issue here: the profile contains packages that
provide share/guile/2.2, but the same profile doesn’t contain any
package that “claims” share/guile/2.2.  Thus, everything is working
according to plan, so to speak.

I understand this particular case is confusing though.  It’s confusing
because Guile is already installed, albeit in another profile.

What we could do to avoid this confusion is pre-define GUILE_LOAD_PATH
and GUILE_LOAD_COMPILED_PATH in /etc/profile, just like we do for
INFOPATH et al.

WDYT?

Ludo’.

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

* bug#33279: GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH on GuixSD
  2018-11-07 16:40       ` bug#33279: GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH on GuixSD Ludovic Courtès
@ 2018-11-07 17:08         ` swedebugia
  0 siblings, 0 replies; 6+ messages in thread
From: swedebugia @ 2018-11-07 17:08 UTC (permalink / raw)
  To: Ludovic Courtès, Marius Bakke; +Cc: 33279-done

Hi

On 2018-11-07 17:40, Ludovic Courtès wrote:
> Marius Bakke <mbakke@fastmail.com> skribis:
>
>> swedebugia <swedebugia@riseup.net> writes:
> [...]
>
>>> Could we make all guile-* packages emit this suggestion?
>> This limitation is the same as <https://bugs.gnu.org/22138>.
> It’s actually a different issue here: the profile contains packages that
> provide share/guile/2.2, but the same profile doesn’t contain any
> package that “claims” share/guile/2.2.  Thus, everything is working
> according to plan, so to speak.
>
> I understand this particular case is confusing though.  It’s confusing
> because Guile is already installed, albeit in another profile.
>
> What we could do to avoid this confusion is pre-define GUILE_LOAD_PATH
> and GUILE_LOAD_COMPILED_PATH in /etc/profile, just like we do for
> INFOPATH et al.

Sounds good to me.

What I am after is lowering the bar for the user to learn and use guile 
and readline seems like a pretty important component to avoid typing 
everything over and over.

We want guix to be guile land and for guile land to be nice and welcome 
out the box.

I therefore suggest also adding guile-readline to %base-packages if it 
does not produce too much overhead.

Cheers
Swedebugia

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

end of thread, other threads:[~2018-11-07 17:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-05 20:14 bug#33279: guile-readline: error: no code for module swedebugia
2018-11-06 11:36 ` Ludovic Courtès
2018-11-06 19:05   ` swedebugia
2018-11-06 20:14     ` Marius Bakke
2018-11-07 16:40       ` bug#33279: GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH on GuixSD Ludovic Courtès
2018-11-07 17:08         ` swedebugia

Code repositories for project(s) associated with this public inbox

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

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).