Closed Abhi0495 closed 4 years ago
I am facing the same issue when using lattice flavour, stream works fine. Has anyone able to resolve?
Just went through this : https://github.com/camelot-dev/camelot/issues/31
Solved installing camelot from the repo instead of pip install .
@Abhi0495 @manigandan-dorairaj Please try the solution mentioned above and reopen this issue if you still face it.
I am trying to read a pdf using Camelot below are the following error
Traceback (most recent call last): File "c:\Users\pv.abhilash.vscode\extensions\ms-python.python-2019.8.30787\pythonFiles\ptvsd_launcher.py", line 43, in
tables = camelot.read_pdf(file_name)
File "C:\Users\pv.abhilash\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\io.py", line 117, in read_pdf
kwargs
File "C:\Users\pv.abhilash\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\pv.abhilash\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\parsers\lattice.py", line 403, in extract_tables
self._generate_image()
File "C:\Users\pv.abhilash\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\pv.abhilash\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\pv.abhilash\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\pv.abhilash\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 0x16D8B7B
**main(ptvsdArgs)
File "c:\Users\pv.abhilash.vscode\extensions\ms-python.python-2019.8.30787\pythonFiles\lib\python\ptvsd__main.py", line 432, in main run() File "c:\Users\pv.abhilash.vscode\extensions\ms-python.python-2019.8.30787\pythonFiles\lib\python\ptvsd\main__.py", line 316, in run_file runpy.run_path(target, run_name='main') File "C:\Users\pv.abhilash\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\Users\pv.abhilash\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\Users\pv.abhilash\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "c:\Users\pv.abhilash\Desktop\Python\PDF read.py", line 12, in