Cannot open load file" "No such file or directory" "/home/user/.emacs.d/.local/straight/repos/straight.el/straight.el

What happened?

Installing Doom Emacs for the first time, on QubesOS in a Fedora 34 template and I am running into this error.

x There was an unexpected runtime error
  Message: File is missing
  Details: ("Cannot open load file" "No such file or directory" "/home/user/.emacs.d/.local/straight/repos/straight.el/straight.el")
  Backtrace:
    (require straight "/home/user/.emacs.d/.local/straight/repos/straight.el...
    (let ((repo-dir (doom-path straight-base-dir "straight/repos/straight.el...
    (let ((process-environment (copy-sequence process-environment))) (setenv...
    (doom--ensure-straight (:host github :repo "radian-software/straight.el"...
    (let* ((--cl-rest-- (alist-get 'straight packages)) (recipe (car (cdr (p...
    (let ((packages (doom-package-list '((:core))))) (let* ((--cl-rest-- (al...
    (progn (if doom-inhibit-log nil (doom--log "Initializing straight")) (le...
    (if (or force-p (null (and (boundp 'straight-recipe-repositories) straig...
    (doom-initialize-core-packages)
    (let ((context (cdr (assq 'context alist)))) (require 'comp nil t) (doom...
    ((closure (t) (cli alist) (let ((context (cdr (assq 'context alist)))) (...
    (funcall (closure (t) (cli alist) (let ((context (cdr (assq 'context ali...
  ! Wrote extended backtrace to ~/.emacs.d/.local/logs/cli.doom.230119212333.4173.error
✓ Finished in 0.57920s

What did you expect to happen?

Expected to complete installation

Steps to reproduce

  1. clone from git repo from a trusted qube environment
  2. copy the directory to fedora-34 template
  3. run install

Does the file exist where it is expected to be? Try blowing away the straight.el directory and run doom sync again.

I just had the same error on my new ubuntu machine.

Turns out, I hadn’t correctly added ${HOME}/.config/emacs/bin into my PATH, maybe make sure you do not have a typo there?

I am experiencing the same error. I tried 1) deleting the .local folder, 2) deleting straight and running doom sync, 3) adding emacs/bin to my path, 4) manually cloning straight.el. None of these helped.

Hello, Are you solve this error?. I had same problem.