emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with org-ref
@ 2021-03-08 15:20 Marvin M. Doyley
  2021-03-10  4:49 ` Kyle Meyer
  0 siblings, 1 reply; 4+ messages in thread
From: Marvin M. Doyley @ 2021-03-08 15:20 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi there,

When I use crossref-add-bibtex-entry it download the BibTeX entry but cannot download the associated pdf.
I get the following error  (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/“))

I configured org-ref as follows

(setq org-ref-bibliography-notes '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org") 
      org-ref-default-bibliography '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib") 
      org-ref-pdf-directory '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
	  org-ref-notes-citation-link '("cite")
      )

(setq bibtex-completion-bibliography  '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib") 
      bibtex-completion-library-path '("~/Org-files/Notes/PDF"))

(setq bibtex-completion-notes-path "~/Org-files/Notes/ref_notes.org") 
(setq bibtex-completion-pdf-symbol "⌘")
(setq bibtex-completion-notes-symbol "✎")



Also enclosed is the backtrace
Thanks for your help in resolving this issue 
M

Debugger entered--Lisp error: (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
  file-name-as-directory(("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
  doi-utils-get-bibtex-entry-pdf(nil)
  funcall-interactively(doi-utils-get-bibtex-entry-pdf nil)
  call-interactively(doi-utils-get-bibtex-entry-pdf record nil)
  command-execute(doi-utils-get-bibtex-entry-pdf record)
  helm-M-x-execute-command(doi-utils-get-bibtex-entry-pdf)
  helm-execute-selection-action-1()
  helm-execute-selection-action()
  helm-internal((((name . "Emacs Commands history") (candidates . #f(compiled-function () #<bytecode 0x1ffd35a88d85>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t)) ((name . "Emacs Commands") (candidates . #f(compiled-function () #<bytecode 0x1ffd3626ae55>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
  apply(helm-internal ((((name . "Emacs Commands history") (candidates . #f(compiled-function () #<bytecode 0x1ffd35a88d85>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal state" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert state" ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert normal) s...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keeping se...") (must-match . t) (group . helm-command) (match-dynamic . t)) ((name . "Emacs Commands") (candidates . #f(compiled-function () #<bytecode 0x1ffd3626ae55>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal state" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert state" ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert normal) s...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keeping se...") (must-match . t) (group . helm-command) (match-dynamic . t))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
  helm((((name . "Emacs Commands history") (candidates . #f(compiled-function () #<bytecode 0x1ffd35a88d85>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t)) ((name . "Emacs Commands") (candidates . #f(compiled-function () #<bytecode 0x1ffd3626ae55>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
  apply(helm ((((name . "Emacs Commands history") (candidates . #f(compiled-function () #<bytecode 0x1ffd35a88d85>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal state" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert state" ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert normal) s...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keeping se...") (must-match . t) (group . helm-command) (match-dynamic . t)) ((name . "Emacs Commands") (candidates . #f(compiled-function () #<bytecode 0x1ffd3626ae55>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal state" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert state" ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert normal) s...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keeping se...") (must-match . t) (group . helm-command) (match-dynamic . t))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
  helm(:sources (((name . "Emacs Commands history") (candidates . #f(compiled-function () #<bytecode 0x1ffd35a88d85>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t)) ((name . "Emacs Commands") (candidates . #f(compiled-function () #<bytecode 0x1ffd3626ae55>)) (keymap keymap (keymap ...) keymap (21 . helm-M-x-universal-argument) keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (26 . helm-select-action) (f13 lambda nil ... ...) (f12 lambda nil ... ...) (f11 lambda nil ... ...) (f10 lambda nil ... ...) (f9 lambda nil ... ...) (f8 lambda nil ... ...) (f7 lambda nil ... ...) (f6 lambda nil ... ...) (f5 lambda nil ... ...) (f4 lambda nil ... ...) (f3 lambda nil ... ...) (f2 lambda nil ... ...) (menu-bar keymap ...) (help keymap ...) (23 . #f(compiled-function () ... #<bytecode 0x1ffd3929591d>)) (f1 lambda nil ... ...) (8 keymap ... ... ... ... ...) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (must-match . t) (group . helm-command) (match-dynamic . t))) :prompt "M-x " :buffer "*helm M-x*" :history helm-M-x-input-history)
  helm-M-x-read-extended-command([okr LaTeX-length-list ansi-color-apply-overlay-face epg-context-signers reftex-untie-multifile-symbols 0 rng-what-schema vc-git-stash-snapshot TeX-command-Biber reftex-default-bibliography pdf-cache-renderpage-highlight pdf-cache-pagelinks semantic-tag-write-list-slot-value markdown-match-bold evil-replace-alist LaTeX-item-tabular* helm-type-timers-actions biblio--selection-insert template nsm-permanent-host-settings doom-modeline-eldoc-bar mixal gnus-summary-recenter ob-ipython--create-repl cl-print--preprocess semantic--tag-unlink-list-from-buffer org-fragtog-ignore-predicates ellipses wicon vc-git-conflicted-files 0 TeX-auto-local semanticdb-project-database-file-child-p evil-visual-exchange-corners Load\ snippets\.\.\. \\prime sp-message test-command container \' ---5 helm-grep-mode-jump-other-window-forward org-ref-notes-directory ---8 sessions evil-collection-js2-mode-setup \. define-mode-local-override evil-replace-state-local-map \\bullet ...])
  helm-M-x(nil)
  funcall-interactively(helm-M-x nil)
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)


------
Marvin M. Doyley Ph.D.  
Professor of Electrical and Computer Engineering,
Professor of Biomedical Engineering, and of Imaging Sciences,
University of Rochester
518 Computer Science Building Rochester NY 14627 
Tel: 585-275-3774 Fax: 585-273-4919
Website: http://www.ece.rochester.edu/projects/doyley_lab/ 	  









[-- Attachment #2: Type: text/html, Size: 25469 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with org-ref
  2021-03-08 15:20 Problem with org-ref Marvin M. Doyley
@ 2021-03-10  4:49 ` Kyle Meyer
  2021-03-10 15:36   ` [EXT] " Marvin M. Doyley
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2021-03-10  4:49 UTC (permalink / raw)
  To: Marvin M. Doyley; +Cc: John Kitchin, emacs-orgmode, Zhe Lei

Marvin M. Doyley writes:

> Hi there,
>
> When I use crossref-add-bibtex-entry it download the BibTeX entry but cannot download the associated pdf.
> I get the following error  (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/“))
>
> I configured org-ref as follows
>
> (setq org-ref-bibliography-notes '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org") 
>       org-ref-default-bibliography '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib") 
>       org-ref-pdf-directory '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
> 	  org-ref-notes-citation-link '("cite")
>       )

[ Caveat: I've never used org-ref ]

org-ref's 0383cc2 (support multiple pdf directories, 2016-06-10) updated
org-ref-pdf-directory to accept a list value, so your value is valid,
but...

> Debugger entered--Lisp error: (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>   file-name-as-directory(("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>   doi-utils-get-bibtex-entry-pdf(nil)

... doi-utils-get-bibtex-entry-pdf wasn't updated for that (+cc the
author of that commit and John Kitchin).

It looks like org-ref-pdf-directory still supports a string, though, and
you only have one item, so you should be able to work around the issue
with

  (setq org-ref-pdf-directory "/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EXT] Problem with org-ref
  2021-03-10  4:49 ` Kyle Meyer
