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

camelot.ext.ghostscript._gsprint.GhostscriptError: -100 #123

Open
reefette opened this issue Mar 30, 2020 · 2 comments
Open

camelot.ext.ghostscript._gsprint.GhostscriptError: -100 #123

reefette opened this issue Mar 30, 2020 · 2 comments

Comments

@reefette
Copy link

Windows 10
Python 3.7.4
Ghostscript 9.5.2

installed camelot from the repository (not pip)

Got this error

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

@crliu95
Copy link

crliu95 commented Nov 23, 2020

Have encountered the same Error, even when using the example codes. And this Error seems to occur only in the "lattice" flavor.

I have checked the dependencies as the guidence here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html#install-deps .

My settings:
Windows 10, Python 3.6.10 | Anaconda custom (64-bit), Ghostscript 9.53.3

Here attached the codes and results:
image

@mohankumargx
Copy link

#20 solution is here

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

3 participants