https://prefect.io logo
c

Chanaka De Silva

12/05/2022, 8:16 PM
All, I am running a flow using prefect UI and hitting a
ModleNotFound
error. I register the code as follows
Copy code
prefect register --project CHX -p sparsify.py -n "sparsify" --label chx-2022-2.2
The folder where
sparsify.py
sits has the missing module’s python code; masks.py. And I import the module and relevant functions as follows
Copy code
from masks import MaskClient, combine_masks
Somehow when I run sparsify via UI it can’t find it. The code just runs fine in an
ipython
session
1
k

Kalise Richmond

12/06/2022, 4:23 PM
Hi @Chanaka De Silva, you might find this discourse article helpful in trouble shooting your error. I know we have made significant improvements in Prefect 2 with the new concept of Deployments which will prevent you from running into the "NoModuleFound" errors.
👍 1
c

Chanaka De Silva

12/06/2022, 6:29 PM
Thank you @Kalise Richmond
6 Views