Guix pull no longer working - error: use-modules: unbound variable

For whatever reason my guix pull isn’t working.

$ guix pull
ice-9/eval.scm:223:20: In procedure proc:
error: use-modules: unbound variable
hint: Did you forget `(use-modules (guile))' or `#:use-module (guile)'?

~/.config/guix/channels.scm

(use-modules (guix channels))

(cons* 

#|
  (channel
         (name 'cast)
         (url "")
         (branch "main")
         (introduction
          (make-channel-introduction
           "fab73647fd9f0f2167d9ef9d42cddd77500fffb3"
           (openpgp-fingerprint
            "D430 1F59 A65F 49DA 918A  3C0D 8D4C 3248 29DE D156"))))
       (channel
          (name 'yrop)
          (url "")
          (branch "main")
          (introduction
           (make-channel-introduction
            "6f7986c28d4ff8f9c17f708fcf9afb428c93eef1"
            (openpgp-fingerprint
             "19F7 AEB0 4E16 D355 8939  07C1 D6CC DD11 AF4E 07E1"))))
 |#
       %default-channels)```

I botched a system reconfigure prior.
I edited my system reconfiguration and reconfigured again.

$ guix system reconfigure /etc/config.scm

Unfortunately, that did not do the trick.

[update]

I am able to run it with the --unsafe-channel-evaluation argument.

$ guix pull --unsafe-channel-evaluation

Had the same issue, it’s because recently the guix devs added a feature to allow for urls to be passed to guix pull for channel options. To implement this, channel files, both local and pulled from a url with the -C option, are evaluated in an isolated environment so they don’t run arbitrary code. So, any existing channel files need to be changed because they are not among the users “trusted” channels that can be expected not to run some arbitrary code when pulled from. To fix this you can change your channels.scm file to “trusted-channels.scm” :slight_smile: