-
Use pip (for python 3.x version).
-
You need to run the above command everytime you want to use the app.
-
The app will take sometime (usually 2-3 minutes) when using it for the first time. If it takes more time than expected, close the window and run the python command again.
-
Please install Java as tabula requires it. (Confirmed working with Java 7 and 8)
To verify if Java is installed , type
$ java
on your terminal/command prompt. You can install it from this link.
-
If you face any difficulty related to tabula, please go through this page. If the problem persists, report it in the Issues Page.
-
If you want to run this app with a new pdf, run these commands :
$ rm -r Pages/
$ rm packages/courses.db
$ python3 main.py
Please make sure you make appropriate changes to the files packages/search.py and packages/page_01.py so that the pdf can be parsed correctly or else some unexpected error might occur.
File "usr/bin/pip", line 9, in <module>
from pip import main
ImportError : cannot import name 'main'
- If you come across this error, try installing Java. If the problem still persists, go to the link given in pt 3.
File "/home/<username>/.local/lib/python2.7/site-packages/tabula/wrapper.py", line 87, in read_pdf
output = subprocess.check_output(args)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
- You might come across something called as AbstractMethodError such as this :
ImportError: cannot import name AbstractMethodError
Roll back to any previous version of pandas and try running the app.