cuddly-family-48123
02/09/2023, 8:02 PMcuddly-family-48123
02/09/2023, 8:06 PMalert-florist-32940
02/09/2023, 8:32 PMdry-beach-38304
02/09/2023, 9:00 PMcuddly-family-48123
02/09/2023, 9:09 PMdry-beach-38304
02/09/2023, 9:36 PMdry-beach-38304
02/10/2023, 12:05 AMdry-beach-38304
02/10/2023, 12:05 AMcuddly-family-48123
02/10/2023, 10:01 PMelif datastore_type == "azure" here?
https://github.com/Netflix/metaflow-nflx-extensions/blob/3445dfe20a93680126080a2af[…]a3249f8f/metaflow_extensions/netflix_ext/plugins/conda/utils.pydry-beach-38304
02/10/2023, 10:28 PMdry-beach-38304
02/10/2023, 10:29 PMcuddly-family-48123
02/10/2023, 10:36 PMdry-beach-38304
02/10/2023, 10:36 PMdry-beach-38304
02/10/2023, 10:53 PMdry-beach-38304
02/10/2023, 10:55 PMdry-beach-38304
02/10/2023, 10:56 PMCONDA_PREFERRED_FORMAT to .conda)cuddly-family-48123
02/10/2023, 11:24 PMcuddly-family-48123
02/11/2023, 1:14 AM"CONFIG_%sROOT" with "CONDA_%sROOT" on line 77 of /home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/utils.py
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials/param-ex$ python simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.5) executing SimpleConda for user:bbrandt
Internal error
Traceback (most recent call last):
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 1172, in main
start(auto_envvar_prefix="METAFLOW", obj=state)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
return self.main(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1256, in invoke
Command.invoke(self, ctx)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
return callback(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/decorators.py", line 21, in new_func
return f(get_current_context(), args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 1009, in start
ctx.obj.environment.validate_environment(echo, datastore)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_environment.py", line 169, in validate_environment
self._conda = Conda(echo, datastore_type)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 145, in __init__
get_conda_root(self._datastore_type)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/utils.py", line 77, in get_conda_root
conda_root = getattr(mf_config, "CONFIG_%sROOT" % datastore_type.upper())
AttributeError: module 'metaflow.metaflow_config' has no attribute 'CONFIG_AZUREROOT'cuddly-family-48123
02/11/2023, 1:16 AM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ cd /home/bbrandt/src/tutorials ; /usr/bin/env /home/bbrandt/mambaforge/envs/intro-to-mf/bin/python /home/bbrandt/.vscode-server/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 57631 -- /home/bbrandt/src/tutorials/param-ex/simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.5) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Internal error
Traceback (most recent call last):
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 1172, in main
start(auto_envvar_prefix="METAFLOW", obj=state)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
return self.main(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
return callback(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 691, in wrapper
return func(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/decorators.py", line 33, in new_func
return f(get_current_context().obj, args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 828, in run
before_run(obj, tags, decospecs + obj.environment.decospecs())
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 877, in before_run
decorators._init_step_decorators(
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/decorators.py", line 541, in _init_step_decorators
deco.step_init(
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_step_decorator.py", line 195, in step_init
self._base_attributes = self._get_base_attributes()
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_step_decorator.py", line 346, in _get_base_attributes
return self._flow._flow_decorators["conda_base"].attributes
AttributeError: 'list' object has no attribute 'attributes'
I think this may be a clue for us:
`# _flow_decorators. _flow_decorators is of type `{key:[decos]}``
https://github.com/Netflix/metaflow/blob/2f9e443574de038a40f9af0d07b6fc71327dce8b/metaflow/decorators.py#L404dry-beach-38304
02/11/2023, 2:03 AMdry-beach-38304
02/11/2023, 2:04 AMdry-beach-38304
02/11/2023, 2:11 AMdry-beach-38304
02/11/2023, 2:12 AMcuddly-family-48123
02/13/2023, 7:19 PMpip install metaflow-netflixext --upgrade and trying it out now. Next error I ran into was:
Internal error:
Azure error: Operation returned an invalid status 'This request is not authorized to perform this operation using this permission.'
ErrorCode:AuthorizationPermissionMismatch
But that just required adding the Storage Blob Data Contributor Role to my service principal account I was running under.
Kind of like this: https://stackoverflow.com/a/52770419dry-beach-38304
02/13/2023, 7:22 PMdry-beach-38304
02/13/2023, 7:22 PMcuddly-family-48123
02/13/2023, 7:23 PMdry-beach-38304
02/13/2023, 7:23 PMdry-beach-38304
02/13/2023, 7:24 PMcuddly-family-48123
02/13/2023, 7:24 PMcuddly-family-48123
02/13/2023, 7:25 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials/param-ex$ python simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Resolving 1 environment in flow ...Falling back to 'mamba' to resolve as conda-lock not installed
Internal error
Traceback (most recent call last):
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 1172, in main
start(auto_envvar_prefix="METAFLOW", obj=state)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 829, in __call__
return self.main(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/core.py", line 610, in invoke
return callback(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 691, in wrapper
return func(args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/_vendor/click/decorators.py", line 33, in new_func
return f(get_current_context().obj, args, kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 828, in run
before_run(obj, tags, decospecs + obj.environment.decospecs())
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/cli.py", line 886, in before_run
obj.package = MetaflowPackage(
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow/package.py", line 70, in __init__
environment.init_environment(echo)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_environment.py", line 120, in init_environment
self._resolve_environments(echo, need_resolution)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_environment.py", line 242, in _resolve_environments
env_id, resolved_env = f.result()
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(self.args, self.kwargs)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda_environment.py", line 203, in _resolve
self._conda.resolve(
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 196, in resolve
packages = self._resolve_env_with_conda(deps, sources, architecture)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/site-packages/metaflow_extensions/netflix_ext/plugins/conda/conda.py", line 1269, in _resolve_env_with_conda
conda_result = json.loads(self._call_conda(args, addl_env=addl_env))
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/home/bbrandt/mambaforge/envs/intro-to-mf/lib/python3.10/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 3530 column 1 (char 123854)cuddly-family-48123
02/13/2023, 7:27 PM"dry_run": true,
"prefix": "/tmp/tmpajx9t8sp/prefix",
"success": true
}
Dry run. Exiting.'dry-beach-38304
02/13/2023, 7:27 PMdry-beach-38304
02/13/2023, 7:27 PMdry-beach-38304
02/13/2023, 7:27 PMcuddly-family-48123
02/13/2023, 7:28 PMdry-beach-38304
02/13/2023, 7:28 PMcuddly-family-48123
02/13/2023, 7:29 PMdry-beach-38304
02/13/2023, 7:29 PMdry-beach-38304
02/13/2023, 7:42 PMstderr=subprocess.STDOUTdry-beach-38304
02/13/2023, 7:43 PMconda.pydry-beach-38304
02/13/2023, 7:43 PMcuddly-family-48123
02/13/2023, 7:46 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials/param-ex$ python simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Resolving 1 environment in flow ...Falling back to 'mamba' to resolve as conda-lock not installed
Dry run. Exiting.
done in 24 seconds.
Downloading 2(web) + 0(cache) packages ... done in 13 seconds.
Transmuting 59 packages ... done in 0 seconds.
Got the following errors while loading packages:
Error transmuting 'six-1.16.0-pyh6c4a22f_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libsqlite-3.40.0-h753d276_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libstdcxx-ng-12.2.0-h46fd767_19': Requesting to transmute package without cph or micromamba
Error transmuting 'libev-4.33-h516909a_1': Requesting to transmute package without cph or micromamba
Error transmuting 'pandas-1.4.4-py310h769672d_0': Requesting to transmute package without cph or micromamba
Error transmuting 'gflags-2.2.2-he1b5a44_1004': Requesting to transmute package without cph or micromamba
Error transmuting 'libevent-2.1.10-h28343ad_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libgcc-ng-12.2.0-h65d4601_19': Requesting to transmute package without cph or micromamba
Error transmuting 'libopenblas-0.3.21-pthreads_h78a6416_3': Requesting to transmute package without cph or micromamba
Error transmuting 'ncurses-6.3-h27087fc_1': Requesting to transmute package without cph or micromamba
Error transmuting 'pycparser-2.21-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'isodate-0.6.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libssh2-1.10.0-hf14f497_3': Requesting to transmute package without cph or micromamba
Error transmuting 'oauthlib-3.2.2-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'blinker-1.5-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'glog-0.6.0-h6f12383_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libcrc32c-1.1.2-h9c3ff4c_0': Requesting to transmute package without cph or micromamba
Error transmuting 'readline-8.1.2-h0f457ee_0': Requesting to transmute package without cph or micromamba
Error transmuting '_libgcc_mutex-0.1-conda_forge': Requesting to transmute package without cph or micromamba
Error transmuting 'libnsl-2.0.0-h7f98852_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libthrift-0.16.0-he500d00_2': Requesting to transmute package without cph or micromamba
Error transmuting 'brotlipy-0.7.0-py310h5764c6d_1005': Requesting to transmute package without cph or micromamba
Error transmuting 'bzip2-1.0.8-h7f98852_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libcblas-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'requests-oauthlib-1.3.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgfortran-ng-12.2.0-h69a702a_19': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlicommon-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'python-dateutil-2.8.2-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'pysocks-1.7.1-pyha2e5f31_6': Requesting to transmute package without cph or micromamba
Error transmuting 'charset-normalizer-2.1.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'typing_extensions-4.4.0-pyha770c72_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgomp-12.2.0-h65d4601_19': Requesting to transmute package without cph or micromamba
Error transmuting 'zlib-1.2.13-h166bdaf_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libzlib-1.2.13-h166bdaf_4': Requesting to transmute package without cph or micromamba
Error transmuting 'liblapack-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'libuuid-2.32.1-h7f98852_1000': Requesting to transmute package without cph or micromamba
Error transmuting 'libgfortran5-12.2.0-h337968e_19': Requesting to transmute package without cph or micromamba
Error transmuting 'libblas-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'msal_extensions-1.0.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'keyutils-1.6.1-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'tk-8.6.12-h27826a3_0': Requesting to transmute package without cph or micromamba
Error transmuting 'xz-5.2.6-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'idna-3.4-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'ucx-1.12.1-h7a399c7_1': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlidec-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'libffi-3.4.2-h7f98852_5': Requesting to transmute package without cph or micromamba
Error transmuting 'c-ares-1.18.1-h7f98852_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlienc-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'wheel-0.38.4-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'snappy-1.1.9-hbd366e4_2': Requesting to transmute package without cph or micromamba
Error transmuting 'libedit-3.1.20191231-he28a2e2_2': Requesting to transmute package without cph or micromamba
Error transmuting '_openmp_mutex-4.5-2_gnu': Requesting to transmute package without cph or micromamba
Error transmuting 'libutf8proc-2.8.0-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'pyjwt-2.6.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'typing-extensions-4.4.0-hd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'msrest-0.7.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'parquet-cpp-1.5.1-2': Requesting to transmute package without cph or micromamba
Error transmuting 'azure-identity-1.12.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'azure-storage-blob-12.14.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Conda ran into an error while setting up environment.:
Could not fetch packages -- see pretty-printed errors above.cuddly-family-48123
02/13/2023, 7:47 PMdry-beach-38304
02/13/2023, 7:49 PM.conda as the packages you want and it doesn’t find one, it will transmute it for you but you need either cph or micromamba installed.cuddly-family-48123
02/13/2023, 7:50 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials/param-ex$ cph
Command 'cph' not found, but can be installed with:
sudo apt install conda-package-handlingdry-beach-38304
02/13/2023, 7:50 PMdry-beach-38304
02/13/2023, 7:50 PMdry-beach-38304
02/13/2023, 7:50 PMdry-beach-38304
02/13/2023, 7:51 PMdry-beach-38304
02/13/2023, 7:51 PMdry-beach-38304
02/13/2023, 7:51 PMdry-beach-38304
02/13/2023, 7:52 PMcuddly-family-48123
02/13/2023, 7:52 PMdry-beach-38304
02/13/2023, 7:52 PMdry-beach-38304
02/13/2023, 7:52 PMcuddly-family-48123
02/13/2023, 7:53 PMcuddly-family-48123
02/13/2023, 7:54 PMdry-beach-38304
02/13/2023, 7:55 PMcuddly-family-48123
02/13/2023, 7:57 PMcuddly-family-48123
02/13/2023, 8:01 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ python param-ex/simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Resolving 1 environment in flow ...Falling back to 'mamba' to resolve as conda-lock not installed
Dry run. Exiting.
done in 25 seconds.
Transmuting 59 packages ... done in 3 seconds.
Got the following errors while loading packages:
Error transmuting '_libgcc_mutex-0.1-conda_forge': Requesting to transmute package without cph or micromamba
Error transmuting 'libcrc32c-1.1.2-h9c3ff4c_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgfortran-ng-12.2.0-h69a702a_19': Requesting to transmute package without cph or micromamba
Error transmuting '_openmp_mutex-4.5-2_gnu': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlicommon-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'libnsl-2.0.0-h7f98852_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libffi-3.4.2-h7f98852_5': Requesting to transmute package without cph or micromamba
Error transmuting 'libev-4.33-h516909a_1': Requesting to transmute package without cph or micromamba
Error transmuting 'gflags-2.2.2-he1b5a44_1004': Requesting to transmute package without cph or micromamba
Error transmuting 'libuuid-2.32.1-h7f98852_1000': Requesting to transmute package without cph or micromamba
Error transmuting 'libzlib-1.2.13-h166bdaf_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libutf8proc-2.8.0-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'keyutils-1.6.1-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'snappy-1.1.9-hbd366e4_2': Requesting to transmute package without cph or micromamba
Error transmuting 'c-ares-1.18.1-h7f98852_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libblas-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlidec-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'glog-0.6.0-h6f12383_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgomp-12.2.0-h65d4601_19': Requesting to transmute package without cph or micromamba
Error transmuting 'libedit-3.1.20191231-he28a2e2_2': Requesting to transmute package without cph or micromamba
Error transmuting 'bzip2-1.0.8-h7f98852_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libbrotlienc-1.0.9-h166bdaf_8': Requesting to transmute package without cph or micromamba
Error transmuting 'libcblas-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'zlib-1.2.13-h166bdaf_4': Requesting to transmute package without cph or micromamba
Error transmuting 'liblapack-3.9.0-16_linux64_openblas': Requesting to transmute package without cph or micromamba
Error transmuting 'blinker-1.5-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'readline-8.1.2-h0f457ee_0': Requesting to transmute package without cph or micromamba
Error transmuting 'charset-normalizer-2.1.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'idna-3.4-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgcc-ng-12.2.0-h65d4601_19': Requesting to transmute package without cph or micromamba
Error transmuting 'pyjwt-2.6.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'pysocks-1.7.1-pyha2e5f31_6': Requesting to transmute package without cph or micromamba
Error transmuting 'xz-5.2.6-h166bdaf_0': Requesting to transmute package without cph or micromamba
Error transmuting 'six-1.16.0-pyh6c4a22f_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libssh2-1.10.0-hf14f497_3': Requesting to transmute package without cph or micromamba
Error transmuting 'typing_extensions-4.4.0-pyha770c72_0': Requesting to transmute package without cph or micromamba
Error transmuting 'typing-extensions-4.4.0-hd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'wheel-0.38.4-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'isodate-0.6.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libsqlite-3.40.0-h753d276_0': Requesting to transmute package without cph or micromamba
Error transmuting 'msal_extensions-1.0.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'requests-oauthlib-1.3.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'python-dateutil-2.8.2-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'parquet-cpp-1.5.1-2': Requesting to transmute package without cph or micromamba
Error transmuting 'pycparser-2.21-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'msrest-0.7.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'brotlipy-0.7.0-py310h5764c6d_1005': Requesting to transmute package without cph or micromamba
Error transmuting 'oauthlib-3.2.2-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'azure-identity-1.12.0-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libgfortran5-12.2.0-h337968e_19': Requesting to transmute package without cph or micromamba
Error transmuting 'azure-storage-blob-12.14.1-pyhd8ed1ab_0': Requesting to transmute package without cph or micromamba
Error transmuting 'libevent-2.1.10-h28343ad_4': Requesting to transmute package without cph or micromamba
Error transmuting 'libstdcxx-ng-12.2.0-h46fd767_19': Requesting to transmute package without cph or micromamba
Error transmuting 'tk-8.6.12-h27826a3_0': Requesting to transmute package without cph or micromamba
Error transmuting 'ncurses-6.3-h27087fc_1': Requesting to transmute package without cph or micromamba
Error transmuting 'libthrift-0.16.0-he500d00_2': Requesting to transmute package without cph or micromamba
Error transmuting 'libopenblas-0.3.21-pthreads_h78a6416_3': Requesting to transmute package without cph or micromamba
Error transmuting 'ucx-1.12.1-h7a399c7_1': Requesting to transmute package without cph or micromamba
Error transmuting 'pandas-1.4.4-py310h769672d_0': Requesting to transmute package without cph or micromamba
Conda ran into an error while setting up environment.:
Could not fetch packages -- see pretty-printed errors above.
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ micromamba
__
__ ______ ___ ____ _____ ___ / /_ ____ _
/ / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
/ /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
/ .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
/_/
Version: 1.3.1
Usage: /home/bbrandt/.local/bin/micromamba [OPTIONS] [SUBCOMMAND]
Options:
-h,--help Print this help message and exit
--version
Configuration options:
--rc-file TEXT ... Paths to the configuration files to use
--no-rc Disable the use of configuration files
--no-env Disable the use of environment variables
Global options:
-v,--verbose Set verbosity (higher verbosity with multiple -v, e.g. -vvv)
--log-level ENUM:value in {critical->5,debug->1,error->4,info->2,off->6,trace->0,warning->3} OR {5,1,4,2,6,0,3}
Set the log level
-q,--quiet Set quiet mode (print less output)
-y,--yes Automatically answer yes on prompted questions
--json Report all output as json
--offline Force use cached repodata
--dry-run Only display what would have been done
--download-only Only download and extract packages, do not link them into environment.
--experimental Enable experimental features
Prefix options:
-r,--root-prefix TEXT Path to the root prefix
-p,--prefix TEXT Path to the target prefix
-n,--name TEXT Name of the target prefix
Subcommands:
shell Generate shell init scripts
create Create new environment
install Install packages in active environment
update Update packages in active environment
self-update Update micromamba
repoquery Find and analyze packages in active environment or channels
remove Remove packages from active environment
list List packages in active environment
package Extract a package or bundle files into an archive
clean Clean package cache
config Configuration of micromamba
info Information about micromamba
constructor Commands to support using micromamba in constructor
env List environments
activate Activate an environment
run Run an executable in an environment
ps Show, inspect or kill running processes
auth Login or logout of a given host
search Find packages in active environment or channels
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$dry-beach-38304
02/13/2023, 8:07 PMdry-beach-38304
02/13/2023, 8:07 PMif to elif.cuddly-family-48123
02/13/2023, 8:25 PMcuddly-family-48123
02/13/2023, 8:26 PMMetaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Resolving 1 environment in flow ...Falling back to 'mamba' to resolve as conda-lock not installed
Dry run. Exiting.
done in 23 seconds.
Caching 226 items to azure ... Failed to access Azure resource:
The specified container does not exist.
RequestId:20418be3-801e-0005-10e8-3ffd6c000000
Time:2023-02-13T20:21:28.4536285Z
ErrorCode:ContainerNotFound
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>ContainerNotFound</Code><Message>The specified container does not exist.
RequestId:20418be3-801e-0005-10e8-3ffd6c000000
Time:2023-02-13T20:21:28.4536285Z</Message></Error>cuddly-family-48123
02/13/2023, 8:27 PMMETAFLOW_CONDA_AZUREROOT config.dry-beach-38304
02/13/2023, 8:29 PMcuddly-family-48123
02/13/2023, 8:31 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ python param-ex/simple_conda.py --environment=conda run
Metaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Resolving 1 environment in flow ...Falling back to 'mamba' to resolve as conda-lock not installed
Dry run. Exiting.
done in 23 seconds.
Caching 226 items to azure ... done in 42 seconds.
Caching 1 environment to azure ... done in 0 seconds.
2023-02-13 14:28:59.254 Workflow starting (run-id 34):
2023-02-13 14:29:00.874 Falling back to 'mamba' to resolve as conda-lock not installed
2023-02-13 14:29:01.195 Creating Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)...
2023-02-13 14:29:02.192 Extracting and linking Conda environment .../tmp/mambaffCI6aBINfj: line 3: actions:: command not found
/tmp/mambaffCI6aBINfj: line 4: print:: command not found
/tmp/mambaffCI6aBINfj: line 5: __mamba_exe: command not found
/tmp/mambaffCI6aBINfj: line 5: __mamba_exe: command not found
/tmp/mambaffCI6aBINfj: line 5: \"${(@s: :)${(@s: :)COMP_LINE}:1}\": bad substitution
/tmp/mambaffCI6aBINfj: line 5: __mamba_exe: command not found
/tmp/mambaffCI6aBINfj: line 5: \n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\n\n__mamba_exe() (\n "/home/bbrandt/.local/bin/micromamba" ""\n)\n\n__mamba_hashr() {\n if [ -n "" ]; then\n \rehash\n elif [ -n "" ]; then\n : # pass\n else\n \hash -r\n fi\n}\n\n__mamba_activate() {\n \local ask_conda\n ask_conda="" || \return\n \eval ""\n __mamba_hashr\n}\n\n__mamba_reactivate() {\n \local ask_conda\n ask_conda="" || \return\n \eval ""\n __mamba_hashr\n}\n\nmicromamba() {\n \local cmd="__missing__"\n case "" in\n activate|deactivate)\n __mamba_activate ""\n ;;\n install|update|upgrade|remove|uninstall)\n __mamba_exe "" || \return\n __mamba_reactivate\n ;;\n self-update)\n __mamba_exe "" || \return\n\n # remove leftover backup file on Windows\n if [ -f "/home/bbrandt/.local/bin/micromamba.bkup" ]; then\n rm -f /home/bbrandt/.local/bin/micromamba.bkup\n fi\n ;;\n *)\n __mamba_exe ""\n ;;\n esac\n}\n\nif [ -z "x" ]; then\n \export CONDA_SHLVL=0\n # In dev-mode MAMBA_EXE is python.exe and on Windows\n # it is in a different relative location to condabin.\n if [ -n "x" ] && [ -n "" ]; then\n PATH="/home/bbrandt/micromamba/condabin:/home/bbrandt/mambaforge/envs/metaflow_c5b6dc01d4f4a08e54fef899876a247da78dfef5_f9c27900b0dfa3765069e94f41ccb3fcf1b9752f/bin:/home/bbrandt/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/bin/remote-cli:/home/bbrandt/.local/bin:/home/bbrandt/mambaforge/envs/intro-to-mf/bin:/home/bbrandt/mambaforge/condabin:/home/bbrandt/.nvm/versions/node/v18.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Volta:/mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/mnt/c/Program Files/dotnet:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/GitExtensions:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Volta/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Ben.Brandt/.dotnet/tools:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/dapr:/mnt/c/Users/Ben.Brandt/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/mnt/c/Users/Ben.Brandt/.dapr/bin:/mnt/c/Users/Ben.Brandt/.dapr/bin:/mnt/c/Program Files (x86)/Rico Suter/NSwagStudio:/snap/bin"\n else\n PATH="/home/bbrandt/micromamba/condabin:/home/bbrandt/mambaforge/envs/metaflow_c5b6dc01d4f4a08e54fef899876a247da78dfef5_f9c27900b0dfa3765069e94f41ccb3fcf1b9752f/bin:/home/bbrandt/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/bin/remote-cli:/home/bbrandt/.local/bin:/home/bbrandt/mambaforge/envs/intro-to-mf/bin:/home/bbrandt/mambaforge/condabin:/home/bbrandt/.nvm/versions/node/v18.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Volta:/mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/mnt/c/Program Files/dotnet:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/GitExtensions:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Volta/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Ben.Brandt/.dotnet/tools:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Users/Ben.Brandt/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/dapr:/mnt/c/Users/Ben.Brandt/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/mnt/c/Users/Ben.Brandt/.dapr/bin:/mnt/c/Users/Ben.Brandt/.dapr/bin:/mnt/c/Program Files (x86)/Rico Suter/NSwagStudio:/snap/bin"\n fi\n \export PATH\n\n # We're not allowing PS1 to be unbound. It must at least be set.\n # However, we're not exporting it, which can cause problems when starting a second shell\n # via a first shell (i.e. starting zsh from bash).\n if [ -z "" ]; then\n PS1=\n fi\nfi\n\nif [ -n "" ]; then\n if ! command -v compinit > /dev/null; then\n autoload -U +X compinit && if [[ "" = true ]]; then\n compinit -u\n else\n compinit\n fi\n fi\n autoload -U +X bashcompinit && bashcompinit\n\n _umamba_zsh_completions()\n {\n COMPREPLY=()\n }\n\n complete -o default -F _umamba_zsh_completions micromamba\nfi\nif [ -n "x" ]; then\n _umamba_bash_completions()\n {\n COMPREPLY=()\n }\n complete -o default -F _umamba_bash_completions micromamba\nfi\n\n: File name too long
/tmp/mambaffCI6aBINfj: line 6: ]: command not found
/tmp/mambaffCI6aBINfj: line 7: },: command not found
/tmp/mambaffCI6aBINfj: line 8: context:: command not found
/tmp/mambaffCI6aBINfj: line 9: shell_type:: command not found
/tmp/mambaffCI6aBINfj: line 10: },: command not found
/tmp/mambaffCI6aBINfj: line 11: operation:: command not found
/tmp/mambaffCI6aBINfj: line 12: success:: command not found
critical libmamba Shell not initialized
By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): <https://docs.nvidia.com/cuda/eula/index.html>
done in 19 seconds.
2023-02-13 14:29:21.975 [34/start/116 (pid 20111)] Task is starting.
2023-02-13 14:29:26.032 [34/start/116 (pid 20111)] alpha is 0.010000
2023-02-13 14:29:28.660 [34/start/116 (pid 20111)] Task finished successfully.
2023-02-13 14:29:29.900 Using existing Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)
2023-02-13 14:29:29.902 [34/pd_dates/117 (pid 20197)] Task is starting.
2023-02-13 14:29:34.359 [34/pd_dates/117 (pid 20197)] a
2023-02-13 14:29:36.123 [34/pd_dates/117 (pid 20197)] 0 42
2023-02-13 14:29:36.961 [34/pd_dates/117 (pid 20197)] Task finished successfully.
2023-02-13 14:29:38.197 Using existing Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)
2023-02-13 14:29:38.199 [34/end/118 (pid 20291)] Task is starting.
2023-02-13 14:29:42.159 [34/end/118 (pid 20291)] alpha is still 0.010000
2023-02-13 14:29:44.646 [34/end/118 (pid 20291)] Task finished successfully.
2023-02-13 14:29:44.996 Done!dry-beach-38304
02/13/2023, 8:31 PMdry-beach-38304
02/13/2023, 8:32 PMcuddly-family-48123
02/13/2023, 8:33 PMdry-beach-38304
02/13/2023, 8:34 PMdry-beach-38304
02/13/2023, 8:35 PMMETAFLOW_DEBUG_CONDA=1. That should give you the command that it is executing to extract the conda environment which is probably what is causing this weirdness in the first placecuddly-family-48123
02/13/2023, 8:35 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ which conda
/home/bbrandt/mambaforge/condabin/conda
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ which mamba
/home/bbrandt/mambaforge/condabin/mamba
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ which micromamba
/home/bbrandt/.local/bin/micromambacuddly-family-48123
02/13/2023, 8:36 PMdry-beach-38304
02/13/2023, 8:36 PMdry-beach-38304
02/13/2023, 8:36 PMcuddly-family-48123
02/13/2023, 8:37 PMMetaflow 2.7.22+netflix-ext(0.0.6) executing SimpleConda for user:bbrandt
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
Falling back to 'mamba' to resolve as conda-lock not installed
All items already cached in azure.
2023-02-13 14:36:22.868 Workflow starting (run-id 35):
2023-02-13 14:36:24.486 Falling back to 'mamba' to resolve as conda-lock not installed
2023-02-13 14:36:24.816 Using existing Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)
2023-02-13 14:36:24.817 [35/start/120 (pid 21342)] Task is starting.
2023-02-13 14:36:28.750 [35/start/120 (pid 21342)] alpha is 0.010000
2023-02-13 14:36:31.257 [35/start/120 (pid 21342)] Task finished successfully.
2023-02-13 14:36:32.486 Using existing Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)
2023-02-13 14:36:32.487 [35/pd_dates/121 (pid 21397)] Task is starting.
2023-02-13 14:36:36.575 [35/pd_dates/121 (pid 21397)] a
2023-02-13 14:36:38.345 [35/pd_dates/121 (pid 21397)] 0 42
2023-02-13 14:36:39.204 [35/pd_dates/121 (pid 21397)] Task finished successfully.
2023-02-13 14:36:40.498 Using existing Conda environment c5b6dc01d4f4a08e54fef899876a247da78dfef5 (f9c27900b0dfa3765069e94f41ccb3fcf1b9752f)
2023-02-13 14:36:40.499 [35/end/122 (pid 21508)] Task is starting.
2023-02-13 14:36:44.478 [35/end/122 (pid 21508)] alpha is still 0.010000
2023-02-13 14:36:46.956 [35/end/122 (pid 21508)] Task finished successfully.
2023-02-13 14:36:47.320 Done!
(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$dry-beach-38304
02/13/2023, 8:38 PMcuddly-family-48123
02/13/2023, 8:38 PMdry-beach-38304
02/13/2023, 8:38 PMdry-beach-38304
02/13/2023, 8:38 PMcuddly-family-48123
02/13/2023, 8:38 PMdry-beach-38304
02/13/2023, 8:38 PMmetaflow_c5b6dc01d4f4a08e54fef899876a247da78dfef5_f9c27900b0dfa3765069e94f41ccb3fcf1b9752f or something like that.dry-beach-38304
02/13/2023, 8:39 PMdry-beach-38304
02/13/2023, 8:39 PMdry-beach-38304
02/13/2023, 8:40 PM~/.metaflow/condav2.cnd file else it will get confused as to where things are cached 🙂 )cuddly-family-48123
02/13/2023, 8:40 PMmamba env listcuddly-family-48123
02/13/2023, 8:49 PMMETAFLOW_CONDA_AZUREROOT
• Grant the Storage Blob Data Contributor Role on the Storage Account to the Service Principal or User Accounts that will be accessing (https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal#assign-an-azure-role)dry-beach-38304
02/13/2023, 8:56 PMcuddly-family-48123
02/13/2023, 9:44 PMdry-beach-38304
02/13/2023, 9:47 PMmicromamba executable the micromamba.sh?dry-beach-38304
02/13/2023, 9:48 PMactivate stuff which it seems is what is triggering this.cuddly-family-48123
02/13/2023, 9:48 PM(intro-to-mf) bbrandt@939TQ13:~/src/tutorials$ which micromamba
/home/bbrandt/.local/bin/micromambacuddly-family-48123
02/13/2023, 9:48 PMdry-beach-38304
02/13/2023, 9:48 PMfile /home/bbrandt/.local/bin/micromamba or head /home/bbrandt/.local/bin/micromamba?cuddly-family-48123
02/13/2023, 9:49 PMcuddly-family-48123
02/13/2023, 9:50 PMdry-beach-38304
02/13/2023, 9:50 PMdry-beach-38304
02/13/2023, 9:51 PMdry-beach-38304
02/13/2023, 9:51 PMcuddly-family-48123
02/13/2023, 9:52 PMcuddly-family-48123
02/13/2023, 9:53 PM# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/bbrandt/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/bbrandt/mambaforge/etc/profile.d/conda.sh" ]; then
. "/home/bbrandt/mambaforge/etc/profile.d/conda.sh"
else
export PATH="/home/bbrandt/mambaforge/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/home/bbrandt/mambaforge/etc/profile.d/mamba.sh" ]; then
. "/home/bbrandt/mambaforge/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE="/home/bbrandt/.local/bin/micromamba";
export MAMBA_ROOT_PREFIX="/home/bbrandt/micromamba";
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
if [ -f "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh" ]; then
. "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh"
else
export PATH="/home/bbrandt/micromamba/bin:$PATH" # extra space after export prevents interference from conda init
fi
fi
unset __mamba_setup
# <<< mamba initialize <<<cuddly-family-48123
02/13/2023, 9:53 PMcuddly-family-48123
02/13/2023, 9:53 PM/home/bbrandt/micromamba/etc/profile.d/micromamba.shdry-beach-38304
02/13/2023, 9:54 PMdry-beach-38304
02/13/2023, 9:54 PMcuddly-family-48123
02/13/2023, 10:24 PMecho running MAMBA_EXE shell hook instead of the micromamba.sh.
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE="/home/bbrandt/.local/bin/micromamba";
export MAMBA_ROOT_PREFIX="/home/bbrandt/micromamba";
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
echo running MAMBA_EXE shell hook
eval "$__mamba_setup"
else
if [ -f "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh" ]; then
. "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh"
else
export PATH="/home/bbrandt/micromamba/bin:$PATH" # extra space after export prevents interference from conda init
fi
fi
unset __mamba_setup
# <<< mamba initialize <<<cuddly-family-48123
02/13/2023, 10:26 PM# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE="/home/bbrandt/.local/bin/micromamba";
export MAMBA_ROOT_PREFIX="/home/bbrandt/micromamba";
# __mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
# if [ $? -eq 0 ]; then
# echo running MAMBA_EXE shell hook
# eval "$__mamba_setup"
# else
if [ -f "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh" ]; then
. "/home/bbrandt/micromamba/etc/profile.d/micromamba.sh"
else
export PATH="/home/bbrandt/micromamba/bin:$PATH" # extra space after export prevents interference from conda init
fi
# fi
# unset __mamba_setup
# <<< mamba initialize <<<
and move micromamba.sh out of the way, I am still able to reproduce the issue. But micromamba is stated as being experimental and it doesn't stop your extension or metaflow from working, so I'm going to ignore it for now and move on. 🙂dry-beach-38304
02/13/2023, 10:27 PMdry-beach-38304
02/13/2023, 10:30 PMcuddly-family-48123
02/13/2023, 11:17 PMdry-beach-38304
02/15/2023, 7:21 PMcuddly-family-48123
02/16/2023, 2:07 PMdry-beach-38304
02/16/2023, 5:52 PMcuddly-family-48123
02/20/2023, 3:27 PMBootstrapping environment ...
Setting up Conda ... done in 0 seconds.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/remote_bootstrap.py", line 62, in <module>
bootstrap_environment(*sys.argv[1:])
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/remote_bootstrap.py", line 32, in bootstrap_environment
cached_info = read_conda_manifest(DATASTORE_LOCAL_DIR)
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 827, in read_conda_manifest
return CachedEnvironmentInfo.from_dict(json.load(f))
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 797, in from_dict
resolved_env = ResolvedEnvironment.from_dict(
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 626, in from_dict
all_packages = [PackageSpecification.from_dict(pd) for pd in d["packages"]]
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 626, in <listcomp>
all_packages = [PackageSpecification.from_dict(pd) for pd in d["packages"]]
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 422, in from_dict
cache_info={
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 423, in <dictcomp>
pkg_fmt: CachePackage.from_dict(info)
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 166, in from_dict
return cls._class_per_type[d["_type"]](url=d["url"])
File "/metaflow/metaflow_extensions/netflix_ext/plugins/conda/env_descr.py", line 127, in __init__
for f in self.allowed_formats():
TypeError: 'NoneType' object is not iterable
I am currently trying to determine the best way to remote debug Python code that Metaflow runs in Argo in Kubernetes, but haven't gotten far yet.dry-beach-38304
02/20/2023, 3:37 PMcuddly-family-48123
02/20/2023, 3:47 PMcuddly-family-48123
02/20/2023, 3:57 PM"METAFLOW_CONDA_PREFERRED_FORMAT": ".conda", in /home/bbrandt/.metaflowconfig/config.json when I create and trigger the workflow. Is this the variable it's looking for, but maybe I have to pass on the command-line instead?cuddly-family-48123
02/20/2023, 5:18 PM@environment(vars={
"METAFLOW_CONDA_PREFERRED_FORMAT": ".conda",
"METAFLOW_CONDA_AZUREROOT":"preview-conda",
"METAFLOW_CONDA_DEPENDENCY_RESOLVER": "mamba"
})
It looks like for my simple experiment, runtime is about the same in Argo with and without the extension. The main value add I feel is the additional power for dependency management anyway.
Here is the sample output from one step showing that bootstrapping environment is about 27 to 35 seconds per step on an Azure Standard_D4as_v5 node pool.
Setting up task environment.
Downloading code package...
Code package downloaded.
Task is starting.
Bootstrapping environment ...
Setting up Conda ... done in 0 seconds.
Downloading 0(web) + 108(cache) packages ... done in 3 seconds.
Extracting and linking Conda environment ... done in 32 seconds.
Environment bootstrapped.
alpha is 0.480000
I have not set any resource decorators, so I guess it using the defaults for CPU and memory to request from k8s. Argo lists this as the resource utilization for the workflow run:
4m*(1 cpu),2m*(10Gi ephemeral-storage),1h*(100Mi memory)
Here is the code I am testing with:
from metaflow import FlowSpec, Parameter, step, conda_base, environment
@conda_base(libraries={"pandas": "1.4.4", "python-duckdb": "0.6.1"})
class SimpleConda(FlowSpec):
alpha = Parameter('alpha',
help='Learning rate',
default=0.01)
@environment(vars={
"METAFLOW_CONDA_PREFERRED_FORMAT": ".conda",
"METAFLOW_CONDA_AZUREROOT":"preview-conda",
"METAFLOW_CONDA_DEPENDENCY_RESOLVER": "mamba",
"METAFLOW_DEBUG_CONDA":"1"
})
@step
def start(self):
print('alpha is %f' % self.alpha)
self.next(self.pd_dates)
@environment(vars={
"METAFLOW_CONDA_PREFERRED_FORMAT": ".conda",
"METAFLOW_CONDA_AZUREROOT":"preview-conda",
"METAFLOW_CONDA_DEPENDENCY_RESOLVER": "mamba",
"METAFLOW_DEBUG_CONDA":"1"
})
@step
def pd_dates(self):
import duckdb
import pandas
# connect to an in-memory database
con = duckdb.connect()
my_df = pandas.DataFrame.from_dict({'a': [42]})
# query the Pandas DataFrame "my_df"
self.results = con.execute("SELECT * FROM my_df").df()
print(self.results)
self.next(self.end)
@environment(vars={
"METAFLOW_CONDA_PREFERRED_FORMAT": ".conda",
"METAFLOW_CONDA_AZUREROOT":"preview-conda",
"METAFLOW_CONDA_DEPENDENCY_RESOLVER": "mamba",
"METAFLOW_DEBUG_CONDA":"1"
})
@step
def end(self):
print('alpha is still %f' % self.alpha)
if __name__ == '__main__':
SimpleConda()
I am running with:
python param-ex/simple_conda.py --environment=conda --with retry argo-workflows create
python param-ex/simple_conda.py --environment=conda --with retry argo-workflows trigger --alpha 0.48
To test the 2 different configurations,
I enable the extension with:
pip install metaflow-netflixext --upgrade
I disable the extension with:
pip uninstall metaflow-netflixext
For the performance numbers I am using a private AKS cluster, no noisy neighbors. Only running one job at a time, but doing multiple runs so I am not affected as much by things like node pool spin up/down.dry-beach-38304
02/20/2023, 7:10 PMcuddly-family-48123
02/20/2023, 8:57 PMMETAFLOW_DEBUG_CONDA=1 output and the conda_v2.cnd from my local. Would there be a separate conda_v2.cnd I need to retrieve from container where the flow ran?dry-beach-38304
02/20/2023, 11:34 PMdry-beach-38304
02/20/2023, 11:34 PMdry-beach-38304
02/20/2023, 11:35 PMcuddly-family-48123
02/21/2023, 12:00 AMdry-beach-38304
02/21/2023, 4:06 AMdry-beach-38304
02/21/2023, 4:06 AM