@ 2021-03-10 15:36   ` Marvin M. Doyley
  2021-03-10 18:22     ` John Kitchin
  0 siblings, 1 reply; 4+ messages in thread
From: Marvin M. Doyley @ 2021-03-10 15:36 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: John Kitchin, emacs-orgmode, Zhe Lei

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

HI Kyle,

This solved my problems

 Thanks, 

M




> On Mar 9, 2021, at 11:49 PM, Kyle Meyer <kyle@kyleam.com> wrote:
> 
> Marvin M. Doyley writes:
> 
>> Hi there,
>> 
>> When I use crossref-add-bibtex-entry it download the BibTeX entry but cannot download the associated pdf.
>> I get the following error  (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/“))
>> 
>> I configured org-ref as follows
>> 
>> (setq org-ref-bibliography-notes '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org") 
>>      org-ref-default-bibliography '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib") 
>>      org-ref-pdf-directory '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
>> 	  org-ref-notes-citation-link '("cite")
>>      )
> 
> [ Caveat: I've never used org-ref ]
> 
> org-ref's 0383cc2 (support multiple pdf directories, 2016-06-10) updated
> org-ref-pdf-directory to accept a list value, so your value is valid,
> but...
> 
>> Debugger entered--Lisp error: (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>>  file-name-as-directory(("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>>  doi-utils-get-bibtex-entry-pdf(nil)
> 
> ... doi-utils-get-bibtex-entry-pdf wasn't updated for that (+cc the
> author of that commit and John Kitchin).
> 
> It looks like org-ref-pdf-directory still supports a string, though, and
> you only have one item, so you should be able to work around the issue
> with
> 
>  (setq org-ref-pdf-directory "/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")


[-- Attachment #2: Type: text/html, Size: 15516 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EXT] Problem with org-ref
  2021-03-10 15:36   ` [EXT] " Marvin M. Doyley
@ 2021-03-10 18:22     ` John Kitchin
  0 siblings, 0 replies; 4+ messages in thread
From: John Kitchin @ 2021-03-10 18:22 UTC (permalink / raw)
  To: Marvin M. Doyley; +Cc: Kyle Meyer, org-mode-email, Zhe Lei

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

thanks for the troubleshooting. I pushed a fix that should use the
customizable pdf filename function instead.

John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Wed, Mar 10, 2021 at 10:36 AM Marvin M. Doyley <mdoyley@ur.rochester.edu>
wrote:

> HI Kyle,
>
> This solved my problems
>
>  Thanks,
>
> M
>
>
>
>
> On Mar 9, 2021, at 11:49 PM, Kyle Meyer <kyle@kyleam.com> wrote:
>
> Marvin M. Doyley writes:
>
> Hi there,
>
> When I use crossref-add-bibtex-entry it download the BibTeX entry but
> cannot download the associated pdf.
> I get the following error  (wrong-type-argument stringp
> ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/“))
>
> I configured org-ref as follows
>
> (setq org-ref-bibliography-notes
> '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org")
>      org-ref-default-bibliography
> '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib")
>      org-ref-pdf-directory
> '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
>   org-ref-notes-citation-link '("cite")
>      )
>
>
> [ Caveat: I've never used org-ref ]
>
> org-ref's 0383cc2 (support multiple pdf directories, 2016-06-10) updated
> org-ref-pdf-directory to accept a list value, so your value is valid,
> but...
>
> Debugger entered--Lisp error: (wrong-type-argument stringp
> ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>
>  file-name-as-directory(("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>  doi-utils-get-bibtex-entry-pdf(nil)
>
>
> ... doi-utils-get-bibtex-entry-pdf wasn't updated for that (+cc the
> author of that commit and John Kitchin).
>
> It looks like org-ref-pdf-directory still supports a string, though, and
> you only have one item, so you should be able to work around the issue
> with
>
>  (setq org-ref-pdf-directory
> "/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
>
>
>

[-- Attachment #2: Type: text/html, Size: 12004 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-10 18:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 15:20 Problem with org-ref Marvin M. Doyley
2021-03-10  4:49 ` Kyle Meyer
2021-03-10 15:36   ` [EXT] " Marvin M. Doyley
2021-03-10 18:22     ` John Kitchin

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).