algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
228 stars 50 forks source link

Please help on this one #168

Closed AtulCIS closed 4 years ago

AtulCIS commented 4 years ago

File "/home/ubuntu/accounting/.ancillary/lib/python3.5/site-packages/preview_generator/preview/builder/office__libreoffice.py", line 135, in convert_office_document_to_pdf with open(output_filepath, "rb") as pdf_handle: FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/accounting/reporting/static/all_jobs_document/temp/11c36bc5ce6a5f5caea03adad71391e5.pdf'

My pdf file is not generating.

I have debugged the code and found that in my ubuntu server the libreoffice path is "usr/bin/libreoffice5.1" is executable and "usr/bin/libreoffice" is not. So can you let me know how I give libreoffice5.1 path in place of "usr/bin/libreoffce" path.

AtulCIS commented 4 years ago

It's fixed by creating symlink.