1

Here is my code:

from tabula import wrapper
df = wrapper.read_pdf('singapore.pdf')

But it gives following error:

ImportError: cannot import name 'wrapper'

I tried it on ubuntu and it works fine there but on Windows I am unable to use this code, as it always gives the above error. I installed tabula by using this command:

pip3 install tabula-py

1 Answer 1

1

Here is how I resolved it, you need to add java path to environment variables. More details can be found here:

https://tabula-py.readthedocs.io/en/latest/getting_started.html#get-tabula-py-working-windows-10

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.