-
Notifications
You must be signed in to change notification settings - Fork 196
Description
This could be a problem with my setup, but I'm not sure what ths issue is.
Steps to reproduce:
git clone https://github.com/microsoft/python-package-template.git- Open new folder in vscode
- Click reopen in container
What I expected to happen:
Container builds
What actually happens:
[19 ms] Dev Containers 0.282.0 in VS Code 1.76.0 (92da9481c0904c6adfe372c12da3b7748d74bdcb).
[19 ms] Start: Resolving Remote
[27 ms] Setting up container for folder or workspace: /home/dave/dev/python-package-template
[45 ms] Start: Check Docker is running
[45 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[103 ms] Server API version: 1.42
[103 ms] Start: Run: docker volume ls -q
[157 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/home/dave/dev/python-package-template --filter label=vsch.quality=stable
[219 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/dave/dev/python-package-template --filter label=devcontainer.config_file=/home/dave/dev/python-package-template/.devcontainer/devcontainer.json
[266 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/dave/dev/python-package-template
[313 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/dave/dev/python-package-template
[359 ms] Start: Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/dave/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-8ec073a0-9e7f-483c-895e-23f8769211a01678227224650 --workspace-folder /home/dave/dev/python-package-template --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/dave/dev/python-package-template --id-label devcontainer.config_file=/home/dave/dev/python-package-template/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/dave/dev/python-package-template/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[554 ms] (node:24120) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[555 ms] (Use `code --trace-deprecation ...` to show where the warning was created)
[555 ms] @devcontainers/cli 0.31.0. Node.js v16.14.2. linux 5.15.0-58-generic x64.
[555 ms] Start: Run: docker buildx version
[633 ms] github.com/docker/buildx v0.10.2 00ed17d
[633 ms]
[633 ms] Start: Resolving Remote
[636 ms] Start: Run: git rev-parse --show-cdup
[639 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/dave/dev/python-package-template --filter label=devcontainer.config_file=/home/dave/dev/python-package-template/.devcontainer/devcontainer.json
[687 ms] Start: Run: docker inspect --type image mcr.microsoft.com/vscode/devcontainers/miniconda:0-3
[1587 ms] local container features stored at: /home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/node_modules/vscode-dev-containers/container-features
[1591 ms] Start: Run: tar --no-same-owner -x -f -
[1637 ms] * Processing feature: azure-cli
[1637 ms] (!) WARNING: Using the deprecated 'azure-cli' Feature. See https://github.com/devcontainers/features/tree/main/src/azure-cli#example-usage for the updated Feature.
[2504 ms] * Fetching feature: azure-cli_1_oci
[2919 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-dave/container-features/0.31.0-1678227226595/Dockerfile-with-features -t vsc-python-package-template-dea278e8e0a73c483ed75e5dfd0e7447 --target dev_containers_target_stage --build-arg NODE_VERSION=none --build-context dev_containers_feature_content_source=/tmp/devcontainercli-dave/container-features/0.31.0-1678227226595 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/dave/dev/python-package-template
[+] Building 14.2s (15/20)
=> [internal] load build definition from Dockerfile-with-features 0.0s
=> => transferring dockerfile: 6.18kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> resolve image config for docker.io/docker/dockerfile:1.4 0.8s
=> CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531b 0.0s
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/m 0.2s
=> [context dev_containers_feature_content_source] load .dockerignore 0.0s
=> => transferring dev_containers_feature_content_source: 2B 0.0s
=> [context dev_containers_feature_content_source] load from client 0.0s
=> => transferring dev_containers_feature_content_source: 306.52kB 0.0s
=> [dev_container_auto_added_stage_label 1/7] FROM mcr.microsoft.com/vsc 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 1.87kB 0.0s
=> CACHED [dev_container_auto_added_stage_label 2/7] RUN if [ "none" != 0.0s
=> CACHED [dev_container_auto_added_stage_label 3/7] COPY environment.ym 0.0s
=> CACHED [dev_container_auto_added_stage_label 4/7] RUN if [ -f "/tmp/c 0.0s
=> CACHED [dev_container_auto_added_stage_label 5/7] RUN conda install - 0.0s
=> CACHED [dev_container_auto_added_stage_label 6/7] COPY .pre-commit-co 0.0s
=> ERROR [dev_container_auto_added_stage_label 7/7] RUN git init . && p 12.9s
------
> [dev_container_auto_added_stage_label 7/7] RUN git init . && pre-commit install-hooks:
#0 0.315 hint: Using 'master' as the name for the initial branch. This default branch name
#0 0.315 hint: is subject to change. To configure the initial branch name to use in all
#0 0.315 hint: of your new repositories, which will suppress this warning, call:
#0 0.315 hint:
#0 0.315 hint: git config --global init.defaultBranch <name>
#0 0.315 hint:
#0 0.315 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#0 0.315 hint: 'development'. The just-created branch can be renamed via this command:
#0 0.315 hint:
#0 0.315 hint: git branch -m <name>
#0 0.316 Initialized empty Git repository in /.git/
#0 0.453 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
#0 1.298 [INFO] Initializing environment for https://github.com/PyCQA/isort.
#0 3.267 [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
#0 4.104 [INFO] Initializing environment for https://github.com/hadialqattan/pycln.
#0 5.183 [INFO] Initializing environment for https://github.com/codespell-project/codespell.
#0 6.183 [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
#0 6.942 [INFO] Initializing environment for https://github.com/mgedmin/check-manifest.
#0 7.721 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
#0 7.721 [INFO] Once installed this environment will be reused.
#0 7.721 [INFO] This may take a few minutes...
#0 10.64 [INFO] Installing environment for https://github.com/PyCQA/isort.
#0 10.64 [INFO] Once installed this environment will be reused.
#0 10.64 [INFO] This may take a few minutes...
#0 12.83 An unexpected error has occurred: CalledProcessError: command: ('/root/.cache/pre-commit/repo73dmi5u3/py_env-python3/bin/python', '-mpip', 'install', '.')
#0 12.83 return code: 1
#0 12.83 stdout:
#0 12.83 Processing /root/.cache/pre-commit/repo73dmi5u3
#0 12.83 Installing build dependencies: started
#0 12.83 Installing build dependencies: finished with status 'done'
#0 12.83 Getting requirements to build wheel: started
#0 12.83 Getting requirements to build wheel: finished with status 'done'
#0 12.83 Preparing metadata (pyproject.toml): started
#0 12.83 Preparing metadata (pyproject.toml): finished with status 'error'
#0 12.83 stderr:
#0 12.83 error: subprocess-exited-with-error
#0 12.83
#0 12.83 × Preparing metadata (pyproject.toml) did not run successfully.
#0 12.83 │ exit code: 1
#0 12.83 ╰─> [14 lines of output]
#0 12.83 Traceback (most recent call last):
#0 12.83 File "/root/.cache/pre-commit/repo73dmi5u3/py_env-python3/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
#0 12.83 main()
#0 12.83 File "/root/.cache/pre-commit/repo73dmi5u3/py_env-python3/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
#0 12.83 json_out['return_val'] = hook(**hook_input['kwargs'])
#0 12.83 File "/root/.cache/pre-commit/repo73dmi5u3/py_env-python3/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
#0 12.83 return hook(metadata_directory, config_settings)
#0 12.83 File "/tmp/pip-build-env-cj2uaj8h/overlay/lib/python3.8/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
#0 12.83 poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
#0 12.83 File "/tmp/pip-build-env-cj2uaj8h/overlay/lib/python3.8/site-packages/poetry/core/factory.py", line 57, in create_poetry
#0 12.83 raise RuntimeError("The Poetry configuration is invalid:\n" + message)
#0 12.83 RuntimeError: The Poetry configuration is invalid:
#0 12.83 - [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'
#0 12.83
#0 12.83 [end of output]
#0 12.83
#0 12.83 note: This error originates from a subprocess, and is likely not a problem with pip.
#0 12.83 error: metadata-generation-failed
#0 12.83
#0 12.83 × Encountered error while generating package metadata.
#0 12.83 ╰─> See above for output.
#0 12.83
#0 12.83 note: This is an issue with the package mentioned above, not pip.
#0 12.83 hint: See above for details.
#0 12.83 Check the log at /root/.cache/pre-commit/pre-commit.log
------
Dockerfile-with-features:26
--------------------
24 |
25 | COPY .pre-commit-config.yaml .
26 | >>> RUN git init . && pre-commit install-hooks
27 |
28 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git init . && pre-commit install-hooks" did not complete successfully: exit code: 3
[17577 ms] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-dave/container-features/0.31.0-1678227226595/Dockerfile-with-features -t vsc-python-package-template-dea278e8e0a73c483ed75e5dfd0e7447 --target dev_containers_target_stage --build-arg NODE_VERSION=none --build-context dev_containers_feature_content_source=/tmp/devcontainercli-dave/container-features/0.31.0-1678227226595 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/dave/dev/python-package-template
[17577 ms] at hie (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1931:1698)
[17578 ms] at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[17578 ms] at async FF (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1930:3910)
[17578 ms] at async S7 (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1930:2839)
[17579 ms] at async xie (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1945:2625)
[17579 ms] at async Wf (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1945:3750)
[17579 ms] at async noe (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:17325)
[17580 ms] at async roe (/home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:17066)
[17587 ms] Exit code 1
[17591 ms] Command failed: /usr/share/code/code --ms-enable-electron-run-as-node /home/dave/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/dave/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-8ec073a0-9e7f-483c-895e-23f8769211a01678227224650 --workspace-folder /home/dave/dev/python-package-template --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/dave/dev/python-package-template --id-label devcontainer.config_file=/home/dave/dev/python-package-template/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/dave/dev/python-package-template/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[17591 ms] Exit code 1
Metadata
Metadata
Assignees
Labels
No labels