You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Camelot failed with some OpenCV error on a personal document of mine. I tried again with this file https://arxiv.org/pdf/1706.05137.pdf, and saw the same error. This is just after having resolved ModuleNotFoundError: No module named 'cv2' with pip install opencv-python. I've used OpenCV on this machine without trouble before, but I'm not too familiar with the installation process/dependencies for OpenCV. Apologies if this is just a goofy problem with my setup.
Traceback (most recent call last):
File "test.py", line 6, in <module>
tables = camelot.read_pdf(fname)
File "/usr/local/lib/python3.7/site-packages/camelot/io.py", line 91, in read_pdf
tables = p.parse(flavor=flavor, **kwargs)
File "/usr/local/lib/python3.7/site-packages/camelot/handlers.py", line 146, in parse
t = parser.extract_tables(p)
File "/usr/local/lib/python3.7/site-packages/camelot/parsers/lattice.py", line 339, in extract_tables
self._generate_table_bbox()
File "/usr/local/lib/python3.7/site-packages/camelot/parsers/lattice.py", line 212, in _generate_table_bbox
blocksize=self.threshold_blocksize, c=self.threshold_constant)
File "/usr/local/lib/python3.7/site-packages/camelot/image_processing.py", line 38, in adaptive_threshold
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(3.4.3) /Users/travis/build/skvark/opencv-python/opencv/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
This is just after having resolved ModuleNotFoundError: No module named 'cv2' with pip install opencv-python.
@alanbernstein To install Camelot, you need to do pip install camelot-py[all] as given in the README.
A traceback with /Users/travis is weird, could be that opencv-python is built on Travis-CI before being uploaded to PyPI and you installed a broken build. Let me look into this.
@alanbernstein I was not able to reproduce this. Can you check if you face the same error with the most recent release? If yes, please open a new issue.
Camelot failed with some OpenCV error on a personal document of mine. I tried again with this file https://arxiv.org/pdf/1706.05137.pdf, and saw the same error. This is just after having resolved
ModuleNotFoundError: No module named 'cv2'
withpip install opencv-python
. I've used OpenCV on this machine without trouble before, but I'm not too familiar with the installation process/dependencies for OpenCV. Apologies if this is just a goofy problem with my setup.Running this:
I get this traceback:
Note
/Users/travis/
does not exist on my machine.The text was updated successfully, but these errors were encountered: