question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OverflowError: Python int too large to convert to C long

See original GitHub issue

I am testing limits of dd.concat by passing a list of 1000 dask.dataframes each 10M rows:

Traceback(selected)

bcolz_stack_ = dd.concat(list(dask.compute(*concat_dd_list)))
output_dd = input_dd.set_index('global_id', drop=False)

dataframe\core.py in set_index()
return set_index(...)

dataframe\shuffle.py in set_index()
._repartition_quantiles(...)

dask\async.py in get_async()
raise(remote_exception(res,tb))
OverFLowError: Python int too large to convert to C long

dask\async.py, line 249, in _execute_task
return func(*args2)

It worked fine for 100 dask.dataframes. I am working on Windows 64-bit.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ankravchcommented, Aug 3, 2016

Hmm, changing

a_dd = da.arange(start,stop, chunks=[chunksize])

to

a_dd = da.arange(start,stop, chunks=[chunksize], dtype=np.int64)

makes it work on Windows 64 bit.

0reactions
ankravchcommented, Aug 3, 2016

Or this one: https://github.com/paramiko/paramiko/issues/353 ‘The issue is with the low-level protocol decode – anything that’s a uint32 can be incorrectly decoded, or worse cause an integer overflow exception, if the MSB has the value -xff. The window size is sent as a uint32.’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python int too large to convert to C long" on windows but not ...
OverflowError : Python int too large to convert to C long. Now try with float conversion: df['temp'] = df['temp'].astype(float).
Read more >
[Solved] OverflowError: Python int too large to convert to C long
OverflowError: Python int too large to convert to C long is a typical error in python which occurs when you initialize too large...
Read more >
Bug: OverflowError: Python int too large to convert to C ssize_t ...
Just the snippet of the contract code that is throwing the error would be good, and any background needed to put it in...
Read more >
OverflowError: Python int too large to convert to C long
Hello, As the label names it, I am having issues w/ running some i2c-2 source on an am335x based, SiP board. I deal...
Read more >
Python int too large to convert to C long : r/learnpython - Reddit
Hey guys. Im learning data science and currently just working on basic multivariate linear regression. Im trying to implement code by a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found