You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rechunked_a runs fine, but rechunked_b errors with a traceback that ends here:
~/miniconda3/lib/python3.8/site-packages/dask/core.py in _execute_task(arg, cache, dsk)
119 # temporaries by their reference count and can execute certain
120 # operations in-place.
--> 121 return func(*(_execute_task(a, cache) for a in args))
122 elif not ishashable(arg):
123 return arg
TypeError: tuple indices must be integers or slices, not tuple
I will keep digging into it, but this has to be some kind of weird bug in the rechunking code.
Dask 2021.07.2 (and main) still have the problem reported by @d-v-b in the minimal reproducible example.
It seems this might have been introduced in #7127 . @d-v-b would you mind taking a look at the changes on your PR and see if we can shine some light on this?
Fundamentally all that code just creates a new chunks tuple that is passed to .rechunk in coarsen. So I think we could minimize this code example by figuring out how coarsen is rechunking the input array.
The following is plain weird. The chunks are equal but rechunked_b.compute() fails ...
Activity
d-v-b commentedon Jul 2, 2021
more mysteries:
jrbourbeau commentedon Jul 2, 2021
Thanks for reporting @d-v-b.
git bisectpoints to #6580 has the point at which your example started to fail (cc @dcherian for visibility)dcherian commentedon Jul 2, 2021
oh hmm.. my code in that PR was totally rewritten by @d-v-b in #7127 but somehow the cause of this error stayed?
ncclementi commentedon Aug 5, 2021
Dask 2021.07.2 (and main) still have the problem reported by @d-v-b in the minimal reproducible example.
It seems this might have been introduced in #7127 . @d-v-b would you mind taking a look at the changes on your PR and see if we can shine some light on this?
dcherian commentedon Aug 5, 2021
Fundamentally all that code just creates a new chunks tuple that is passed to
.rechunkincoarsen. So I think we could minimize this code example by figuring out howcoarsenis rechunking the input array.The following is plain weird. The chunks are equal but
rechunked_b.compute()fails ...This error looks like a bad task graph key that isn't being replaced by an array at compute time.
phofl commentedon Aug 7, 2024
Looks like this was fixed a while ago, we should probably add a test though