title: camelot python;OSError: exception: access violation writing 0x00000080
body: <p>I was trying to extract tables from a PDF file with Camelot.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import camelot
  tables = camelot.read_pdf('foo.pdf')
  print(tables)
  </code></pre>
  
  <p>and I am getting the error while running this script as follows:</p>
  
  <pre><code>  File "C:/Users/gibin/PycharmProjects/ML/Table_Tester.py", line 20, in &lt;module&gt;
      table=tables = camelot.read_pdf(r"C:\Users\gibin\PycharmProjects\ML\Doc_downloader\GWC_Docs\781313686.pdf")
    File "C:\Users\gibin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\io.py", line 117, in read_pdf
      **kwargs
    File "C:\Users\gibin\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\gibin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\parsers\lattice.py", line 403, in extract_tables
      self._generate_image()
    File "C:\Users\gibin\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\gibin\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\gibin\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\gibin\AppData\Local\Programs\Python\Python37-32\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
  
  Process finished with exit code 1
  </code></pre>
  
  <p>How can I solve this, or is there another way to get tables from PDF?</p>
  
  <p>Edit: The same script is working fine in jupyter notebook, but not working in pycharm.</p>