Skip to content

Uploading pdf doesn't work #41

@zacKolton

Description

@zacKolton

Describe the bug
I can't upload a pdf.

To Reproduce
try to upload a pdf

Expected behaviour
I guess it should summarize it

Screenshots
Screen Shot 2021-05-16 at 6 33 15 PM
Traceback (most recent call last): File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/opt/anaconda3/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise raise value File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "text-sum-core.py", line 44, in result_pdff out_text_file.write(da.summarize(f.filename)) File "/opt/anaconda3/lib/python3.8/site-packages/abberivator_flow-0.0.2-py3.8.egg/abberivator_flow/document_abberivator.py", line 20, in summarize return pdf_a.summarize(file_path) File "/opt/anaconda3/lib/python3.8/site-packages/abberivator_flow-0.0.2-py3.8.egg/abberivator_flow/pdf_abberivator.py", line 5, in summarize pdfFileObj = open(pdf_file, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'R2DBE- A Wideband Digital Backend for the Event Horizon Telescope.pdf' 127.0.0.1 - - [16/May/2021 18:30:58] "POST /result_document HTTP/1.1" 500 -

Additional context
I even added it to the path it specifies in the error and it still does not work...weird.
Screen Shot 2021-05-16 at 6 33 59 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions