hundreds-wire-22547
09/15/2025, 9:31 PMInvalid self.next() transition detected on line 52:
Foreach iterator over table_batches in step start produced zero splits. Check your variable.
melodic-farmer-82535
09/15/2025, 4:43 PMfew-dress-69520
09/15/2025, 11:11 AMenv_name
to define the env a step should be executed with:
@named_env(
name="@{METAFLOW_INIT_ENV_NAME}",
fetch_at_exec=True,
)
If I understand the docs correctly, this is how it should be used.
Indeed, this does work fine locally and on AWS batch, presumably because it executes this code which assembles the necessary variables from the flow parameters.
But when I deploy it as a step-function it instead executes bootstrap_environment (in particular CondaEnvironment.sub_envvars_in_envname without the addl_env argument) which doesn't parse the flow parameters and thus fails with metaflow.metaflow_environment.InvalidEnvironmentException: Could not find 'METAFLOW_INIT_ENV_NAME' in the environment -- needed to resolve '@{METAFLOW_INIT_ENV_NAME}'
Is it possible to also include code like this in the bootstrap_environment function?fast-vr-44972
09/12/2025, 9:09 AMenough-article-90757
09/11/2025, 8:23 PMNote that the flow was deployed with a modified name due to Kubernetes naming
conventions on Argo Workflows. The original flow name is stored in the workflow
annotations.
Internal error
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/cli.py", line 658, in main
start(auto_envvar_prefix="METAFLOW", obj=state)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
return self.main(args, kwargs)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/cli_components/utils.py", line 69, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
return callback(args, kwargs)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/_vendor/click/decorators.py", line 33, in new_
func
return f(get_current_context().obj, args, kwargs)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/plugins/argo/argo_workflows_cli.py", line 341,
in create
ArgoWorkflows.delete(obj._v1_workflow_name)
File "/opt/pyenv/versions/3.9.23/lib/python3.9/site-packages/metaflow/plugins/argo/argo_workflows.py", line 263, in
delete
workflow_template["metadata"]["annotations"].get(
TypeError: 'NoneType' object is not subscriptable
This is the version I'm running:
❯ pip show metaflow
Name: metaflow
Version: 2.18.3
Summary: Metaflow: More AI and ML, Less Engineering
Home-page:
Author: Metaflow Developers
Author-email: <mailto:help@metaflow.org|help@metaflow.org>
License: Apache Software License
Location: /opt/pyenv/versions/3.9.23/lib/python3.9/site-packages
Requires: boto3, requests
Required-by:
Is this a Metaflow error?famous-airline-14628
09/11/2025, 11:07 AMshy-midnight-40599
09/10/2025, 4:25 PMhappy-journalist-26770
09/09/2025, 12:58 PMfast-vr-44972
09/09/2025, 12:07 PMpypi.
fast-vr-44972
09/09/2025, 12:01 PMpypi
seems to be managing its own virtual env.
https://github.com/Netflix/metaflow/blob/master/metaflow/plugins/pypi/pypi_decorator.py#L35quick-carpet-67110
09/09/2025, 11:19 AMimage
in @kubernetes
decorator together @pypi
decorator
Hey everyone!
We have a situation where most of our steps share a lot of packages but still require custom installations every now and then.
So we have a base Docker image that is built with all of the common dependencies, but we would like to use the @pypi
decorator to install the custom deps on the fly. Is this currently possible?
I did a quick and dirty example flow with a custom base image and a custom dependency installed in the @pypi
decorator and the code inside the step was not able to import PyTorch, even though it is available in the custom image.
@kubernetes(tolerations=[{"key": "something", "operator": "Equal", "value": "another_value", "effect": "NoSchedule"}], gpu=1, image="pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime")
@pypi(python="3.10.0",
packages={
"implicit": "0.7.2",
},
)
@step
def gpu(self):
I searched in the docs and was able to find some information, but I am not sure if system-wide
packages in the snippet refers to the container images packages or something else. Can anyone shed some light on whether or not the setup I am describing above is achievable with Metaflow?
Thank you!ancient-fish-13211
09/03/2025, 1:40 PMhundreds-wire-22547
09/02/2025, 11:20 PMversion = "2.10.5"
-> version = "2.11.7"
and now seeing an error like below, is this a known issue?
File "/tmp/ray/session_2025-06-16_12-59-52_860923_1/runtime_resources/working_dir_files/_ray_pkg_e01e7abcca487ccc/metaflow/datastore/task_datastore.py", line 369, in load_artifacts
yield name, pickle.loads(blob)
^^^^^^^^^^^^^^^^^^
AttributeError: 'FieldInfo' object has no attribute 'evaluated'
clever-midnight-3739
09/02/2025, 4:22 PMadorable-truck-38791
09/01/2025, 1:55 PMmetaflow-dev up
command... it seems to be mostly working, but it seems to keep asking for my password when it's starting all of the services. the weirder thing is that it keeps saying my password is wrong, so i'm not even sure what password it's trying to ask for (is it something related to the minikube/argo roles or something like that? I have no idea)- any thoughts on what I should be trying to fix this?crooked-camera-86023
08/29/2025, 10:51 PMancient-fish-13211
08/29/2025, 10:04 AMfrom metaflow import FlowSpec, step, kubernetes, retry
FlowSpec and step import fine, but I get Cannot find reference errors for kubernetes and retry. If I launch a python console or a notebook the imports work fine so it seems like an indexing issue. I've tried the typical invalidate caches, with no luck. I'd rather not just disable the warnings if possible.
Has anyone had similar issues or have a solution? Many thanksdry-beach-38304
08/28/2025, 7:39 AMnarrow-forest-28560
08/27/2025, 11:12 PMsquare-wire-39606
08/27/2025, 9:29 PMsquare-wire-39606
08/27/2025, 9:28 PMsquare-wire-39606
08/27/2025, 9:27 PMcalm-rainbow-82717
08/26/2025, 7:41 PMmyflow.py
. I want to create something like python myflow.py data check
``python myflow.py data plan` next to the existing ones python myflow.py run
``python myflow.py show` , any idea if it's possible to do this?
I see it seems possible to use the metaflow-extension-template? And I also wonder if there's some other way to achieve the goal. like the customizing stepdecorators using a generator function.
Thanks in advance!hundreds-receptionist-20478
08/26/2025, 7:11 PMgreat-egg-84692
08/26/2025, 5:02 PMfew-dress-69520
08/26/2025, 11:17 AMPIP_EXTRA_INDEX_URL=<url_with_temporary_token> metaflow environment resolve -r requirements.txt --alias test_env
which fails already in the first step of resolving the environment. It just doesn't have access to the private repo and fails to resolve any private packages.
ERROR: Could not find a version that satisfies the requirement <private-package>==0.1 (from versions: none)
ERROR: No matching distribution found for <private-package>==0.1
Strangely, when creating a pip.conf that contains the extra-index-url it almost works. When running
PIP_CONFIG_FILE=pip.conf metaflow environment resolve -r requirements.txt --alias test_env
Metaflow is able to resolve the environment including the private packages and their dependencies, but in the step where it downloads the packages from the web, I get a 401 Client Error: Unauthorized for url:
for the private repo. It looks like when trying to download from the web it doesn't use the pip.conf anymore but instead tries to directly access the url prepared earlier in the process (without the token) and hence fails. I see that there is some auth handling here but this doesn't seem to do the thing that's necessary for my use case.
I'm using metaflow==2.15.21 and metaflow-netflixext==1.2.3.acoustic-river-26222
08/23/2025, 6:03 PMnetflixoss/metaflow_metadata_service:v2.4.12
for the UI service startup. When running the command i get "/opt/latest/bin/python3 -m services.ui_backend_service.ui_server": stat /opt/latest/bin/python3 -m services.ui_backend_service.ui_server: no such file or directory
. Do you know if the path of the container init script changed ? 😁bland-garden-80695
08/23/2025, 12:04 AMadorable-truck-38791
08/22/2025, 2:30 PMFlowSpec
subclass such that one of the steps calls whatever random function gets thrown into the mix
2. Managing the underlying packages backing the different runs
I might be way over-complicating this, so I would appreciate any thoughts or pointers! I'm happy to dig into the code and work through some of the internal APIs for this. I do realize there are security concerns with executing arbitrary functions in this manner, but I think that is manageable in the environment we work inbrash-gold-6157
08/21/2025, 2:49 PM