b"/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 1: A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags.: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 2: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 3: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 4: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 5: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 7: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 8: import: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 9: from: command not found\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 14: syntax error near unexpected token `def'\n/Users/rim/.pyenv/versions/3.10.6/bin/pdf2txt.py:
line 14: `def extract_text(files=[], outfile='-','\n"
self.run(...) of following code in textract/parsers/pdf_parser.py throws not OSError but ShellError, so SheelError is not treated . Just ShellError added in catch block.
Environment:
When execute next code,
it failed with error message
self.run(...) of following code in textract/parsers/pdf_parser.py throws not OSError but ShellError, so SheelError is not treated . Just ShellError added in catch block.