Python camelot lib - OS error while reading pdf table

0

I am using camelot 0.7.3 version to extract the tables from a pdf file. when I try to read the tables using camelot.read_pdf('https://camelot-py.readthedocs.io/en/latest/_static/pdf/foo.pdf') (it throws same error for local pdf too)

I am facing below error. I am using python 3.7 and pycharm IDE for my project. Any help is much appreciated

camelot.read_pdf('https://camelot-py.readthedocs.io/en/latest/_static/pdf/foo.pdf')    
Traceback (most recent call last):
      File "<input>", line 1, in <module>
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\io.py", line 113, in read_pdf
        tables = p.parse(
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\handlers.py", line 171, in parse
        t = parser.extract_tables(
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\parsers\lattice.py", line 403, in extract_tables
        self._generate_image()
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\parsers\lattice.py", line 220, in _generate_image
        with Ghostscript(*gs_call, stdout=null) as gs:
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\ext\ghostscript\__init__.py", line 90, in Ghostscript
        return __Ghostscript(
      File "C:\RG\Python\PDFTabProject\venv\lib\site-packages\camelot\ext\ghostscript\__init__.py", line 39, in __init__
        rc = gs.init_with_args(instance, args)
      File "C:\RG\Python\PDFTabProject\venv\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
python
pdf
pycharm
python-camelot
asked on Stack Overflow Mar 8, 2020 by Ravindar G

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0