crooked-holiday-38139
10/15/2025, 1:34 PMModuleNotFoundError: No module named 'site-packages.flytekit'
This causes a change down which seems to affect the container args (I'm not sure what these are), but we get this because if I change the dependencies on the image but not the tasks in the workflow I get an error asking me to re-register the task:
/template/Target/Container/args/23:
- flytekit.core.python_auto_container.default_task_resolver
+ site-packages.flytekit.core.python_auto_container.default_task_resolver
... I believe the error "No module named 'site-packages.flytekit'" occurs because load_object_from_module() gets passed *site-packages.*flytekit.core.python_auto_container.default_task_resolver and not flytekit.core.python_auto_container.default_task_resolver but I don't know what leads to this import path being passed in.
I'll post a minimal working example package that causes the break once I've factored one out, but does anyone know what's happening here?crooked-holiday-38139
10/15/2025, 1:35 PMcrooked-holiday-38139
10/15/2025, 3:42 PM__init__ in the root of the package we have created; we use the src-layout format. Here is the minimally reproducible package, "flyte_breaker".
I don't quite know why it breaks the flytekit, but that's for another day