Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
OverflowError: Python int too large to convert to C long #392
Yes, line 119 is under-indented – good catch, I'll fix.
I can force a similar error as you get on line 112 if I try
Can you confirm you're on a 32-bit python? (What does
This spot could (and probably should) be adapted to still work under 32-bit python. But, given the other spot you got the same error, and the possibility of other similar recurring problems elsewhere (because the developers and build/test machines are probably all 64-bit python), the approach likely to skip the most future problems would be to use a 64-bit python.
Also, if you're running these pure-python method implementations, your training will go at about 1/100th the speed compared to having the c-variants working. So getting that working might both sidestep this issue and offer other benefits.