atlanhq / camelot

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

cannot import name 'get_compression_method' from 'pandas.io.common' and 'is_url' from pandas #403

Open marcecevallos opened 4 years ago

marcecevallos commented 4 years ago

Hi, I have been searching from this error online, but apparently Im the first one to have a problem pandas related while with camelot:

test[0].to_csv("foo.csv") results in: ImportError: cannot import name 'get_compression_method' from 'pandas.io.common' (C:\Users\marce\Anaconda3\lib\site-packages\pandas\io\common.py)

image

marcecevallos commented 4 years ago

The previous line also retrieves an error: image

pretishck commented 4 years ago

Having the same issue as well currently.

brendancol commented 4 years ago

@pretishck @marcecevallos I had a similar issue and it was due to using an older version of pandas, can you try conda update -c conda-forge pandas?

hdaijay commented 4 years ago

Current issue appear today

pretishck commented 4 years ago

@brendancol my issue came up because mine was the latest version :D. I downgraded it and resumed coding

hdaijay commented 4 years ago

@brendancol my issue came up because mine was the latest version :D. I downgraded it and resumed coding

May I know which version of Pandas work ?

pretishck commented 4 years ago

Pandas 0.25.1

elmir-ma commented 4 years ago

I am having the same issue with Pandas 0.23.4. Any update on this?

manaskumarpradhan commented 4 years ago

Pandas 0.25.1

Thnaks, this works :)

divatemangesh commented 4 years ago

Even though my python version is older but i havent chanaged anything on my computer except data it was working fine month back and now it is not.

mobiuscreek commented 4 years ago

If using pypi, I had the same problem with the latest version 1.0.4. Uninstalling and installing again fixed the problem.

tchaton commented 4 years ago

Same in pandas-1.0.5

GARV3007 commented 3 years ago

uninstalling and installing pandas again helped me. I faced this issue after I upgraded joblib.

ravichaurasia commented 3 years ago

For me pip install pandas==1.1.3 has worked

anirbansaha96 commented 3 years ago

For me pip install pandas==0.25.3 worked.