'Python tabula read_pdf opens java console window

I have a script that uses tabula.read_pdf. Script works fine, however when I build an exe file with PyInstaller (with --noconsole option) and run my script - it opens java.exe empty console window which stays opened untill script work is done. How can I avoid it? Thanks



Solution 1:[1]

I was running into a similar issue and couldn't really find the wrapper.py. After some tinkering around I found a similar workaround:

Within the directory where tabula is installed "...\Lib\site-packages\tabula" edit the "io.py" file. In the "_run" function just change the "args" variable to use "javaw" instead of "java".

I was able to hide the java console when my .exe file ran this way. I hope this helps someone in the future.

Solution 2:[2]

I have managed to fix it by changing java to javaw in wrapper.py file. Thanks.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 zAceX12
Solution 2 alena