atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.61k stars 349 forks source link

AttributeError: module 'camelot' has no attribute 'read_pdf' on Windows #389

Open FurstStern opened 4 years ago

FurstStern commented 4 years ago

I have read the other issues reported like this one and I have tried all the suggested solutions but none of them work.

I use Python 3.x via Jupyter Notebook on Windows 7 Enterprise. I also have ghostscript and tk installed.

Thank you in advance for your help.

My code is:

import camelot
tables = camelot.read_pdf('test.pdf')

and I get the error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-41-dd79b35b59da> in <module>
      1 import camelot
----> 2 tables = camelot.read_pdf('test.pdf')

AttributeError: module 'camelot' has no attribute 'read_pdf'
anakin87 commented 4 years ago

Did you install the right camelot package?

pip install camelot-py[cv]

FurstStern commented 4 years ago

Yes - I have tried all the suggestions that were in other posts relating to this problem.

knuspertante commented 4 years ago

Did you really type pip install camelot-py[cv] or pip install camelot only the first ist right!

FurstStern commented 4 years ago

Yes - I have tried all options - and yes I have uninstalled and reinstalled when/where necessary.

pcmt93 commented 4 years ago

Try this: import camelot.io as camelot

t-blume commented 3 years ago

Try this: import camelot.io as camelot

Thanks, I had the same issue and this actually solved it

chfw commented 3 years ago

my stupid mistake was:

$ pip install camelot which installed me a different package. What I should have done is: $pip install camelot-py[cv].

vijayuikey311 commented 2 years ago

AttributeError: module 'camelot' has no attribute 'read_pdf' on Windows #390

rose-isarose commented 1 year ago

I get this error: zsh: no matches found: camelot-py[cv] for the command line: pip install camelot-py[cv]

vanagandr-tyr commented 1 year ago

@rose-isarose La solución es simple debes escribir el comando de la siguiente forma:

pip install "camelot-py[cv]"

jameskohjunwei commented 1 year ago

@rose-isarose La solución es simple debes escribir el comando de la siguiente forma:

pip install "camelot-py[cv]"

Can confirm that this works

vaibhavmagon commented 1 year ago

This is throwing the following error:

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi

How do we go about it?