Silent option not working commented out line 65 in io.py #363
-
Summary of your issueI have a PDF file that was throwing tons of warnings. I tried everything to enforce the silent option per the documentation. Finally, I went into my local copy of io.py and commented out line 65 (if options.get("silent"): ) and I was able to suppress the superfluous warnings. Either the code is wrong, or the documentation is inaccurate. I'm not sure which it is. If it was my usage of tabula.read_pdf please update the documentation to specifically provide an example of how to silence java warnings. Check list before submit
If not possible to execute
What did you do when you faced the problem?Code:tables = tabula.read_pdf(pdfDocument, pages="all", lattice=True) paste your core code which minimum reproducible for the issue
write your expected output Actual behavior:dataframes returned with the following warnings Got stderr: May 07, 2021 4:47:21 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode Related Issues: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@jrussellwhite I think using tabula.read_pdf(pdfDocument, pages="all", lattice=True, silent=True) Here is the document for that (see silent option section): https://tabula-py.readthedocs.io/en/latest/tabula.html#tabula.io.build_options At least, it looks like you didn't use |
Beta Was this translation helpful? Give feedback.
-
Darn do I feel stupid. I swear I thought that was the first thing I tried. That does work. Thanks for the quick response. Sorry for bothering you.
(Sent from my phone. Typos courtesy of iOS)
… On May 7, 2021, at 8:34 PM, Aki Ariga ***@***.***> wrote:
@jrussellwhite I think using silent option should suppress the warning. Can you try it?
tabula.read_pdf(pdfDocument, pages="all", lattice=True, silent=True)
Here is the document for that (see silent option section): https://tabula-py.readthedocs.io/en/latest/tabula.html#tabula.io.build_options
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
Nvm! Glad to hear that. |
Beta Was this translation helpful? Give feedback.
-
It really helps thanks @chezou and @jrussellwhite. |
Beta Was this translation helpful? Give feedback.
@jrussellwhite I think using
silent
option should suppress the warning. Can you try it?Here is the document for that (see silent option section): https://tabula-py.readthedocs.io/en/latest/tabula.html#tabula.io.build_options
At least, it looks like you didn't use
silent
option. Could you share me exact code you wrote?