No module named dask when running flyte dask task


Getting the following error trying to run flyte + dask task. Apparently my custom build image is missing dask.  

[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes. [f7ff659ca25e040d89db-n0-0] terminated with exit code (1). Reason [Error]. Message: otstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/root/workflows/hellodask.py", line 7, in <module> from dask import array as da ModuleNotFoundError: No module named 'dask'

All you need to do is ensure, your requirements.txt is updated.


flytekit>=1.2.7
pandas
scikit-learn
dask
flytekitplugins-dask

Rebuild your image and re-run your workflow. 


 

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm