unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Philip McGrath" <philip@philipmcgrath.com>
To: help-guix@gnu.org
Subject: Failed to autoload read-substitute-urls in (guix scripts discover)
Date: Wed, 07 Jun 2023 20:27:32 -0400	[thread overview]
Message-ID: <74786e26-0653-46be-850f-2bcbefa83e55@app.fastmail.com> (raw)

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

On a Debian Bookworm system, most Guix commands are failing for me with errors like the following unless I supply --no-substitutes:
```
philip@avalon:~$ guix build hello
substitute: ;;; Failed to autoload read-substitute-urls in (guix scripts discover):
substitute: ;;; no code for module (guix scripts discover)
substitute: Backtrace:
substitute: In ice-9/boot-9.scm:
substitute:   1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
substitute: In unknown file:
substitute:           14 (apply-smob/0 #<thunk 7f6408f132e0>)
substitute: In ice-9/boot-9.scm:
substitute:     724:2 13 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
substitute: In ice-9/eval.scm:
substitute:     619:8 12 (_ #(#(#<directory (guile-user) 7f6408f18c80>)))
substitute: In guix/ui.scm:
substitute:    2275:7 11 (run-guix . _)
substitute:    2217:7 10 (run-guix-command substitute "--query")
substitute: In ice-9/boot-9.scm:
substitute:   1747:15  9 (with-exception-handler #<procedure 7f6400cb93f0 at ic…> …)
substitute:   3327:17  8 (resolve-interface (guix scripts substitute) #:select _ …)
substitute: In ice-9/threads.scm:
substitute:     390:8  7 (_ _)
substitute: In ice-9/boot-9.scm:
substitute:   3253:13  6 (_)
substitute: In ice-9/threads.scm:
substitute:     390:8  5 (_ _)
substitute: In ice-9/boot-9.scm:
substitute:   3544:20  4 (_)
substitute:    2836:4  3 (save-module-excursion _)
substitute:   3564:26  2 (_)
substitute: In unknown file:
substitute:            1 (primitive-load-path "guix/scripts/substitute" #<proced…>)
substitute: In guix/scripts/substitute.scm:
substitute:    753:33  0 (_)
substitute: 
substitute: guix/scripts/substitute.scm:753:33: error: read-substitute-urls: unbound variable
guix build: error: `/usr/bin/guix substitute' died unexpectedly
philip@avalon:~$ command -v guix
/home/philip/.config/guix/current/bin/guix
```

Trying `guix pull --no-substitutes` works, but with the obvious downsides.

It seems like there's something wrong with the Guile load path, but I don't understand what. I've attached the environment variables in effect, if that helps.

It's possible that this could be somehow related to <https://lists.gnu.org/archive/html/guix-devel/2023-05/msg00235.html>, but I've applied the same workaround I use on a Kubuntu 22.10 system that doesn't have this problem.

-Philip

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: env.log --]
[-- Type: text/x-log; name="env.log", Size: 6623 bytes --]

SHELL=/bin/bash
SESSION_MANAGER=local/avalon:@/tmp/.ICE-unix/1715,unix/avalon:/tmp/.ICE-unix/1715
WINDOWID=2
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/home/philip/.config/kdedefaults:/home/philip/.guix-home/profile/etc/xdg:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_LOG_HOME=/home/philip/.local/var/log
LANGUAGE=
GUIX_PYTHONPATH=/home/philip/.guix-home/profile/lib/python3.9/site-packages:/home/philip/.guix-home/profile/lib/python3.9/site-packages
BASH_LOADABLES_PATH=/home/philip/.guix-home/profile/lib/bash:/home/philip/.guix-home/profile/lib/bash:/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:.
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXz14RIx/agent.1592
EMACSNATIVELOADPATH=/home/philip/.guix-home/profile/lib/emacs/native-site-lisp:/home/philip/.guix-home/profile/lib/emacs/native-site-lisp
XDG_DATA_HOME=/home/philip/.local/share
SHELL_SESSION_ID=7652ff11dafa45269753d19fa4c2f931
XDG_CONFIG_HOME=/home/philip/.config
XCURSOR_PATH=/home/philip/.guix-home/profile/share/icons::/usr/share/icons:/usr/share/pixmaps
DESKTOP_SESSION=plasmawayland
SSH_AGENT_PID=1593
GTK_RC_FILES=/etc/gtk/gtkrc:/home/philip/.gtkrc:/home/philip/.config/gtkrc
XCURSOR_SIZE=24
EDITOR=/bin/editor
GTK_MODULES=gail:atk-bridge
XDG_SEAT=seat0
PWD=/home/philip
XDG_SESSION_DESKTOP=KDE
LOGNAME=philip
XDG_SESSION_TYPE=wayland
MANPATH=/home/philip/.guix-home/profile/share/man:
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/philip/channels/nixpkgs:/nix/var/nix/profiles/per-user/philip/channels
SYSTEMD_EXEC_PID=3245
GUILE_LOAD_PATH=/home/philip/.guix-home/profile/share/guile/site/3.0:/home/philip/.guix-home/profile/share/guile/site/3.0
XAUTHORITY=/run/user/1000/xauth_qEcTaz
XKB_DEFAULT_MODEL=pc105
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/philip/.gtkrc-2.0:/home/philip/.config/gtkrc-2.0
GIT_EXEC_PATH=/home/philip/.guix-home/profile/libexec/git-core
HOME=/home/philip
GIT_SSL_CAINFO=/home/philip/.guix-home/profile/etc/ssl/certs/ca-certificates.crt
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
XDG_CURRENT_DESKTOP=KDE
KONSOLE_DBUS_SERVICE=:1.51
WAYLAND_DISPLAY=wayland-0
SSL_CERT_DIR=/home/philip/.guix-home/profile/etc/ssl/certs
KONSOLE_DBUS_SESSION=/Sessions/4
PROFILEHOME=
CMAKE_PREFIX_PATH=/home/philip/.guix-home/profile/:/home/philip/.guix-home/profile/
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QTWEBENGINE_DICTIONARIES_PATH=/usr/share/hunspell-bdic/
INVOCATION_ID=48729cdc0f8f4da488f6b8b484c66ed7
GUILE_LOAD_COMPILED_PATH=/home/philip/.guix-home/profile/lib/guile/3.0/site-ccache:/home/philip/.guix-home/profile/share/guile/site/3.0:/home/philip/.guix-home/profile/lib/guile/3.0/site-ccache:/home/philip/.guix-home/profile/share/guile/site/3.0
KONSOLE_VERSION=221203
MANAGERPID=1532
KDE_SESSION_UID=1000
XDG_CACHE_HOME=/home/philip/.cache
INFOPATH=/home/philip/.guix-home/profile/share/info:/home/philip/.guix-home/profile/share/info:/home/philip/.config/guix/current/share/info:
XKB_DEFAULT_LAYOUT=us
XDG_ACTIVATION_TOKEN=kwin-2
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
CPLUS_INCLUDE_PATH=/home/philip/.guix-home/profile/include/c++:/home/philip/.guix-home/profile/include:/home/philip/.guix-home/profile/include/c++:/home/philip/.guix-home/profile/include
LESSOPEN=| /usr/bin/lesspipe %s
USER=philip
LIBRARY_PATH=/home/philip/.guix-home/profile/lib:/home/philip/.guix-home/profile/lib
COLORFGBG=15;0
PLASMA_USE_QT_SCALING=1
KDE_SESSION_VERSION=5
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
QT_WAYLAND_FORCE_DPI=96
DISPLAY=:1
SHLVL=1
GUIX_LOCPATH=/home/philip/.guix-home/profile/lib/locale
XDG_VTNR=1
XDG_SESSION_ID=3
XDG_STATE_HOME=/home/philip/.local/state
NIX_REMOTE=daemon
XDG_RUNTIME_DIR=/run/user/1000
SSL_CERT_FILE=/home/philip/.guix-home/profile/etc/ssl/certs/ca-certificates.crt
QT_AUTO_SCREEN_SCALE_FACTOR=0
JOURNAL_STREAM=8:42690
XCURSOR_THEME=breeze_cursors
XDG_DATA_DIRS=/home/philip/.guix-home/profile/share:/home/philip/.guix-home/profile/share:/usr/local/share/:/usr/share/
KDE_FULL_SESSION=true
PATH=/home/philip/.guix-home/profile/bin:/home/philip/.guix-home/profile/sbin:/home/philip/.guix-home/profile/bin:/home/philip/.guix-home/profile/sbin:/home/philip/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GHC_PACKAGE_PATH=/home/philip/.guix-home/profile/lib/ghc-9.2.5/nixfmt-0.5.0.conf.d:/home/philip/.guix-home/profile/lib/ghc-9.2.5/package.conf.d:/home/philip/.guix-home/profile/lib/ghc-9.2.5/nixfmt-0.5.0.conf.d:/home/philip/.guix-home/profile/lib/ghc-9.2.5/package.conf.d
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
KDE_APPLICATIONS_AS_SCOPE=1
C_INCLUDE_PATH=/home/philip/.guix-home/profile/include:/home/philip/.guix-home/profile/include
EMACSLOADPATH=/home/philip/.guix-home/profile/share/emacs/site-lisp:/home/philip/.guix-home/profile/share/emacs/site-lisp
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/env

             reply	other threads:[~2023-06-08  0:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08  0:27 Philip McGrath [this message]
2023-06-09 18:43 ` Failed to autoload read-substitute-urls in (guix scripts discover) Vagrant Cascadian
2023-06-22  1:23   ` Philip McGrath
2023-06-22 16:44     ` Vagrant Cascadian
2023-06-23  4:53       ` Philip McGrath
2023-06-23  6:50         ` Vagrant Cascadian
2023-06-23  6:56           ` Philip McGrath
2023-06-23 18:44             ` Vagrant Cascadian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74786e26-0653-46be-850f-2bcbefa83e55@app.fastmail.com \
    --to=philip@philipmcgrath.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).