thampiman/reverse-geocoder

OverflowError: Python int too large to convert to C long

DataMonk2017 opened this issue · 4 comments

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.

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?

pi
Here your are.

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.

Oh thank you~.XD