org-roam / org-roam-bibtex

Org Roam integration with bibliography management software
GNU General Public License v3.0
571 stars 47 forks source link

Cannot open load file: No such file or directory, org-roam-bibtex #97

Closed ghost closed 4 years ago

ghost commented 4 years ago

Steps to reproduce:

  1. Use following config
    
    ;; Roam Research Emacs
    (use-package org-roam
    :ensure t
    :hook
    (after-init . org-roam-mode)
    :custom
    (org-roam-directory "~/Org/slipbox/")
    :bind (:map org-roam-mode-map
          (("C-c n l" . org-roam)
               ("C-c n f" . org-roam-find-file)
               ("C-c n g" . org-roam-graph))
              :map org-mode-map
              (("C-c n i" . org-roam-insert))
              (("C-c n I" . org-roam-insert-immediate))))

;; Allows for Org-roam to display in a web browser (use-package org-roam-server :ensure t :config (setq org-roam-server-host "127.0.0.1" org-roam-server-port 8080 org-roam-server-authenticate nil org-roam-server-export-inline-images t org-roam-server-serve-files nil org-roam-server-served-file-extensions '("pdf" "mp4" "ogv") org-roam-server-network-poll t org-roam-server-network-arrows nil org-roam-server-network-label-truncate t org-roam-server-network-label-truncate-length 60 org-roam-server-network-label-wrap-length 20))

;; Add bibliography and bibliographical notes to Org Roam (use-package org-roam-bibtex :hook (org-roam-mode . org-roam-bibtex-mode) :bind (:map org-mode-map (("C-c n a" . orb-note-actions))) :config (setq orb-performat-keywords '("=key=" "title" "url" "file" "author-or-editor" "keywords")) (setq orb-templates '(("r" "ref" plain (function org-roam-capture--get-point) "" :file-name "literature/%<%Y-%m-%d-%H-%M-%S>-${slug}" :head "#+TITLE: ${=key=}: ${title}

+ROAM_KEY: ${ref}

              #+ROAM_TAGS:
              Time-stamp: <>
              - tags :: ${keywords}

              * ${title}
              :PROPERTIES:
              :Custom_ID: ${=key=}
              :URL: ${url}
              :AUTHOR: ${author-or-editor}
              :NOTER_DOCUMENT: %(orb-process-file-field \"${=key=}\")
              :NOTER_PAGE:
              :END:"
   :unnarrowed t))))

(use-package company-org-roam :ensure t :config (push 'company-org-roam company-backends)) (provide 'init-orgroam)


2. M-x org-roam-bibtex-mode

3. output error: 
`Cannot open load file: No such file or directory, org-roam-bibtex`

I've been looking for a variable called org-roam-bibtex in the docs and the source code but it's just the name of the package right? 
I can't figure out where the error is coming from. 
myshevchuk commented 4 years ago

Well, the error is what it tells you. Emacs cannot find org-roam-bibtex package file (org-roam-bibtex.el). Because it is not in the load path. How did you install org-roam-bibtex?

ghost commented 4 years ago

SOLVED: since I don't have (setq use-package-always-ensure t) I need to add :ensure t