From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +BYbA9AOSWAXcAAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 18:24:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wCtNOs8OSWAKHgAAbx9fmQ (envelope-from ) for ; Wed, 10 Mar 2021 18:24:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AF8AE19BE4 for ; Wed, 10 Mar 2021 19:24:14 +0100 (CET) Received: from localhost ([::1]:43950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK3VE-00086q-Tl for larch@yhetil.org; Wed, 10 Mar 2021 13:24:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK3U4-00086K-SS for emacs-orgmode@gnu.org; Wed, 10 Mar 2021 13:23:00 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:40273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lK3U0-0000NT-P3 for emacs-orgmode@gnu.org; Wed, 10 Mar 2021 13:22:58 -0500 Received: by mail-wr1-x430.google.com with SMTP id l11so21038467wrp.7 for ; Wed, 10 Mar 2021 10:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ma6aVjtgs1CkAeTPwU5BfiO85Cw1otH96vC/pSGDyRM=; b=SJnaA6VrY4EFw7u6pJx1RymKf+T3ItQBFFNhXxWswDtb+pCiNlX/gVvUzJpH5G/UyI 67DvEySncvlzaJYRtYeqfTXbiLlXrdKtHEHHHLyOLVBA/kbYLSxKw69N5+eLYpki35xj kxXmhRXnGr1tC5nqVQVY5mNWTWx70cPuyUM0I9kGMXflT2RxaHamlxAsIJBECeQrbnFN XExFlbft3Rc6BBc1V0CShSAS34bjTPVLQ9FsKFZQ6tSADmTizNE4O/oQNnaWrc6BwOP7 4M+FibTjtNT5qb8ceVr6PkYB4KnlsXASCKO23aJfKO/FGoSiRxDhtRBUf4P/2zjC8S8G OD8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ma6aVjtgs1CkAeTPwU5BfiO85Cw1otH96vC/pSGDyRM=; b=NVJsGSDZvaTnqJdjjD6XLLwaKKcbZd7y6cpJtjAamYHndP1XwBixyzQBZk0Xp0sYGY NegRldnzasxoL/Z9wFbTiHeerlkY7El2fmmocZSCO0O9dtrCk5eJ3yZVsRL90fBuB+jy cUr7vyoHRfhwSWjEKdtW5XA+RgUaW+8RL+tab0w7BGfpf7VXpk1IPOSjy3QVda5A6Sle DQcU5RN7ofzhBCphVf7kLVcFI5L9sCJwkjKapUXh/f1j7nUhnnW2QCl5L+e52GuCpIAK tZXwjLXYfdiktdjg3/0K84GTX7RLpVMi8POpdjxws9E66owAVo/P8DntJW+GaALJKm6N I4pg== X-Gm-Message-State: AOAM532Qo9ks4dUynlOmPVeUua8MyNF2htudk7Baz8qDSCDLoEw/jy1j hbBTPHgkURnLG96cuFaEAj5Dnv8QpVOOLpK/GEg= X-Google-Smtp-Source: ABdhPJzdz1FluwvZ7/d+wIL5CrhONbn8EEbitR2ZOJrkg70/NJMDmoTYG0INQhULZB9aEHS9Sf20eRHcaNvLjtfOBa8= X-Received: by 2002:a05:6000:1a8c:: with SMTP id f12mr4810751wry.173.1615400574448; Wed, 10 Mar 2021 10:22:54 -0800 (PST) MIME-Version: 1.0 References: <87o8fraa0e.fsf@kyleam.com> <8E0A3C22-E5A2-42C6-861B-30EE92E46721@ur.rochester.edu> In-Reply-To: <8E0A3C22-E5A2-42C6-861B-30EE92E46721@ur.rochester.edu> From: John Kitchin Date: Wed, 10 Mar 2021 13:22:43 -0500 Message-ID: Subject: Re: [EXT] Problem with org-ref To: "Marvin M. Doyley" Content-Type: multipart/alternative; boundary="00000000000068f71405bd32c1df" Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kyle Meyer , org-mode-email , Zhe Lei Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615400655; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ma6aVjtgs1CkAeTPwU5BfiO85Cw1otH96vC/pSGDyRM=; b=RCQbVN+A7dgGmTGbI7SpYAftdXpWCZtuAhJfM+gz3GcB50669GxRIarp24ykeSek6Le6GN KAZkmmrCdd5rtXaS3YF7eZ7xJQx1IaQDQqyGyW9DtBnhr8bamEZ+wIYfObWNRF7UjjGK2Y TGfDypSRY4L6Secqz9rvfJbKMVARS621Xqgg2LtjR4M+25+1rLJU9rRcCpiFu/nAxWa1FQ FnlgIT4svDooPZnyniMdVQxsr9bja+KG+/jWD8Ou73RvxpwK+JKIPYTCAlM338VFtBpTwx 42KH29jUuzo9yyyWzkjqIHsTZ0g98Yb10/pv4TdEzk04WbM/cGuJsLqm+XGiKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615400655; a=rsa-sha256; cv=none; b=Mho5fZua9Zgd2rAYb7OCX8S0ZGeUQa768kIxZWJ41ZWgri7RBX76iKCaEpmzM6gPL2Kati fHv6dfad049GpeOY3HkdOSazrzT/pJ+I5a71nX0b1xZM+gI29uugSEysizq3XOtgIqblpV gSgDdnhEkv9nxW/hFyjaCx7cWRD1r9cShvzqc2bFwCh0LaYCCJyN9B5RUDNxn9IKCwP46w y/Nv9pJ13RXpDG+fdQE93aL4z6bkDfnfV2yJY1FaRHnOAHiNamYXXF3vqnpfSpa9HCq4/8 S0sSOjbmqsk8BdNnsJf+KG1aYsfaguWIAQZoiTsLlDWrUXJgemmXa+G0sNX+4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=SJnaA6Vr; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=SJnaA6Vr; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AF8AE19BE4 X-Spam-Score: -2.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: f7jsORluD0GB --00000000000068f71405bd32c1df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote: > HI Kyle, > > This solved my problems > > Thanks, > > M > > > > > On Mar 9, 2021, at 11:49 PM, Kyle Meyer 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/=E2=80=9C)) > > 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/") > > > --00000000000068f71405bd32c1df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
thanks for the troubleshooting. I pushed a fix that should= use the customizable pdf filename function instead.

