happy-wolf-7852
08/30/2024, 3:48 PM@conda_base(
libraries={
"numpy": "1.26.4",
"pandas": "2.2.2",
"scikit-learn": "1.5",
"lightgbm": "4.3.0",
# "pyarrow": ">=10.0.1,<10.1.0",
"pyarrow": "15.0.2",
"s3fs": "2024.3.1",
"xgboost": "2.1.1",
"memory_profiler": "0.61.0"
},
python="3.11.9",
)
to define dependencies if metaflow runs in the cloud, which is great.
How can I add “internal packages” (not sure if correct term?) I/we maintain, which are installed like so:
pip install git+<https://github.com/bla/amazingstuff.git>
Our AWS env. where our metaflow runs and the repo above should play ball/be accessible security wise …
Thanks.
Chris (edited)victorious-lawyer-58417
08/30/2024, 4:17 PM@pypi(packages={"git+<https://github.com/bla/amazingstuff.git>" : ""})victorious-lawyer-58417
08/30/2024, 4:18 PMhappy-wolf-7852
08/30/2024, 4:55 PMvictorious-lawyer-58417
08/30/2024, 4:57 PMpypi packages, you need to specify all dependencies from Pypi, or have two separate flows if that's feasibledry-beach-38304
08/30/2024, 5:46 PMdry-beach-38304
08/30/2024, 5:46 PMdry-beach-38304
08/30/2024, 5:46 PMdry-beach-38304
08/30/2024, 5:46 PMdry-beach-38304
08/30/2024, 5:47 PMhappy-wolf-7852
08/30/2024, 5:48 PMdry-beach-38304
08/30/2024, 5:54 PMdry-beach-38304
08/30/2024, 5:55 PMhappy-wolf-7852
08/30/2024, 7:13 PMhappy-wolf-7852
08/30/2024, 7:18 PMdry-beach-38304
08/30/2024, 8:03 PMhappy-wolf-7852
09/02/2024, 10:35 AMdry-beach-38304
09/02/2024, 4:17 PMhappy-wolf-7852
09/02/2024, 4:18 PMdry-beach-38304
09/02/2024, 5:24 PMpip install "git+<https://github.com/Netflix/metaflow-nflx-extensions.git@fix/git-pkg-conda-lock>"happy-wolf-7852
09/02/2024, 5:25 PMhappy-wolf-7852
09/04/2024, 3:21 AMpython GreatFlow.py --with batch:cpu=36,memory=60000,queue=metaflow-684414486554-55ff636,image=3.11.9-slim-bookworm --environment=conda
and decorated my class using:
@conda_base(
libraries={
"pandas": "2.2.2",
"pyarrow": "10.0.1",
"numpy": "1.26.4",
"pandas": "2.2",
"scikit-learn": "1.5.1",
"lightgbm": "4.5.0",
"s3fs": "2024.3.1",
"xgboost": "2.1.1",
"snowflake-connector-python": "3.11.0"
},
python="3.11.9",
)
and my steps:
@pypi(packages={
"git+<https://github.com/my_company/Repo1.git>" : "",
"git+<https://github.com/my_company/Repo2.git>": ""
},
python="3.11.9",
)
Alas I get:
Metaflow 2.12.18+netflix-ext(1.2.2) executing MetaFlow_CDCNSLScorePriceModel for user:user1
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
No STDOUT
Pretty-printed STDERR:
usage: mamba [-h] [--version] [--slow SLOW] [--enable-coverage]
[--coverage-file COVERAGE_FILE] [--format FORMAT] [--no-color]
[--tags TAGS]
[specs ...]
mamba: error: unrecognized arguments: --json
Conda ran into an error while setting up environment.:
Conda command '['/Users/user1/miniconda3/envs/meta_flow/bin/mamba', 'info', '--json']' returned error (2); see pretty-printed error above
Any ideas? Thanks in advance.dry-beach-38304
09/04/2024, 3:57 AMdry-beach-38304
09/04/2024, 3:57 AMdry-beach-38304
09/04/2024, 3:59 AMhappy-wolf-7852
09/04/2024, 4:12 AMimage=3.11.9-slim-bookworm
when metaflow tries to bootstrap the docker image to be used in AWS batch? Is this where conda has to be installed, which may not be part of this image?dry-beach-38304
09/04/2024, 5:37 AMdry-beach-38304
09/04/2024, 6:29 AMwhich conda points to a proper conda setup), you can also set METAFLOW_CONDA_DEPENDENCY_RESOLVER to conda and it will use that instead.dry-beach-38304
09/04/2024, 6:30 AM