Camelot: OSError: exception: access violation writing 0x00000080

0

I am trying to extract a table from a pdf with camelot using the following code:

import camelot
tables = camelot.read_pdf('11252490_12_2355678.pdf')

But I keep receiving the following error:

Traceback (most recent call last):
  File "c:/Users/xxx/codice.py", line 31, in <module>
    tables = camelot.read_pdf('11252490_12_2355678.pdf')
  File "c:/Users/xxx/codice.py", line 117, in read_pdf
    **kwargs
  File "c:/Users/xxx/codice.py", line 172, in parse
    p, suppress_stdout=suppress_stdout, layout_kwargs=layout_kwargs
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\parsers\lattice.py", line 403, in extract_tables
    self._generate_image()
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\parsers\lattice.py", line 220, in _generate_image
    with Ghostscript(*gs_call, stdout=null) as gs:
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\ext\ghostscript\__init__.py", line 95, in Ghostscript
    stderr=kwargs.get("stderr", None),
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\ext\ghostscript\__init__.py", line 39, in __init__
    rc = gs.init_with_args(instance, args)
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\ext\ghostscript\_gsprint.py", line 169, in init_with_args
    rc = libgs.gsapi_init_with_args(instance, len(argv), c_argv)
OSError: exception: access violation writing 0x00000080

How can I solve this? I have tried with several methods for re-installing Camelot (i.e. pip install camelot-py[all], pip install camelot-py[cv], as well as directly from source), but nothing seems to be working.

python
pdf
python-camelot
asked on Stack Overflow Mar 23, 2020 by Matilde

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0