=
John

----------------= -------------------
Professor John Kitchin=C2=A0
Doherty Hall A207FDepartment of Chemical Engineering
Carnegie Mellon University
Pitts= burgh, PA 15213
412-268-7803

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

This = solved my problems

=C2=A0Thanks,=C2=A0
<= br>
M

=



On Mar 9, 2021, at 11:49 PM, Kyle M= eyer <kyle@kyleam.c= om> wrote:

Marvin M. Doyley writes:

Hi there,

When I use cros= sref-add-bibtex-entry it download the BibTeX entry but cannot download the = associated pdf.
I get the following error =C2=A0(wrong-type-argument str= ingp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/=E2=80=9C))
=
I configured org-ref as follows

(setq org-ref-bibliography-notes= '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org")=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0org-ref-default-bibliography '("= ;/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib")=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0org-ref-pdf-directory '("/Use= rs/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
=C2=A0=C2=A0org-ref-notes-citation-li= nk '("cite")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0)

[ Ca= veat: I've never used org-ref ]

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


Debug= ger entered--Lisp error: (wrong-type-argument stringp ("/Users/doyley/= Dropbox/Filing_Cabinet/B/refs/pdf/"))
=C2=A0file-name-as-directory(= ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
=C2=A0do= i-utils-get-bibtex-entry-pdf(nil)

... doi-utils-get-bibtex-entry-p= df wasn't updated for that (+cc the

author of that commit and John Kitch= in).

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

=C2=A0(setq org-ref-pdf-directory &= quot;/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")

3D""
--00000000000068f71405bd32c1df--