Abhinay Dronavally
06/13/2023, 6:29 AMNormal Pulled 61s kubelet Container image "postgres:15-alpine" already present on machine
Normal Created 61s kubelet Created container wait-for-db
Normal Started 61s kubelet Started container wait-for-db
Is there a way to bypass this check?Nuno Martins
06/13/2023, 9:23 AMpyflyte run
using the flags
--remote
and --image <IMAGE>
), but I always get
an error saying that I am missing packages, for
example scikit-learn, which I indeed am missing
locally.
How can I get around this error, since the workflows
will not be running locally?
ThanksRobert Ambrus
06/13/2023, 9:42 AMSANDBOX
environment.
I've read the Plugin setup guide. As I understand, basically I need to add config changes to values-override.yaml
and upgrade the flyte helm release with that overrides.
Can you please tell me how to do this in the SANDBOX
environment?Albert Wibowo
06/13/2023, 9:52 AMMatplotlib created a temporary config/cache directory at /tmp/matplotlib-dqrfqnc3 because the default path (/home/flytekit/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
My flyte workflow is quite simple and is as follow:
@task()
def get_data() -> pd.DataFrame:
data_dict = load_breast_cancer(as_frame=True)
print(data_dict['data'].head())
return data_dict['data']
@task()
def clean_data_pre_split(data:pd.DataFrame) -> pd.DataFrame:
return data
@workflow()
def training_workflow():
data = get_data()
data = clean_data_pre_split(data=data)
return
user
06/13/2023, 4:00 PMKishore Vikram
06/13/2023, 4:44 PMKetan (kumare3)
Samhita Alla
Kevin Su
06/14/2023, 7:10 AMit complains boto3 not foundDoes flyteConsole show this error? or this error happens locally
Robert Ambrus
06/14/2023, 9:42 AMpyflyte
on the cluster and triggered the run like this:
pyflyte run -remote dbx_example_existing_cluster.py my_databricks_job
The Databricks job is started, but failing with this error:
TypeError: loader must define exec_module()
Robert Ambrus
06/14/2023, 9:42 AMVictor Churikov
06/14/2023, 11:48 AMAlbert Wibowo
06/14/2023, 12:24 PMAriel Kaspit
06/14/2023, 2:47 PMAlbert Wibowo
06/14/2023, 3:25 PMflytectl demo start
on specific docker context? Apologise for spamming questions here - still trying to learn the rope๐Rezwan Abir
06/14/2023, 4:30 PMRezwan Abir
06/14/2023, 4:51 PMpyflyte --pkgs flyte.workflows package --image me/pdi:flyte-0.0.2.rez-dev
and from this package i do a register flytectl register files --config /Users/rezwan.abir/.flyte/config.yaml --destinationDirectory . --project flytesnacks --domain development --archive flyte-package.tgz
but when I test workflow it says ModuleNotFoundError: No module named 'boto3'
Rezwan Abir
06/14/2023, 4:51 PMKevin Su
06/14/2023, 6:19 PMCody Scandore
06/14/2023, 6:23 PMpyflyte
executions are failing.
Failed with Exception Code: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.INTERNAL
details: failed to create a signed url. Error: WebIdentityErr: failed to retrieve credentials
caused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity
status code: 403, request id: 5efc9c88-fdcb-42ab-bea8-8de7a79101e9
Debug string UNKNOWN:Error received from peer {grpc_message:"failed to create a signed url. Error: WebIdentityErr: failed to retrieve credentials\ncaused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity\n\tstatus code: 403, request id: 5efc9c88-fdcb-42ab-bea8-8de7a79101e9", grpc_status:13, created_time:"2023-06-14T11:16:05.730571-07:00"}
Victor Churikov
06/14/2023, 6:35 PMJoseph Yi
06/14/2023, 6:38 PMflytectl sandbox start --source .
When I run:
flytectl sandbox exec -- docker build . --tag "flyte:image_tag"
it now gives me the error
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Dockerfile: no such file or directory
Did anything change?Mike Morgan
06/14/2023, 8:50 PMRezwan Abir
06/14/2023, 9:34 PMflytectl demo exec -- docker build . --tag "flyte:v1"
Rezwan Abir
06/14/2023, 9:34 PMOCI runtime exec failed: exec failed: unable to start container process: exec: "docker": executable file not found in $PATH: unknown
Rezwan Abir
06/14/2023, 9:34 PMdocker
in the terminal without issuesDamon Snyder
06/14/2023, 9:46 PMpyflyte run --remote ... path/to/code.py workflow
then make changes to path/to/code.py
including the workflow
method or any of its dependencies those changes don't take effect if I pyflyte run
the same workflow again. I think a) I don't fully understand the execution model and b) I need some pointers from the community ๐ on how to iterate on developing workflows. Thanks!Nuno Martins
06/15/2023, 8:00 AM--image
parameter. I am interested in using whylogs, but if I include flyteplugins-whylogs (tried 1.4.2, 1.5.0, 1.6.1, 1.6.2 and 1.7.0), all my workflows fail without error message, even if I'm not importing whylogs in my code. On the other hand, if I remove this plugin, the workflows work normally. Is there something wrong with the plugin?Albert Wibowo
06/15/2023, 9:48 AMflytectl demo start
and flytectl sandbox start
? For context, I am NOT using Docker Desktop. I am using Docker Engine + Colima. As such, my docker host is in another path. To change it, I ran the following command as per @Marti Jorda Roca' suggestion:
export DOCKER_HOST= .......
flytectl config init
When I ran flytectl sandbox start
, it worked perfectly fine. But if I ran flytectl demo start
instead, my workflow failed. Any idea what's happening under the hood? I also tried to use my own docker image when running flytectl sandbox start
but turns out it did not spin up local registry. Any work around?Raphael Guzman
06/15/2023, 12:44 PM@task
decorators and wondering if there is a way to combine it with another decorator I am already using.
Here is a simple toy example. Does anyone have any ideas why this doesn't work when uncommenting the flyte decorator? I get an error that it doesn't recognize the new argument (see below).
Any help is appreciated!
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /workspaces/workflow-orchestration-poc/test2.py:54 in <module> โ
โ โ
โ โฑ 54 print(fun1(b=3)) # 3 - 1 + 2 + 7 = 11 โ
โ โ
โ /usr/local/lib/python3.9/site-packages/flytekit/core/base_task.py:304 in __call__ โ
โ โ
โ โฑ 304 โ โ return flyte_entity_call_handler(self, *args, **kwargs) # type: ignore โ
โ โ
โ /usr/local/lib/python3.9/site-packages/flytekit/core/promise.py:1086 in โ
โ flyte_entity_call_handler โ
โ โ
โ โฑ 1086 โ โ โ raise ValueError( โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
ValueError: Received unexpected keyword argument 'b' in function 'fun1'