Skip to content

ZipFile not importable from pandas.io.common in master #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bashtage opened this issue Feb 10, 2017 · 3 comments
Closed

ZipFile not importable from pandas.io.common in master #280

bashtage opened this issue Feb 10, 2017 · 3 comments

Comments

@bashtage
Copy link
Contributor

A recent build of pandas

from pandas.io.common import ZipFile
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-46d2e6f63b6b> in <module>()
----> 1 from pandas.io.common import ZipFile

ImportError: cannot import name 'ZipFile'

pd.__version__
Out[3]: '0.19.0+376.ga23a92f3e'

from pandas.io.common import ZipFile
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-46d2e6f63b6b> in <module>()
----> 1 from pandas.io.common import ZipFile

ImportError: cannot import name 'ZipFile'

Looks like an easy fix using zipfile.ZipFile. Suppose this is just legacy from when this was in pandas.

@bashtage
Copy link
Contributor Author

bashtage commented Feb 10, 2017

from pandas.io.common import ZipFile

Also in edgar.

from pandas.io.common import ZipFile

femtotrader added a commit to femtotrader/pandas-datareader that referenced this issue Feb 10, 2017
@aking1012
Copy link

I fixed edgar for py3k, and I don't see this bug locally.

@gliptak
Copy link
Contributor

gliptak commented Jul 7, 2017

@bashtage This was corrected by #281

@bashtage bashtage closed this as completed Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants