camelot icon indicating copy to clipboard operation
camelot copied to clipboard

🐛 RecursionError while calling a Python object

Open astariul opened this issue 5 years ago • 2 comments

File

test3.pdf

Description

When I try to extract tables from this file, I'm meeting following error :

RecursionError: maximum recursion depth exceeded while calling a Python object

Code

import camelot

tables = camelot.read_pdf('test3.pdf', pages='1-end')

Environment

  • OS: Ubuntu 18.04.4 LTS (Bionic Beaver)
  • Python version: 3.6.9
  • Numpy version: 1.19.2
  • OpenCV version: 4.4.0
  • Ghostscript version: GPL Ghostscript 9.26 (2018-11-20)
  • Camelot version: 0.8.2

How should I deal with this error ? Is there anyway to call camelot with other arguments and not have an error ?

astariul avatar Oct 29 '20 07:10 astariul

I don't get errrors

  • OS: Debian GNU/Linux 9.6 (stretch)
  • Python version: 3.6.8
  • Numpy version: 1.16.0
  • OpenCV version: 4.0.0.21
  • Ghostscript version: GPL Ghostscript 9.26 (2018-11-20)
  • Camelot version: 0.8.2

What is your system recursion limit?

import sys print(sys.getrecursionlimit())

Mine is 1000.

anakin87 avatar Oct 30 '20 10:10 anakin87

Mine is also 1000.

The file seems to work if I do :

import sys
import camelot

sys.setrecursionlimit(2000)
tables = camelot.read_pdf('test3.pdf', pages='1-end')

astariul avatar Nov 01 '20 23:11 astariul