You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just created a new project from this template, tried to create a codespace, and it failed (consistently/repeatedly) with the following error (verbose, becaause I'm not sure which bits are important):
=================================================================================
2023-12-04 07:51:42.603Z: Running blocking commands...
2023-12-04 07:51:42.633Z: $ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/poormans-python-testing --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --expect-existing-container --config "/var/lib/docker/codespacemount/workspace/poormans-python-testing/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
2023-12-04 07:51:42.865Z: @devcontainers/cli 0.52.1. Node.js v18.17.1. linux 6.2.0-1016-azure x64.
2023-12-04 07:51:43.226Z: Running the onCreateCommand from devcontainer.json...
2023-12-04 07:51:43.234Z: pre-commit install-hooks
2023-12-04 07:51:43.840Z: [INFO]�[m Initializing environment for ********/pre-commit/pre-commit-hooks.
2023-12-04 07:51:44.942Z: [INFO]�[m Initializing environment for ********/PyCQA/isort.
2023-12-04 07:51:45.678Z: [INFO]�[m Initializing environment for ********/asottile/pyupgrade.
2023-12-04 07:51:46.354Z: [INFO]�[m Initializing environment for ********/hadialqattan/pycln.
2023-12-04 07:51:47.068Z: [INFO]�[m Initializing environment for ********/codespell-project/codespell.
2023-12-04 07:51:47.725Z: [INFO]�[m Initializing environment for ********/pre-commit/pygrep-hooks.
2023-12-04 07:51:48.302Z: [INFO]�[m Initializing environment for ********/mgedmin/check-manifest.
2023-12-04 07:51:48.938Z: [INFO]�[m Installing environment for ********/pre-commit/pre-commit-hooks.
[INFO]�[m Once installed this environment will be reused.
[INFO]�[m This may take a few minutes...
2023-12-04 07:51:54.899Z: [INFO]�[m Installing environment for ********/PyCQA/isort.
2023-12-04 07:51:54.907Z: [INFO]�[m Once installed this environment will be reused.
[INFO]�[m This may take a few minutes...
2023-12-04 07:51:57.913Z: [INFO]�[m Installing environment for ********/asottile/pyupgrade.
[INFO]�[m Once installed this environment will be reused.
[INFO]�[m This may take a few minutes...
2023-12-04 07:52:01.732Z: [INFO]�[m Installing environment for ********/hadialqattan/pycln.
[INFO]�[m Once installed this environment will be reused.
[INFO]�[m This may take a few minutes...
2023-12-04 07:52:20.173Z: An unexpected error has occurred: CalledProcessError: command: ('/home/vscode/.cache/pre-commit/repo52rhy_om/py_env-python3/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
Processing /home/vscode/.cache/pre-commit/repo52rhy_om
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting libcst<0.4.0,>=0.3.10 (from pycln==1.2.5)
Downloading libcst-0.3.23-py3-none-any.whl (517 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 517.4/517.4 kB 9.2 MB/s eta 0:00:00
Collecting pathspec<0.10.0,>=0.9.0 (from pycln==1.2.5)
Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting pyyaml<6.0.0,>=5.3.1 (from pycln==1.2.5)
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 5.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
stderr:
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/home/vscode/.cache/pre-commit/repo52rhy_om2023-12-04 07:52:20.179Z: /py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/vscode/.cache/pre-commit/repo52rhy_om/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.cache/pre-commit/repo52rhy_om/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-dtb0y3el/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-dtb0y3el/overlay/2023-12-04 07:52:20.187Z: lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
2023-12-04 07:52:20.189Z: Check the log at /home/vscode/.cache/pre-commit/pre-commit.log
2023-12-04 07:52:20.237Z: onCreateCommand failed with exit code 3. Skipping any further user-provided commands.
2023-12-04 07:52:20.248Z: Error: Command failed: /bin/sh -c pre-commit install-hooks
2023-12-04 07:52:20.254Z: at WY (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130)
2023-12-04 07:52:20.261Z: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-12-04 07:52:20.298Z: {"outcome":"error","message":"Command failed: /bin/sh -c pre-commit install-hooks","description":"The onCreateCommand in the devcontainer.json failed.","containerId":"63f3ec8410a6bc47d1c4723747eb4471684227113686782fe8af91f0a4768f6e"}
2023-12-04 07:52:20.304Z: at async bl (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4393)
2023-12-04 07:52:20.314Z: at async Ll (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3738)
2023-12-04 07:52:20.321Z: at async vl (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2745)
2023-12-04 07:52:20.326Z: at async Js (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2386)
2023-12-04 07:52:20.330Z: at async QAA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:462:1496)
2023-12-04 07:52:20.334Z: at async kK (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:462:964)
2023-12-04 07:52:20.337Z: at async NAA (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:479:3660)
2023-12-04 07:52:20.342Z: at async vC (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:479:4775)
2023-12-04 07:52:20.347Z: devcontainer process exited with exit code 1
====================================== ERROR ====================================
2023-12-04 07:52:20.352Z: Failed to create container.
=================================================================================
2023-12-04 07:52:20.359Z: Error: Command failed: /bin/sh -c pre-commit install-hooks
2023-12-04 07:52:20.364Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
The text was updated successfully, but these errors were encountered:
I just created a new project from this template, tried to create a codespace, and it failed (consistently/repeatedly) with the following error (verbose, becaause I'm not sure which bits are important):
The text was updated successfully, but these errors were encountered: