<@U07SGFC96G1> .from_source() using cloud storage ...
# pacc-oct-16-17-2024
b
@Kledia .from_source() using cloud storage 👋
k
Copy code
suggest_tags.perform.from_source(
    source=f"<s3://lc-prefect-dateng-staging1-uswest2/{bucket_path}suggest_tags.py>",
    entrypoint=entry_point,
).deploy(name="on-demand", work_pool_name="default", infrastructure=infrastructure)
🙌 1
gratitude thank you 1
b
For the
source
, maybe you could try removing the
suggest_tags.py
from the end of the path?
that should be part of your
entrypoint
instead. ie:
Copy code
entrypoint="my_file.py:my_flow"
gratitude thank you 1
k
Hi @Bianca Hoch I have made some changes regarding documentation like this:
Copy code
suggest_privilege_tags.from_source(
    source=storage,
    entrypoint=entry_point,
).deploy(
    name="on-demand",
    work_pool_name="default",
    job_variables={"env": {"EXTRA_PIP_PACKAGES": "prefect-aws"}},
    infrastructure=infrastructure,
)
but I am getting an error like this:
'S3Bucket' object has no attribute 'set_base_path'
b
👀 hmm
Are you using an S3 bucket for your source or entrypoint?
I'd double check you're using the S3 bucket block* that is not set to be deprecated
k
yes I am using S3 Bucket
Copy code
storage = S3Bucket.load("flow-code")
prefect version 2.13.8
marvin 1
gratitude thank you 1
Hi @Bianca Hoch do you have any suggestion for my issue please?
b
Hi Kledia, thanks for the reminder. I haven't been able to reproduce this yet, will get back to you ASAP