calm-energy-78015
12/14/2022, 11:33 AM@conda decorator and having some issues. I have created a very simple setup that installs numpy and a specific python version, and am encountering the error:
Step: start, Error: PackagesNotFoundError: The following packages are not available from current channels:
- numpy==1.23.5
- python==3.9.15
Current channels:
- <https://conda.anaconda.org/conda-forge/osx-arm64>
- <https://conda.anaconda.org/conda-forge/noarch>
I have confirmed that creating a conda env outside of Metaflow succeeds in finding/installing those packages. And I am also able to reproduce the error if I set the environment variable (as Metaflow does) CONDA_USE_ONLY_TAR_BZ2=True.
The only seemingly relevant result when Googling that environment variable is an issue posted by you@square-wire-39606 😅. Any idea how I should get the Metaflow conda env finding the correct package?calm-energy-78015
12/14/2022, 11:33 AMcalm-energy-78015
12/14/2022, 2:32 PM--environment=conda and -with kubernetes I get the following error:
Bootstrapping conda environment...(this could take a few minutes)
2022-12-14 14:24:34.474 Workflow starting (run-id 891):
2022-12-14 14:24:39.292 [891/start/4456 (pid 35679)] Task is starting.
2022-12-14 14:24:42.817 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Task is starting (Pod is running, Container is running)...
2022-12-14 14:24:42.418 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Setting up task environment.
2022-12-14 14:25:04.530 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Downloading code package...
2022-12-14 14:25:05.567 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Code package downloaded.
2022-12-14 14:25:05.592 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Task is starting.
2022-12-14 14:25:06.779 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Bootstrapping environment...
2022-12-14 14:25:10.365 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] Environment bootstrapped.
2022-12-14 14:25:10.365 [891/start/4456 (pid 35679)] [pod t-dnmcc-2tlck] bash: line 1: metaflow_DependencyTestFlow_linux-64_7b6d74c7d55dd5d2b9a4874a8334691e4d156140/bin/python: No such file or directory
2022-12-14 14:25:14.628 [891/start/4456 (pid 35679)] Kubernetes error:
2022-12-14 14:25:14.716 [891/start/4456 (pid 35679)] Error (exit code 127). This could be a transient error. Use @retry to retry.
2022-12-14 14:25:14.716 [891/start/4456 (pid 35679)]
2022-12-14 14:25:15.289 [891/start/4456 (pid 35679)] Task failed.
This is with a step that does nothing but call print. The steps are decorated with @conda() (i.e. just metaflow deps) to get around the issue in the original post.ancient-application-36103
12/14/2022, 3:03 PMcalm-energy-78015
12/14/2022, 3:05 PMancient-application-36103
12/14/2022, 3:06 PMcalm-energy-78015
12/14/2022, 3:09 PMancient-application-36103
12/14/2022, 3:50 PMancient-application-36103
12/14/2022, 3:51 PMcalm-energy-78015
12/14/2022, 3:55 PMcalm-energy-78015
12/14/2022, 3:56 PMresources(memory=4096), same issueancient-application-36103
12/14/2022, 4:01 PMcalm-energy-78015
12/14/2022, 4:07 PMm5a.4xlarge, so 64GiB totalcalm-energy-78015
12/14/2022, 4:08 PMcalm-energy-78015
12/14/2022, 4:14 PMcalm-energy-78015
12/14/2022, 4:20 PMpython:latest image, the issue doesn't occur, so I think it must be some interaction with the image we are using and the conda env setup.square-wire-39606
12/14/2022, 4:21 PMsquare-wire-39606
12/14/2022, 4:21 PMcalm-energy-78015
12/14/2022, 4:27 PMnvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 , and we add python & python deps in there.calm-energy-78015
12/14/2022, 4:28 PMsquare-wire-39606
12/14/2022, 4:31 PMsquare-wire-39606
12/14/2022, 4:31 PMcalm-energy-78015
12/14/2022, 5:59 PMPATH , but pip is not (though still invokable via python -m pip install ...).ancient-application-36103
12/14/2022, 6:13 PM.conda issuequiet-motherboard-43023
05/04/2023, 6:31 PMancient-application-36103
05/05/2023, 2:21 PM.conda files are now supported