Closed michael-johnson-lucas closed 5 years ago
Thanks for the report!
Yes, there was a breaking change in pandas between versions 0.22 and 0.23 for pandas.io.common.get_filepath_or_buffer
(https://github.com/pandas-dev/pandas/pull/19645#issuecomment-425191806).
The proposed fix is Python 3 only, something like the following should work with both 2 and 3 though,
reader, encoding, compression = get_filepath_or_buffer(url)[:3]
A pull request to fix it would be very much appreciated!
Thank you very much.
This is very helpful and I really appreciate your work. FYI your library rocks 💯
Thanks @michael-johnson-lucas ! Great to know that you find this library useful :)
Another workaround until new version is released is to fix pandas version to 0.22.0 .
Thanks for the reminder.
Compatibility with pandas 0.23 should be fixed in the 0.1.1 release, please upgrade with,
pip install --upgrade --no-deps pgeocode
Description
At the first run, whenever trying to download a new country, you get this error. A solution has been provided.
Pipfile
Error
Change
File: pgeocode.py