pre-inst-env: "no code for module (gcrypt hash)"

DoneSubmitted by Chris Marusich.
Details
4 participants
  • Chris Marusich
  • Efraim Flashner
  • Ludovic Courtès
  • swedebugia
Owner
unassigned
Severity
normal
C
C
Chris Marusich wrote on 9 Dec 2018 23:41
(address . bug-guix@gnu.org)
87bm5uz5ks.fsf@gmail.com
Hi,
I tried reconfiguring my system recently using pre-inst-env, usingcommit 08861d259b453442c38fe93477bc62d2080b1442. I got this error:
Toggle snippet (35 lines)$ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm Password: Backtrace:In ice-9/boot-9.scm: 2726:13 19 (_)In ice-9/threads.scm: 390:8 18 (_ _)In ice-9/boot-9.scm: 2994:20 17 (_) 2312:4 16 (save-module-excursion _) 3014:26 15 (_)In unknown file: 14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)In guix/store.scm: 20:0 13 (_)In ice-9/boot-9.scm: 2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …) 2887:24 11 (_) 222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …)) 222:29 9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …)) 222:29 8 (map1 (((guix memoization)) ((guix serialization)) (#) …)) 222:29 7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …)) 222:29 6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …)) 222:29 5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …)) 222:29 4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …)) 222:29 3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …)) 222:17 2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …)) 2803: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 (gcrypt hash)
I expected pre-inst-env to make all the necessary dependenciesavailable. I was surprised that the guix command was unable to find(gcrypt hash), even though I thought pre-inst-env would make itavailable.
Is this a bug, or am I doing something wrong?
-- Chris
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlwNmgMACgkQ3UCaFdgiRp0H1BAAp95gzJYSgpJXQ0M0Y0wprc6Ik+x7aIV8inlL9F5FoQWkh4WX7j46pZsRgFqgk2I4byRs87qdH6kZXFctcI9tCcX2rwVek9M7F0SNpiDS0ywEhifE5LDZQcory1BCAs8jVkQjSMAxodNSLQy56recenqgJ20n9S40Wmqi6re6a7CXujKSEv3hMu3c24Dd3uF7ZxSPenqxOs+Op5dylgGkqpN7k4hJohkHsiJddVSN++2CV67aeoFejqqKRTIP+aASIBIMm/GMUDCbkIObVYp/UrDb/9Mr6hhJtbyEwoQ07cvRXwS8WUvdBqw1tM0QQfktKnpMEd2YF+4NHe1Z3Qk4UBKZCVrbzRMxTfQ+Sy6zj4mVk2fU9QxVrUj4lsRbKu9Ao1qJjm2XQyvTCSSqvdKyct+s3NHHUMCS8CKkuD/iFfsk/BtMFkDMFhuCZAxIoiJ5s6hcC37ahbmb7CyQz4vaLz8CC6wr9Un/3FV0ya8cwTeEWmgnLGjpDIcpgOnuX7MthHUMpJQLVPuIrtnmLMnVOBNxKSoa4SW4WYQBUKa1ckyl3UHqcb0gPBeZv0FcbQt7cRaq3X4l3jLKztw//+5Qk0VcOFItL0dnq1TZVUxYpIo1i6wBifFehmOt5wR0QfDAJl8nrj5ep9o9ol63kGuw1ioexp44WUtIo4ESWgSjAYY==vd7B-----END PGP SIGNATURE-----
S
S
swedebugia wrote on 10 Dec 2018 09:01
(address . bug-guix@gnu.org)
cdb8612f-759d-0ef2-c343-1ba2793b3eab@riseup.net
On 2018-12-09 23:41, Chris Marusich wrote:
Toggle quote (49 lines)> Hi,> > I tried reconfiguring my system recently using pre-inst-env, using> commit 08861d259b453442c38fe93477bc62d2080b1442. I got this error:> > --8<---------------cut here---------------start------------->8---> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm> Password:> Backtrace:> In ice-9/boot-9.scm:> 2726:13 19 (_)> In ice-9/threads.scm:> 390:8 18 (_ _)> In ice-9/boot-9.scm:> 2994:20 17 (_)> 2312:4 16 (save-module-excursion _)> 3014:26 15 (_)> In unknown file:> 14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)> In guix/store.scm:> 20:0 13 (_)> In ice-9/boot-9.scm:> 2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)> 2887:24 11 (_)> 222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))> 222:29 9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …))> 222:29 8 (map1 (((guix memoization)) ((guix serialization)) (#) …))> 222:29 7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))> 222:29 6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))> 222:29 5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))> 222:29 4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))> 222:29 3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))> 222:17 2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))> 2803: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 (gcrypt hash)> --8<---------------cut here---------------end--------------->8---> > I expected pre-inst-env to make all the necessary dependencies> available. I was surprised that the guix command was unable to find> (gcrypt hash), even though I thought pre-inst-env would make it> available.> > Is this a bug, or am I doing something wrong?>
I ran into this also and solved it with running guix environment guix first. Did you try that?
-- CheersSwedebugia
E
E
Efraim Flashner wrote on 11 Dec 2018 08:14
(name . Chris Marusich)(address . cmmarusich@gmail.com)(address . 33691@debbugs.gnu.org)
20181211071444.GB1323@macbook41
On Sun, Dec 09, 2018 at 02:41:07PM -0800, Chris Marusich wrote:
Toggle quote (49 lines)> Hi,> > I tried reconfiguring my system recently using pre-inst-env, using> commit 08861d259b453442c38fe93477bc62d2080b1442. I got this error:> > --8<---------------cut here---------------start------------->8---> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm > Password: > Backtrace:> In ice-9/boot-9.scm:> 2726:13 19 (_)> In ice-9/threads.scm:> 390:8 18 (_ _)> In ice-9/boot-9.scm:> 2994:20 17 (_)> 2312:4 16 (save-module-excursion _)> 3014:26 15 (_)> In unknown file:> 14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)> In guix/store.scm:> 20:0 13 (_)> In ice-9/boot-9.scm:> 2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)> 2887:24 11 (_)> 222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))> 222:29 9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …))> 222:29 8 (map1 (((guix memoization)) ((guix serialization)) (#) …))> 222:29 7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))> 222:29 6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))> 222:29 5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))> 222:29 4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))> 222:29 3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))> 222:17 2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))> 2803: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 (gcrypt hash)> --8<---------------cut here---------------end--------------->8---> > I expected pre-inst-env to make all the necessary dependencies> available. I was surprised that the guix command was unable to find> (gcrypt hash), even though I thought pre-inst-env would make it> available.> > Is this a bug, or am I doing something wrong?>
I come across this sometimes. I don't have a 100% method of fixing it,but I normally run:
guix pullguix environment --pure guixmake clean-go./bootstrap./configure --localstatedir=/var --sysconfdir=/etcexit./pre-inst-env guix environment guix -- make

-- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנרGPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlwPY98ACgkQQarn3Mo9g1FE2A//VSTuYU0scoV8WgG9TYFME+54GV7GTfZ5G0fooJtEljBXi4IljJYmidAH829ySKNXunSnDaL62NWrPLYFlQAnfxWgzoBcKuIHZoREHi4k3q7qvyw/2ykH3y5tcBLUc58a/5JcSxa3nLTz0bmy3IUnfRp7L802/Nx4Tm9UO7lytrvm7sHrql9XeGtWZYiWuGPChIjSHyN+0EolbSL9oT6F6W/sVoND5699HocV+CO/o7UMj4OQDibXKaN3lkSGNo3BB5oeh7SKwDpe90E9eaJovbhqjWCRru2TTZvyE1r1tSQuzvOtoUz5g0Ggyz9iLlx49UorOjIX4dV6Xg5bO1We4zGoyqrpht3bxt/mnSr24V+17+Otbu6gSiyB6C7rnR2yJ10f6RIrMr86NHf2UoIRYZxh2QJGeQwwKUl6zoUcyACGVX80zVndXNj/d6y+pEgK9bQ2qQEyE8+5wmOK7+z9erRuJWfZTY3pFbXwB2nYcHEXrBOBX4K5EEpPKsdmWVxBbZgs9XuUYB4dSc7oJYLCORKfX0nfHD/VpKykAl4FN3z/nexVD2hAVzcBv7dVUtxlcHe7f4npg49gLOBRraBDoR8Pj3HyCgCY2LQd/TQoc0njsGkGmoIbV7GfZ9NrTqNjxmnVILLNg30aiBD2kPUsdCd8vBPbi5thlJVGdFWczAQ==MylA-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 13 Dec 2018 23:56
(name . Chris Marusich)(address . cmmarusich@gmail.com)(address . 33691@debbugs.gnu.org)
87k1kd8295.fsf@gnu.org
Hi Chris,
Chris Marusich <cmmarusich@gmail.com> skribis:
Toggle quote (2 lines)> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm
[...]
Toggle quote (6 lines)> In unknown file:> 0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)>> ERROR: In procedure scm-error:> no code for module (gcrypt hash)
As others wrote, this looks like an environment issue. Try:
sudo -E ./pre-inst-env guix system …
so that your user’s GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH arepreserved.
HTH,Ludo’.
L
L
Ludovic Courtès wrote on 14 Dec 2018 00:00
control message for bug #33691
(address . control@debbugs.gnu.org)
87imzx8220.fsf@gnu.org
tags 33691 notabugclose 33691
?
Your comment

This issue is archived.

To comment on this conversation send email to 33691@debbugs.gnu.org