few-dress-69520
08/26/2025, 11:17 AMPIP_EXTRA_INDEX_URL=<url_with_temporary_token> metaflow environment resolve -r requirements.txt --alias test_env
which fails already in the first step of resolving the environment. It just doesn't have access to the private repo and fails to resolve any private packages.
ERROR: Could not find a version that satisfies the requirement <private-package>==0.1 (from versions: none)
ERROR: No matching distribution found for <private-package>==0.1
Strangely, when creating a pip.conf that contains the extra-index-url it almost works. When running
PIP_CONFIG_FILE=pip.conf metaflow environment resolve -r requirements.txt --alias test_env
Metaflow is able to resolve the environment including the private packages and their dependencies, but in the step where it downloads the packages from the web, I get a 401 Client Error: Unauthorized for url:
for the private repo. It looks like when trying to download from the web it doesn't use the pip.conf anymore but instead tries to directly access the url prepared earlier in the process (without the token) and hence fails. I see that there is some auth handling here but this doesn't seem to do the thing that's necessary for my use case.
I'm using metaflow==2.15.21 and metaflow-netflixext==1.2.3.dry-beach-38304
08/26/2025, 4:09 PM