Skip to content
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

OverflowError: Python int too large to convert to C long #16

Closed
DataMonk2017 opened this issue Apr 14, 2016 · 4 comments · Fixed by #23
Closed

OverflowError: Python int too large to convert to C long #16

DataMonk2017 opened this issue Apr 14, 2016 · 4 comments · Fixed by #23

Comments

@DataMonk2017
Copy link

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
Copy link

swails commented Apr 15, 2016

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
Copy link
Author

pi
Here your are.

@swails
Copy link

swails commented Apr 20, 2016

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
Copy link
Author

Oh thank you~.XD

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

Successfully merging a pull request may close this issue.

2 participants