Camelot: OSError: exception: access violation writing 0x00000080


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/", line 31, in <module>
    tables = camelot.read_pdf('11252490_12_2355678.pdf')
  File "c:/Users/xxx/", line 117, in read_pdf
  File "c:/Users/xxx/", 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\", line 403, in extract_tables
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\parsers\", 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\", line 95, in Ghostscript
    stderr=kwargs.get("stderr", None),
  File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\camelot\ext\ghostscript\", 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\", 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.

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