ThoughtfulDev / EagleEye

Stalk your Friends. Find their Instagram, FB and Twitter Profiles using Image Recognition and Reverse Image Search.
Do What The F*ck You Want To Public License
4.14k stars 561 forks source link

Creating PDF Report ERRORS #131

Open niemajak900 opened 2 years ago

niemajak900 commented 2 years ago

HI guys Google reverse image search is fixed, thanks a lot. but facing another errors afterwards:

: Creating PDF Report Traceback (most recent call last): File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 510, in _save fh = fp.fileno() io.UnsupportedOperation: fileno

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/PIL/Image.py", line 459, in _getencoder encoder = getattr(core, encoder_name + "_encoder") AttributeError: module 'PIL._imaging' has no attribute 'jpeg2k_encoder'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/weasyprint/document.py", line 256, in _save_jpeg2000 pillow_image.save(image_file, format='JPEG2000', optimize=optimize) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2164, in save save_handler(self, fp, filename) File "/usr/lib/python3/dist-packages/PIL/Jpeg2KImagePlugin.py", line 300, in _save ImageFile._save(im, fp, [("jpeg2k", (0, 0) + im.size, 0, kind)]) File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 515, in _save e = Image._getencoder(im.mode, e, a, im.encoderconfig) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 461, in _getencoder raise OSError(f"encoder {encoder_name} not available") from e OSError: encoder jpeg2k not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 510, in _save fh = fp.fileno() io.UnsupportedOperation: fileno

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/PIL/Image.py", line 459, in _getencoder encoder = getattr(core, encoder_name + "_encoder") AttributeError: module 'PIL._imaging' has no attribute 'jpeg2k_encoder'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/kali/Desktop/EagleEye-master/eagle-eye.py", line 229, in main(skipFB=args.skipfb, FBUrls=[], jsonRep=jsonRepFile, dockerMode=aDocker, dockerName=aName) File "/home/kali/Desktop/EagleEye-master/eagle-eye.py", line 175, in main makeReport(name, rev_links, predictions, validatedInstaNames) File "/home/kali/Desktop/EagleEye-master/report/report.py", line 37, in makeReport doc.write_pdf('{0}_Report.pdf'.format(name)) File "/usr/local/lib/python3.9/dist-packages/weasyprint/init.py", line 180, in write_pdf self.render( File "/usr/local/lib/python3.9/dist-packages/weasyprint/document.py", line 1157, in write_pdf page.paint(stream, scale=scale) File "/usr/local/lib/python3.9/dist-packages/weasyprint/document.py", line 767, in paint draw_page(self._page_box, stream) File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 69, in draw_page draw_stacking_context(stream, stacking_context) File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 182, in draw_stacking_context draw_stacking_context(stream, child_context) File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 159, in draw_stacking_context draw_box_background_and_border( File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 73, in draw_box_background_and_border draw_background(stream, box.background) File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 341, in draw_background draw_background_image(stream, layer, bg.image_rendering) File "/usr/local/lib/python3.9/dist-packages/weasyprint/draw.py", line 423, in draw_background_image layer.image.draw(group, image_width, image_height, image_rendering) File "/usr/local/lib/python3.9/dist-packages/weasyprint/images.py", line 56, in draw image_name = stream.add_image( File "/usr/local/lib/python3.9/dist-packages/weasyprint/document.py", line 320, in add_image image_file = self._save_jpeg2000(pillow_image, optimize) File "/usr/local/lib/python3.9/dist-packages/weasyprint/document.py", line 261, in _save_jpeg2000 pillow_image.save( File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2164, in save save_handler(self, fp, filename) File "/usr/lib/python3/dist-packages/PIL/Jpeg2KImagePlugin.py", line 300, in _save ImageFile._save(im, fp, [("jpeg2k", (0, 0) + im.size, 0, kind)]) File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 515, in _save e = Image._getencoder(im.mode, e, a, im.encoderconfig) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 461, in _getencoder raise OSError(f"encoder {encoder_name} not available") from e OSError: encoder jpeg2k not available