Hi all, i am getting this error `ModuleNotFoundErr...
# prefect-community
m
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
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
Hi Kyle, i am using Pycharm which uses pip by default
k
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
no it is not
neither is prefect
let me install it
👍 1
k
Great, once you've installed using pip, Prefect should show up as version 0.13.3.
👍 1
m
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
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
thanks.. will give it a shot
got it working on the terminal. theres some issue with pycharm. Thank you for the help!
👍 1