freezing-doctor-60390
12/01/2023, 8:16 PMpip.conf or .pypirc or explicitly point to a pip.conf file. Right now, I have token directly in the decorator (I couldn't seem to get keyring authorization to work).
The more blocking issue is that the flow doesn't run when submitted to the Kubernetes cluster: we are getting a ModuleNotFoundError: No module named 'metaflow' error when issuing the following:
python example-flow.py --environment conda --with kubernetes run
This works locally:
python example-flow.py --environment conda run
Running with Metaflow and Netflix extensions:
Metaflow 2.10.7+netflix-ext(1.0.7)dry-beach-38304
12/01/2023, 8:21 PMpython example-flow.py --environment conda run --with kubernetes (notice the order).freezing-doctor-60390
12/01/2023, 8:30 PM[global]
extra-index-url = <https://_json_key_base64:TOKEN@us-python.pkg.dev/gcp_project/repo_name/simple/>
Is there an environment var to set? Currently, it doesn't work if I don't use the extra_indices param with the @pypi decorator.dry-beach-38304
12/01/2023, 8:34 PMpip config list and then look for all index-url and extra-index-url. If you run that do you get the values you expect?freezing-doctor-60390
12/01/2023, 8:56 PM$ python example-flow.py --environment conda run --with kubernetes
Metaflow 2.10.7+netflix-ext(1.0.7) executing ExampleFlow for user:metaflow-user
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
All packages already cached in gs.
All environments already cached in gs.
2023-12-01 20:54:00.498 Workflow starting (run-id 65):
2023-12-01 20:54:01.585 [65/start/502 (pid 18761)] Task is starting.
2023-12-01 20:54:01.664 [65/start/502 (pid 18761)] Traceback (most recent call last):
2023-12-01 20:54:01.665 [65/start/502 (pid 18761)] File "/mnt/metaflow-haus-examples/example/example-flow.py", line 1, in <module>
2023-12-01 20:54:01.665 [65/start/502 (pid 18761)] from metaflow import FlowSpec, card, pypi, pypi_base, step, current
2023-12-01 20:54:01.665 [65/start/502 (pid 18761)] ModuleNotFoundError: No module named 'metaflow'
2023-12-01 20:54:01.754 [65/start/502 (pid 18761)] Task failed.
2023-12-01 20:54:01.834 Workflow failed.
2023-12-01 20:54:01.834 Terminating 0 active tasks...
2023-12-01 20:54:01.834 Flushing logs...
Step failure:
Step start (task-id 502) failed.dry-beach-38304
12/01/2023, 9:03 PMMETAFLOW_DEBUG_CONDA=1 can be set as an env var and that will give you a lot of detail. I have never seen this particular error but then again, I don’t run with kubernetes. Let me see if there is anything kube specific or if I can get some help on running on kubernetes to debug this.freezing-doctor-60390
12/01/2023, 9:03 PM--environment conda switch and got the same thing (It runs successfully without the --environment conda switch when submitted to Kubernetes.):
$ python 00-helloworld/helloworld.py --environment conda run --with kubernetes
Metaflow 2.10.7+netflix-ext(1.0.7) executing HelloFlow for user:metaflow-user
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Bootstrapping Conda environment... (this could take a few minutes)
All packages already cached in gs.
All environments already cached in gs.
2023-12-01 21:02:49.659 Workflow starting (run-id 69):
2023-12-01 21:02:50.532 [69/start/512 (pid 19066)] Task is starting.
2023-12-01 21:02:50.607 [69/start/512 (pid 19066)] Traceback (most recent call last):
2023-12-01 21:02:50.607 [69/start/512 (pid 19066)] File "/mnt/metaflow-haus-examples/00-helloworld/helloworld.py", line 1, in <module>
2023-12-01 21:02:50.608 [69/start/512 (pid 19066)] from metaflow import FlowSpec, step
2023-12-01 21:02:50.608 [69/start/512 (pid 19066)] ModuleNotFoundError: No module named 'metaflow'
2023-12-01 21:02:50.687 [69/start/512 (pid 19066)] Task failed.
2023-12-01 21:02:50.763 Workflow failed.
2023-12-01 21:02:50.763 Terminating 0 active tasks...
2023-12-01 21:02:50.763 Flushing logs...
Step failure:
Step start (task-id 512) failed.dry-beach-38304
12/01/2023, 9:04 PMfreezing-doctor-60390
12/01/2023, 9:05 PMdry-beach-38304
12/01/2023, 9:06 PMdry-beach-38304
12/01/2023, 9:06 PMfreezing-doctor-60390
12/01/2023, 9:07 PMfreezing-doctor-60390
12/01/2023, 9:08 PMdry-beach-38304
12/01/2023, 9:08 PMdry-beach-38304
12/01/2023, 9:11 PMdry-beach-38304
12/01/2023, 9:12 PMfreezing-doctor-60390
12/02/2023, 10:28 PMdry-beach-38304
12/02/2023, 10:47 PMdry-beach-38304
12/02/2023, 10:48 PMdry-beach-38304
12/02/2023, 10:49 PMdry-beach-38304
12/02/2023, 10:50 PMfreezing-doctor-60390
12/03/2023, 9:36 PM~/.pip/pip.conf to the following locations (locations specified by pip when running `pip config list)`: /etc/pip.conf, /etc/xdg/pip/pip.conf, ~/.config/pip/pip.conf, ~/miniforge-pypy3/pip.conf
Of the above, I haven't done the process of elimination to find out which one(s) would make the difference but I suspect it's one of the global paths.
If I get a chance, I'll try running debug for the original situation but focused on moving forwards now as we are now experiencing other issues that are dependency specific (encountering CmdStan failed to install in repackaged directory when building wheel for a lib).dry-beach-38304
12/03/2023, 10:22 PM