Hi all, We seem to be running into an error with ...
# ask-metaflow
a
Hi all, We seem to be running into an error with the
metaflow-netflixext
bleeding edge extension. When running
metaflow environment resolve --arch=linux-64 -f env.yml --alias library_search
, we get an error now
1
Copy code
Creating local datastore in current directory (/home/sagemaker-user/fml-predictive-search-research/.metaflow)
Traceback (most recent call last):
  File "/opt/conda/bin/metaflow", line 8, in <module>
    sys.exit(start())
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/cmd/environment/environment_cmd.py", line 133, in wrapper
    return func(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/cmd/environment/environment_cmd.py", line 804, in resolve
    cast(Conda, obj.conda).virtual_packages, cur_arch, False
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 232, in virtual_packages
    if "virtual_pkgs" in self._info:
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 2279, in _info
    self._find_conda_binary()
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 1789, in _find_conda_binary
    self._ensure_local_conda()
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 1839, in _ensure_local_conda
    err = self._validate_conda_installation()
  File "/opt/conda/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 2052, in _validate_conda_installation
    if parse_version(self._info_no_lock) < parse_version("2.0.0"):
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/packaging/version.py", line 52, in parse
    return Version(version)
  File "/opt/conda/lib/python3.10/site-packages/metaflow/_vendor/packaging/version.py", line 195, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object
d
ah yes — I have a PR for compatibility with mamba 2.0+ but the tests keep failing (I think it’s a flaky test or that conda doesn’t like github to ping it so often). You can try that branch but I’ll also get it cleaned up and just merge. We have been using it internally for a while (although not with mamba 2.0+ everywhere) and it works fine.
a
Oh I see got it - thanks @dry-beach-38304!
d
as a side note: conda-lock 3.0 is still held up with issues with mamba 2.0 so ymmv
👌 1
a
Ok - we just downgraded to mamba 1.x and that resolved the issue. Thanks!
👍 1