Codespace container creation failing
chrisdeely opened this issue · 1 comments
chrisdeely commented
When launching the Codespace, the creation process fails and falls back to a 'recovery container'. This error may point to the root cause: ERROR: No matching distribution found for azureml-metrics[prompt-flow]==0.1.0.102333570
#8 [dev_container_auto_added_stage_label 4/9] RUN pip install -r requirements.txt
2023-10-10 17:27:32.511Z: #8 0.674 Looking in indexes: https://pypi.org/simple, https://azuremlsdktestpypi.azureedge.net/Create-Dev-Index/102333570, https://azuremlsdktestpypi.azureedge.net/test-azure-ai-generative
2023-10-10 17:27:32.812Z: #8 0.896 Collecting ipykernel
#8 0.931 Downloading ipykernel-6.25.2-py3-none-any.whl (154 kB)
#8 0.962 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.2/154.2 kB 5.2 MB/s eta 0:00:00
2023-10-10 17:27:32.963Z: #8 1.081 Collecting python-dotenv
#8 1.084 Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
2023-10-10 17:27:33.113Z: #8 1.214 Collecting openai
#8 1.218 Downloading openai-0.28.1-py3-none-any.whl (76 kB)
#8 1.235 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.0/77.0 kB 4.3 MB/s eta 0:00:00
2023-10-10 17:27:33.414Z: #8 1.521 Collecting pydantic<2
#8 1.527 Downloading pydantic-1.10.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
#8 1.590 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 50.7 MB/s eta 0:00:00
2023-10-10 17:27:33.565Z: #8 1.708 ERROR: Could not find a version that satisfies the requirement azureml-metrics[prompt-flow]==0.1.0.102333570 (from versions: 0.0.0b1, 0.0.2, 0.0.3, 0.0.4, 0.0.4.post1, 0.0.6, 0.0.6.post1, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.14, 0.0.14.post1, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.18.post1, 0.0.19, 0.0.19.post1, 0.0.20, 0.0.21, 0.0.21.post1, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.25.post1, 0.0.26, 0.0.27, 0.0.28, 0.0.29)
#8 1.708 ERROR: No matching distribution found for azureml-metrics[prompt-flow]==0.1.0.102333570
#8 1.713
#8 1.713 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
#8 1.713 [notice] To update, run: pip install --upgrade pip
2023-10-10 17:27:33.660Z: #8 ERROR: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
------
> [dev_container_auto_added_stage_label 4/9] RUN pip install -r requirements.txt:
1.218 Downloading openai-0.28.1-py3-none-any.whl (76 kB)
1.235 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.0/77.0 kB 4.3 MB/s eta 0:00:00
1.521 Collecting pydantic<2
1.527 Downloading pydantic-1.10.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
1.590 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 50.7 MB/s eta 0:00:00
1.708 ERROR: Could not find a version that satisfies the requirement azureml-metrics[prompt-flow]==0.1.0.102333570 (from versions: 0.0.0b1, 0.0.2, 0.0.3, 0.0.4, 0.0.4.post1, 0.0.6, 0.0.6.post1, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.14, 0.0.14.post1, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.18.post1, 0.0.19, 0.0.19.post1, 0.0.20, 0.0.21, 0.0.21.post1, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.25.post1, 0.0.26, 0.0.27, 0.0.28, 0.0.29)
1.708 ERROR: No matching distribution found for azureml-metrics[prompt-flow]==0.1.0.102333570
1.713
1.713 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
1.713 [notice] To update, run: pip install --upgrade pip
------
2023-10-10 17:27:33.662Z: Dockerfile-with-features:17
--------------------
2023-10-10 17:27:33.664Z: 15 | # Install Python SDK
16 | COPY requirements.txt .
17 | >>> RUN pip install -r requirements.txt
18 |
19 | RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
2023-10-10 17:27:33.665Z: Stop: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.51.3-1696958819924/Dockerfile-with-features -t vsc-aistudio-copilot-sample-19e1202304d14855f9bfaeb8e7175ce5e9a418227ba4391b54cc9d847443ce77 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/aistudio-copilot-sample
2023-10-10 17:27:33.667Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.51.3-1696958819924/Dockerfile-with-features -t vsc-aistudio-copilot-sample-19e1202304d14855f9bfaeb8e7175ce5e9a418227ba4391b54cc9d847443ce77 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/aistudio-copilot-sample
2023-10-10 17:27:33.670Z: {"outcome":"error","message":"Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.51.3-1696958819924/Dockerfile-with-features -t vsc-aistudio-copilot-sample-19e1202304d14855f9bfaeb8e7175ce5e9a418227ba4391b54cc9d847443ce77 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/aistudio-copilot-sample","description":"An error occurred building the image."}
2023-10-10 17:27:33.671Z: at BAA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:463:1860)
2023-10-10 17:27:33.673Z: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-10-10 17:27:33.674Z: at async Ww (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:462:1691)
2023-10-10 17:27:33.675Z: at async SK (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:462:610)
2023-10-10 17:27:33.676Z: at async SAA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:479:3660)
2023-10-10 17:27:33.678Z: at async GC (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:479:4775)
2023-10-10 17:27:33.679Z: at async ZeA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:611:12251)
2023-10-10 17:27:33.680Z: at async VeA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:611:11992)
2023-10-10 17:27:33.682Z: devcontainer process exited with exit code 1
====================================== ERROR ====================================
2023-10-10 17:27:33.683Z: Failed to create container.
=================================================================================
2023-10-10 17:27:33.685Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.51.3-1696958819924/Dockerfile-with-features -t vsc-aistudio-copilot-sample-19e1202304d14855f9bfaeb8e7175ce5e9a418227ba4391b54cc9d847443ce77 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/aistudio-copilot-sample
2023-10-10 17:27:33.686Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
====================================== ERROR ====================================
2023-10-10 17:27:33.691Z: Container creation failed.
=================================================================================
2023-10-10 17:27:33.717Z:
===================================== WARNING ===================================
2023-10-10 17:27:33.719Z: Creating recovery container.
=================================================================================
qubitron commented
Thank you for reporting this! it looks like the package was removed from the linked index feed, I've updated to the public package and tested it works.