camelot
camelot copied to clipboard
🐛 RecursionError while calling a Python object
File
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 ?
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.
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')