atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.61k stars 349 forks source link

Ghostscript is not installed. But website 404. #473

Open SolarLee-83 opened 2 years ago

SolarLee-83 commented 2 years ago

Ghostscript is not installed.

OSError Traceback (most recent call last)

in 1 import camelot ----> 2 tables = camelot.read_pdf('C:\\Users\\Solar.lee\\Desktop\\11.pdf') 3 tables C:\ProgramData\Anaconda3\lib\site-packages\camelot\io.py in read_pdf(filepath, pages, password, flavor, suppress_stdout, layout_kwargs, **kwargs) 115 suppress_stdout=suppress_stdout, 116 layout_kwargs=layout_kwargs, --> 117 **kwargs 118 ) 119 return tables C:\ProgramData\Anaconda3\lib\site-packages\camelot\handlers.py in parse(self, flavor, suppress_stdout, layout_kwargs, **kwargs) 175 for p in pages: 176 t = parser.extract_tables( --> 177 p, suppress_stdout=suppress_stdout, layout_kwargs=layout_kwargs 178 ) 179 tables.extend(t) C:\ProgramData\Anaconda3\lib\site-packages\camelot\parsers\lattice.py in extract_tables(self, filename, suppress_stdout, layout_kwargs) 419 return [] 420 --> 421 self.backend.convert(self.filename, self.imagename) 422 423 self._generate_table_bbox() C:\ProgramData\Anaconda3\lib\site-packages\camelot\backends\ghostscript_backend.py in convert(self, pdf_path, png_path, resolution) 30 if not self.installed(): 31 raise OSError( ---> 32 "Ghostscript is not installed. You can install it using the instructions" 33 " here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html" 34 ) OSError: Ghostscript is not installed. You can install it using the instructions here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html