-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError: [Errno 2] No such file or directory: 'storage:XXXXXXX.pdf' #1
Comments
Exactly the same:
|
Ah, sorry. This might be because I wrote it in a way that I use Zotfile to store the files directly at the directory where papis will be, and so that in the future I don't have to go hunting down where every file is. Take a look at this to see how I did it http://nicolasshu.com/zotero_and_papis.html and look through the first for loop in the zotero2papis.py to see how it works. It could have been that it was already moved and it wasn't accounted for too. You're welcome to open a pull request. Otherwise, I'll get to it later |
I am sure I don’t understand. See this:
Do you have any suggestions how to make |
Sorry, guys. I think I took care of it now. Yeah, I had written it more so for my configuration with my Zotfile configuration.
So when you use the Zotero Connector straight from the PDF, it gives you the issues you guys were all facing, since the PDF is stored in whichever way Zotero decides to save its file (which, still to today, I don't fully understand. E.g. when you add other attachments, it gets added to a different itemKey directory). But I think it should be working now. For my own personal preference (since I didn't want to have to deal with file tree patterns from a Zotfile config), I decided to have it copy to
where $papis_dir is the directory you pass into the So I tried this a few times from different ways, and I think you should be able to use a Zotfile configuration, and you should be able to also use this without a Zotfile altogether. (I think) The only problem if you don't use Zotfile is that you'll have two copies of the same PDF on your system. I.e. if you edit/annotate the PDF on the papis directory, you will not see it on Zotero, or if you edit the one on Zotero, you will not see it on papis. |
Still not right (
|
Hey! Do your references not have attachments to them? I won't have time for the next couple of days to debug this, but could you try to just comment out that line or just remove the reference to the variable |
Hi. The script doesn't work for me - the "path" variable seems to not be defined properly, see output below. The file in question exists at /home/XXX/.zotero_data/storage/ADENEUW7/Blundell and Stoker - 2005 - Heterogeneity and Aggregation.pdf
I am wondering if I am doing something wrong? Not only does "path" contain a "storeage:" stub that should not be there, it also doesn't contain the full path but only the file name.
> zotero2papis --zotdir /home/XXX/.zotero_data -o /home/XXX/Papers --verbose
The text was updated successfully, but these errors were encountered: