Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading pdf doesn't work #41

Open
zacKolton opened this issue May 16, 2021 · 0 comments
Open

Uploading pdf doesn't work #41

zacKolton opened this issue May 16, 2021 · 0 comments

Comments

@zacKolton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant