Hi! i just created a new prefect secret block and successfully registered it for use in the prefect UI using a CLI command and .py file. However, when I try to import the module for the block using
from __prefect_loader__ import TikTokCredentials
I receive a module not found error:
ModuleNotFoundError: No module named '__prefect_loader__
. Any recommendation for how to install the module used for this block?
n
Nate
05/07/2024, 8:04 PM
hi @Henningston Bernard - i believe
__prefect_loader__
is the placeholder module we use when we cant determine where you registered the block type from
how did you register the block type?
h
Henningston Bernard
05/07/2024, 9:33 PM
I registered it through a python file
Henningston Bernard
05/07/2024, 9:33 PM
would that mean I should use a different module?
n
Nate
05/07/2024, 9:35 PM
when you go to import your class, what happens if you just import from the module/file you registered from?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.