-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] New flytekit SDK versions fails when registering a script #5706
Comments
Thank you for opening your first issue here! 🛠 |
The error you're encountering ( According to this GitHub issue, Flytekit versions after 0.32.0 handle module names differently, which might be causing the Would you like more detailed steps or further assistance? Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not. Mention @RunLLM to ask follow-up questions. See runllm.com for more! |
Hi @eapolinario Any update on this Ticket/issue. |
@zshareef I was able to reproduce, trying to look what the possible problem is. Why are you not using |
Some bisecting points to flyteorg/flytekit#2367 as the culprit. We know that something broke after 1.11.0, the bug was introduced by. Here's the git bisect details:
Reverting that commit fixes the issue. The original PR is flyteorg/flytekit#2367. |
Hi @eapolinario Thank you very much for your reply. |
@zshareef @eapolinario I'm able to run your example with flytekit v1.13.6b2 |
Hi @pingsutw I have tested v1.13.6b2 and I would like to confirm you that the new version is working. Thanks !!! |
We're in the process of getting a release out shortly. In the meantime, I was able to verify that flyteorg/flytekit#2303 fixed this specific issue. |
Describe the bug
If we use flytekit 1.13.0 or higher version then we get the error that
failed to compile workflow
andTaskReferenceNotFound
. Till version flytekit==1.11.0 everything was working fine. But when we have a new clean installation withflytekit==1.13.0
or higher versions then we get the following error:debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to compile workflow for [resource_type:WORKFLOW project:\"playground\" domain:\"dev\" name:\"hello.hello_wf\" version:\"c2d8jj\"] with err failed to compile workflow with err Collected Errors: 1\n\tError 0: Code: TaskReferenceNotFound, Node Id: start-node, Description: Referenced Task [resource_type:TASK name:\"hello.hello_world\" version:\"c2d8jj\"] not found.\n", grpc_status:3, created_time:"2024-08-28T14:11:52.293396625+00:00"}"
Expected behavior
In expected behavior the workflow should be compiled and TaskReference should be found. The workflow should execute properly without any error.
Additional context to reproduce
Flytekit Issues
There is a bug in Flytekit SDK when registering a script.
Reproduce issue
Required software
Steps-to-reproduce
flytectl demo start
.docker run -it --network="host" python:3.11 /bin/bash
.apt update && apt install -y nano
pip install flytekite==1.13.4
./tmp
:mkdir /tmp/hello_world && cd /tmp/hello_world
touch hello_world.py
and edit the following content:touch flyte_runner.py
:"""Runs a Flyte workflow called directly from Python."""
python flyte_runner.py
Screenshots
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: