Skip to content
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

fix: missing key lookup on mamba versions #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

s22chan
Copy link

@s22chan s22chan commented Feb 27, 2025

otherwise we get this:

  File "/usr/lib/python3.13/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 1839, in _ensure_local_conda
    err = self._validate_conda_installation()
  File "/usr/lib/python3.13/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 "/usr/lib/python3.13/site-packages/metaflow/_vendor/packaging/version.py", line 52, in parse
    return Version(version)
  File "/usr/lib/python3.13/site-packages/metaflow/_vendor/packaging/version.py", line 195, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object, got 'dict'

otherwise we get this:

```python
  File "/usr/lib/python3.13/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 1839, in _ensure_local_conda
    err = self._validate_conda_installation()
  File "/usr/lib/python3.13/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 "/usr/lib/python3.13/site-packages/metaflow/_vendor/packaging/version.py", line 52, in parse
    return Version(version)
  File "/usr/lib/python3.13/site-packages/metaflow/_vendor/packaging/version.py", line 195, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object, got 'dict'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant