Has anyone seen this error before. ```> python...
# ask-metaflow
c
Has anyone seen this error before.
Copy code
> python3 slide_to_tiff.py --environment=conda environment resolve --force


Metaflow 2.12.10+netflix-ext(1.2.1) executing SlideToTIFF for user:mikebentleymills
    Resolving 2 environments ... done in 277 seconds.
    Internal error
Traceback (most recent call last):
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/cli.py", line 1134, in main
    start(auto_envvar_prefix="METAFLOW", obj=state)
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/tracing/__init__.py", line 27, in wrapper_func
    return func(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
    return self.main(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 782, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
    return callback(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow/_vendor/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/metaflow_extensions/netflix_ext/plugins/environment_cli.py", line 177, in resolve
    assert _all_local_instances
AssertionError
1
d
I think I know what the issue is. could you change line 177 to say:
assert _all_local_instances is not None
(there is another one further down too).
That should fix it.
(I am adding a few small fixes so if that does it for you I’ll incorporate that one as well)
for context, I suspect this is happening because there are no local environments like the ones you just resolved and the check is wrong — it just needs to make sure that it looked for all instances and not finding any is totally legit
The error should also go away if you run any flow locally with a Conda/pypi environment.
c
@dry-beach-38304
assert _all_local_instances is not None
This fixed the issue thank you
👍 1