From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wensheng Xie Subject: bug#31279: report problem: guile with ~/.guile file does not run from shell Date: Fri, 27 Apr 2018 11:19:04 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005fa4f3056acbf752" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBtvY-0005Zx-8N for bug-guix@gnu.org; Thu, 26 Apr 2018 23:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBtvW-0004fq-NW for bug-guix@gnu.org; Thu, 26 Apr 2018 23:20:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:32914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBtvW-0004fc-Jy for bug-guix@gnu.org; Thu, 26 Apr 2018 23:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBtvW-0001FY-9w for bug-guix@gnu.org; Thu, 26 Apr 2018 23:20:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBtud-0005Fd-BJ for bug-guix@gnu.org; Thu, 26 Apr 2018 23:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBtuc-00041e-1q for bug-guix@gnu.org; Thu, 26 Apr 2018 23:19:07 -0400 Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:35450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBtub-00040f-Qt for bug-guix@gnu.org; Thu, 26 Apr 2018 23:19:05 -0400 Received: by mail-it0-x22e.google.com with SMTP id 186-v6so269692itu.0 for ; Thu, 26 Apr 2018 20:19:05 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31279@debbugs.gnu.org --0000000000005fa4f3056acbf752 Content-Type: text/plain; charset="UTF-8" Dear guix: Using guixSD, installed guile and try to run it from shell. I got the following error: ------ start ------ ~ $ cat .guile (use-modules (ice-9 readline)) ;; Enable completion at the REPL. (activate-readline) (use-modules (oop goops))~ $ ~ $ guile Backtrace: 12 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 11 (call-with-prompt ("prompt") # #) In ice-9/eval.scm: 619:8 10 (_ #(#(#))) In unknown file: 9 (primitive-load "/home/wxie/.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))) _ _ #f e (eval) (hygiene guile-user)) 1182:24 6 (parse _ (("placeholder" placeholder)) ((top) #(ribcage () () ())) _ e (eval) (hygiene guile-user)) 285:10 5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) (hygiene guile-user)) 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 _ #:renamer _ #:version _) In unknown file: 0 (scm-error misc-error #f "~A ~S" ("no code for module" (ice-9 readline)) #f) ERROR: In procedure scm-error: no code for module (ice-9 readline) ~ $ guile -q GNU Guile 2.2.3 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (version) $1 = "2.2.3" ------- end -------- Is this an error or my wrong configuration? best regards, wxie -- I'm an FSF member -- Help us support software freedom! https://my.fsf.org/join --0000000000005fa4f3056acbf752 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear guix:

Using guixSD, installed = guile and try to run it from shell. I got the following error:

------ start ------
~ $ cat .guile
(use-modules (ice-9 readline))

;; Enable completion at the REPL.
(activate-readline)

(use-modules (oop goops))~ $
~ $ guile
Backtrace:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 12 (apply-smob/1 #<catch-closure b14c= 20>)
In ice-9/boot-9.scm:
=C2=A0 =C2=A0 705:2 11 (call-with-prompt ("prompt") #<procedur= e d5f420 at=20 ice-9/eval.scm:330:13 ()> #<procedure default-prompt-handler (k=20 proc)>)
In ice-9/eval.scm:
=C2=A0 =C2=A0 619:8 10 (_ #(#(#<directory (guile-user) bc1140>)))
In unknown file:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09 (primitive-load "/home/wxie= /.guile")
In ice-9/eval.scm:
=C2=A0 =C2=A0721:20=C2=A0 8 (primitive-eval (use-modules (ice-9 readline)))=
In ice-9/psyntax.scm:
=C2=A0 1235:36=C2=A0 7 (expand-top-sequence ((use-modules (ice-9 readline))= ) _ _ #f e (eval) (hygiene guile-user))
=C2=A0 1182:24=C2=A0 6 (parse _ (("placeholder" placeholder)) ((t= op) #(ribcage () () ())) _ e (eval) (hygiene guile-user))
=C2=A0 =C2=A0285:10=C2=A0 5 (parse _ (("placeholder" placeholder)= ) (()) _ c&e (eval) (hygiene guile-user))
In ice-9/boot-9.scm:
=C2=A0 3365:20=C2=A0 4 (process-use-modules _)
=C2=A0 =C2=A0222:17=C2=A0 3 (map1 (((ice-9 readline))))
=C2=A0 3366:31=C2=A0 2 (_ ((ice-9 readline)))
=C2=A0 =C2=A02791:6=C2=A0 1 (resolve-interface _ #:select _ #:hide _ #:pref= ix _ #:renamer _ #:version _)
In unknown file:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 (scm-error misc-error #f "~= A ~S" ("no code for module" (ice-9 readline)) #f)

ERROR: In procedure scm-error:
no code for module (ice-9 readline)
~ $ guile -q
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (version)
$1 =3D "2.2.3"
------- end --------

Is this an error or my wrong configuration?

best regards,
wxie


--
I'm an FSF member -- Help us support so= ftware freedom! https://my.fsf.org/= join
--0000000000005fa4f3056acbf752--