Skip to content Skip to sidebar Skip to footer

Unable To Access Jarfile 'tabula-1.0.2-jar-with-dependencies.jar'

I made a python executable using pyinstaller as pyinstaller --onefile script.py. When I run the script.exe, I get the following errors: I am using tabula-py package to parse a pdf

Solution 1:

This problem is apparently caused because the above mentioned jar file is not added to the dist folder structure properly.

I guess a fundamental solution would require some modifications from the side of the developers, but a possible workaround here is to use the option --add-data option to include the jar file into a folder called tabula, so something like

pyinstaller --add-data path:\to\tabula-(...).jar; tabula 

in order to make it run, or set something like

datas=[('path:\to\tabula-(...).jar', 'tabula')],

into the spec file. Made both regular builds and one-file-builds runnable for me.

Post a Comment for "Unable To Access Jarfile 'tabula-1.0.2-jar-with-dependencies.jar'"