OverflowError: Python int too large to convert to C long
DataMonk2017 opened this issue · 4 comments
DataMonk2017 commented
When I try to run the module in python 3.0 and up version, it will return an error:OverflowError: Python int too large to convert to C long. However, it should be fine when I run in python 2.0 and up 2.7 version.
swails commented
I just used this in Python 3.5 and didn't see this problem. Can you post a minimal script that is giving rise to these errors?
DataMonk2017 commented
swails commented
Oh, this is Windows... works fine in Linux :). You can replace line 8 in reverse_geocoder/__init__.py
with a much smaller number:
csv.field_size_limit(2**16)
That should work fine.
DataMonk2017 commented
Oh thank you~.XD