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
{{ message }}
Repository navigation
KMeans fit TypeError expected dtype object, got 'numpy.dtype[float64]' #802
I've tried a few combinations of different versions of dask, numpy and numba, but on Python 3.8 (and Linux), and I haven't been able to reproduce the issue.
Could you, please, try to update to the latest version of numba and then attempt to run your example again?
If this doesn't help, could you provide the version numbers for distributed and numba, and also the entire Traceback, please?
I think this issue can be labeled with "Needs Info" in the meantime.
I wrote in #803 that it might be possibly related to #802, but having discovered the aforementioned series of issues, I believe that #802 and #803 are unrelated.
If you could, please, provide some info about the underlying package versions in your environment and a Traceback, it would be greatly appreciated, and help discover the root cause sooner.
As suggested in my comment above, this was resolved via upgrading numba to the latest available version. I just did python3 -m pip install numba==0.53.0, and this has enabled me to run the K-Means|| example.
Please, have a go at upgrading the numba version (you might need to update llvmlite to something compatible as well, e.g., 0.32.1; if you do, please, take a note of your current version of llvmlite, so that you can always revert back later on, if needs be). If you don't want to globally affect your local versions, you can test with an updated version of numba via venv or via a Docker container.
Activity
TomAugspurger commentedon Mar 14, 2021
Can you search on the Dask / distributed issue trackers for similar issues? I vaguely recall similar issues but can't find them right now.
Mimran0715 commentedon Mar 20, 2021
I'm also having a similar issue. I think #803 is closed but not sure how to get rid of TypeError.
hristog commentedon Mar 21, 2021
Hi @Maia97,
I think the series of issues (and PRs) that @TomAugspurger has referred to is as follows:
I've tried a few combinations of different versions of
dask,numpyandnumba, but on Python 3.8 (and Linux), and I haven't been able to reproduce the issue.Could you, please, try to update to the latest version of
numbaand then attempt to run your example again?If this doesn't help, could you provide the version numbers for
distributedandnumba, and also the entireTraceback, please?I think this issue can be labeled with "Needs Info" in the meantime.
hristog commentedon Mar 21, 2021
Hi @Mimran0715,
I wrote in #803 that it might be possibly related to #802, but having discovered the aforementioned series of issues, I believe that #802 and #803 are unrelated.
If you could, please, provide some info about the underlying package versions in your environment and a
Traceback, it would be greatly appreciated, and help discover the root cause sooner.Thanks!
Mimran0715 commentedon Mar 21, 2021
Thanks for responding. I'm just trying to run the K-means cluster example here: https://examples.dask.org/machine-learning/training-on-large-datasets.html


Here is the Traceback:
Here are some details abt the package versions:
hristog commentedon Mar 21, 2021
Thanks for the further info provided, @Mimran0715!
I confirm I've been able to reproduce the issue locally, using the following versions:
As suggested in my comment above, this was resolved via upgrading
numbato the latest available version. I just didpython3 -m pip install numba==0.53.0, and this has enabled me to run the K-Means|| example.Please, have a go at upgrading the
numbaversion (you might need to updatellvmliteto something compatible as well, e.g.,0.32.1; if you do, please, take a note of your current version ofllvmlite, so that you can always revert back later on, if needs be). If you don't want to globally affect your local versions, you can test with an updated version ofnumbavia venv or via a Docker container.Thanks!
Require numba>=0.51.0 (dask#802)
Require numba>=0.51.0 (#802) (#809)
jrbourbeau commentedon Mar 22, 2021
Should be closed by #809. @Maia97 feel free to re-open if that's not the case