Muhammad Hassan
Muhammad Hassan

Reputation: 4229

Python tabula-py cannot import name wrapper

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

Upvotes: 1

Views: 4939

Answers (1)

Muhammad Hassan
Muhammad Hassan

Reputation: 4229

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

Upvotes: 1

Related Questions