Skip to content
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

Error exporting multi-page PDFs when file is read only #5

Open
hp6393 opened this issue Mar 22, 2022 · 2 comments
Open

Error exporting multi-page PDFs when file is read only #5

hp6393 opened this issue Mar 22, 2022 · 2 comments

Comments

@hp6393
Copy link

hp6393 commented Mar 22, 2022

Creating this as a separate issue for tracking purposes:

While experimenting, I also discovered a different error involving multi-page PDFs when the file attribute is set to read only. The error does not occur on single-page PDFs regardless of read only status. However, I get the following error for a multi-page PDF only when the file is set to read only:

{"msg":"Failed to export items.","stack":"Error: EPERM: operation not permitted, copyfile 'C:\temp\test6multipage.pdf' -> 'C:\Users\xxxxxxxx\AppData\Local\Temp\tropy-archive-zazQHN\tropy\test6multipage.pdf'","system":"Windows_NT 10.0.19043 (x64)","time":1647960339657,"version":"1.11.1"}

@caro401
Copy link
Collaborator

caro401 commented May 19, 2022

I can reproduce this on MacOS, with a slightly different error message, but the same behaviour with regards to single- vs multi-page PDFs

{"msg":"Failed to export items.","stack":"Error: EACCES: permission denied, copyfile '/Users/xxx/Downloads/xxx.pdf' -> '/var/folders/3d/4px6x0z50nlcw_v8j14cf3380000gn/T/tropy-archive-DDuvXz/tropy/xxx.pdf'","system":"Darwin 21.5.0 (arm64)","time":1652979631823,"version":"1.11.2-beta.1"}

@caro401
Copy link
Collaborator

caro401 commented May 24, 2022

The latest release should fix this issue. @hp6393 would you be able to confirm whether this solves the issue you have in your project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants