ValueError: Cannot convert None to Decimal
error when passing table_settings
#539
-
I am a bit confused about versions. Ther latest version on Conda an Pip is v0.5.28, but a solution that is (hopefully) solving my problem is mentioning v0.5.8 . Can anyone please explain this discrepancy and/or how to use version 0.5.8 with Python? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Thanks for your interest in this library @yoavxyoav! If the solution works with v0.5.8 (an earlier version), it should also work with v0.5.28. If it does not, share your code, expected outcome, and result here. |
Beta Was this translation helpful? Give feedback.
-
Hi @yoavxyoav The reason you are seeing this behaviour is because of a bug. The issue is happening because of the TLDR - If you want to use the default values, don't pass them instead of setting table_settings = {
"vertical_strategy": "lines",
"horizontal_strategy": "lines",
"explicit_vertical_lines": [],
"explicit_horizontal_lines": [],
"snap_tolerance": 3,
"join_tolerance": 3,
"edge_min_length": 3,
"min_words_vertical": 3,
"min_words_horizontal": 1,
"keep_blank_chars": False,
"text_tolerance": 3,
"intersection_tolerance": 3,
} Explainer - In the |
Beta Was this translation helpful? Give feedback.
Hi @yoavxyoav The reason you are seeing this behaviour is because of a bug. The issue is happening because of the
None
value in the fieldstext_x_tolerance
,text_y_tolerance
,intersection_x_tolerance
andintersection_y_tolerance
.TLDR - If you want to use the default values, don't pass them instead of setting
None
. For example,