Windows 10、Python 3.7.4、Ghostscript 9.5.2
遇到这个问题后,我从存储库安装了 camelot。没有再次收到此错误,但收到了这个新错误:
File "data_extract2.py", line 17, in get_data_tables
return camelot.read_pdf(daily_url, pages="all")
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\io.py", line 117, in read_pdf
**kwargs
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\handlers.py", line 172, in parse
p, suppress_stdout=suppress_stdout, layout_kwargs=layout_kwargs
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\parsers\lattice.py", line 403, in extract_tables
self.generate_image()
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\parsers\lattice.py", line 220, in generate_image
with Ghostscript(*gs_call, stdout=null) as gs:
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\ext\ghostscript_init.py", line 95, in Ghostscript
stderr=kwargs.get("stderr", None),
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\ext\ghostscript_init.py", line 39, in init
rc = gs.init_with_args(instance, args)
File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\ext\ghostscript_gsprint.py", line 173, in init_with_args
raise GhostscriptError(rc)
camelot.ext.ghostscript._gsprint.GhostscriptError: -100
知道如何解决吗?