acl-org / aclpubcheck

Tools for checking ACL paper submissions
MIT License
598 stars 47 forks source link

"attempt to perform an operation not allowed" exception #24

Closed efatmae closed 2 years ago

efatmae commented 2 years ago

Hi, I got the following error. Can you help with that?

Checking ./SRW.pdf Traceback (most recent call last): File "aclpubcheck/formatchecker.py", line 462, in main() File "aclpubcheck/formatchecker.py", line 459, in main worker(submission, args.paper_type) File "aclpubcheck/formatchecker.py", line 424, in worker return Formatter().format_check(submission=pdf_path, paper_type=paper_type) File "aclpubcheck/formatchecker.py", line 76, in format_check self.check_page_margin(output_dir) File "aclpubcheck/formatchecker.py", line 275, in check_page_margin im = self.pdf.pages[page].to_image(resolution=150) File "/home/fatma/.local/lib/python3.8/site-packages/pdfplumber/page.py", line 296, in to_image return PageImage(self, kwargs) File "/home/fatma/.local/lib/python3.8/site-packages/pdfplumber/display.py", line 54, in init self.original = get_page_image( File "/home/fatma/.local/lib/python3.8/site-packages/pdfplumber/display.py", line 40, in get_page_image with wand.image.Image(resolution=resolution, spec) as img_init: File "/home/fatma/.local/lib/python3.8/site-packages/wand/image.py", line 9144, in init self.read(filename=filename) File "/home/fatma/.local/lib/python3.8/site-packages/wand/image.py", line 9815, in read self.raise_exception() File "/home/fatma/.local/lib/python3.8/site-packages/wand/resource.py", line 222, in raise_exception raise e wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408

crux82 commented 2 years ago

Can you please take a look at: https://github.com/acl-org/aclpubcheck/issues/8

I think it is related.

crux82 commented 2 years ago

@efatmae did It work?

efatmae commented 2 years ago

The Colab version worked. I could not get it t work locally.