'Modin[dask] on Apple M1 chip

I have successfully installed modin[dask] with conda on my Apple M1 chip MacBook Pro, but when I run the code, I got the below errors:

AttributeError: 'NoneType' object has no attribute 'ncores'.

The below is pip list(Python 3.10.4):

dask                          2022.5.0
distributed                   2022.5.0
modin                         0.11.3
pandas                        1.3.4

Thanks for any help.



Solution 1:[1]

It's hard to diagnose what's going on without seeing what code you ran and exactly how you installed everything.

Here's a blog post about setting up an M1-based Mac with dask: https://coiled.io/blog/apple-arm64-mambaforge/

The key points are:

  • start fresh with mambaforge
  • conda should be ok if mamba's not an options
  • install everything into a fresh environment and everything should come from the conda-forge channel.
mamba create --name=dask-env python=3.9 dask dask-labextension --channel=conda-forge

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Paul H