You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am getting this error. Has anyone faced similar issue?
Traceback (most recent call last):
File "extract_from_s3.py", line 236, in
populateData(db)
File "extract_from_s3.py", line 216, in populateData
return_string = process_text_from_file(url)
File "extract_from_s3.py", line 15, in process_text_from_file
pdf = wand_image(filename=url, resolution=300)
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2744, in init
self.read(filename=filename, resolution=resolution)
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2822, in read
self.raise_exception()
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/resource.py", line 222, in raise_exception
raise e
wand.exceptions.PolicyError: not authorized `//s3.amazonaws.com/.../temp.pdf' @ error/constitute.c/ReadImage/454
Exception ignored in: <bound method Resource.del of <wand.image.Image: (empty)>>
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/resource.py", line 232, in del
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2767, in destroy
TypeError: object of type 'NoneType' has no len()
Please help me resolve this issue, or atleast give me some suggestion to solve it. Thank you.
The text was updated successfully, but these errors were encountered:
Closing this issue. The NoneType error was resolved with #346 ; however, you still have an outstanding PolicyError that is outside of the scope of this project. You'll need to updated the policy.xml file on your EC2 instance to allow reading PDF over HTTP
Hi I am getting this error. Has anyone faced similar issue?
Traceback (most recent call last):
File "extract_from_s3.py", line 236, in
populateData(db)
File "extract_from_s3.py", line 216, in populateData
return_string = process_text_from_file(url)
File "extract_from_s3.py", line 15, in process_text_from_file
pdf = wand_image(filename=url, resolution=300)
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2744, in init
self.read(filename=filename, resolution=resolution)
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2822, in read
self.raise_exception()
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/resource.py", line 222, in raise_exception
raise e
wand.exceptions.PolicyError: not authorized `//s3.amazonaws.com/.../temp.pdf' @ error/constitute.c/ReadImage/454
Exception ignored in: <bound method Resource.del of <wand.image.Image: (empty)>>
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/resource.py", line 232, in del
File "/home/ec2-user/.local/lib/python3.6/site-packages/wand/image.py", line 2767, in destroy
TypeError: object of type 'NoneType' has no len()
Please help me resolve this issue, or atleast give me some suggestion to solve it. Thank you.
The text was updated successfully, but these errors were encountered: