https://prefect.io logo
Title
m

Minakshi

08/25/2020, 12:50 AM
Hi all, i am getting this error
ModuleNotFoundError: No module named 'dask.system'
while importing
File "/Users/mkorad/PycharmProjects/altruistic-armadillo/src/**", line 1, in <module>
from prefect import task, Flow, Parameter
Any idea about this error?
k

Kyle Moon-Wright

08/25/2020, 1:01 AM
Hey @Minakshi, Can you provide a bit more context? What package manager are you using? This looks like your dependencies haven't been installed correctly.
m

Minakshi

08/25/2020, 1:03 AM
Hi Kyle, i am using Pycharm which uses pip by default
k

Kyle Moon-Wright

08/25/2020, 1:04 AM
Cool, Dask should be installed with your Prefect package, so this module should be available with a fresh Prefect install.
If you
pip list
, is the Dask module listed?
m

Minakshi

08/25/2020, 1:12 AM
no it is not
neither is prefect
let me install it
👍 1
k

Kyle Moon-Wright

08/25/2020, 1:15 AM
Great, once you've installed using pip, Prefect should show up as version 0.13.3.
👍 1
m

Minakshi

08/25/2020, 1:53 AM
so here's the problem, pip by default is using python 2.7 and i have to do
python3 -m pip list
and then i can see prefect and dask installed. but
pip list
doesnt show it. also i see the stack trace is from
python 3.8
folder File
"/usr/local/lib/python3.8/site-packages/distributed/worker.py", line 25, in <module>
from dask.system import CPU_COUNT
ModuleNotFoundError: No module named 'dask.system'
any workaround for this?
k

Kyle Moon-Wright

08/25/2020, 2:00 AM
Hmm, Prefect requires at least Python 3.6 for usage so there's no getting around that. I'd recommend setting a version of Python3 to be your default python version to ensure your computer knows where to pull modules from. Also for reference, I am able to
from dask.system import CPU_COUNT
using python 3.8 without error.
m

Minakshi

08/25/2020, 4:47 AM
thanks.. will give it a shot
got it working on the terminal. theres some issue with pycharm. Thank you for the help!
👍 1