Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codespace and devcontainer fails as distutils is no longer in Python 3.12 #572

Open
cicorias opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@cicorias
Copy link
Member

cicorias commented Sep 3, 2024

During codespace build and error occurs

ModuleNotFoundError: No module named 'distutils'

2024-09-03 14:50:25.214Z: �[?25h2024-09-03 14:50:25.331Z: updateContentCommand failed with exit code 2. Skipping any further user-provided commands.

2024-09-03 14:50:25.333Z: Error: Command failed: /bin/sh -c python3 -m pip install -r requirements.txt
2024-09-03 14:50:25.334Z: {"outcome":"error","message":"Command failed: /bin/sh -c python3 -m pip install -r requirements.txt","description":"The updateContentCommand in the devcontainer.json failed.","containerId":"803038732d9ce917afc83d2b05956bf51951ee79faa4519147dd0610babfa718"}
2024-09-03 14:50:25.334Z:     at b7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130)
2024-09-03 14:50:25.335Z:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-09-03 14:50:25.335Z:     at async Am (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4483)
2024-09-03 14:50:25.335Z:     at async Xw (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3828)
2024-09-03 14:50:25.335Z:     at async $w (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2904)
2024-09-03 14:50:25.335Z:     at async fa (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2438)
2024-09-03 14:50:25.336Z:     at async mtA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:1534)
2024-09-03 14:50:25.336Z:     at async NH (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:964)
2024-09-03 14:50:25.336Z:     at async YtA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:3771)
2024-09-03 14:50:25.337Z:     at async eB (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:4886)
2024-09-03 14:50:25.339Z: devcontainer process exited with exit code 1

Cause

Reason: the distutils package has been removed from the standard library

Copy link

github-actions bot commented Sep 3, 2024

👋 Thanks for contributing @cicorias! We will review the issue and get back to you soon.

cicorias added a commit to cicorias/generative-ai-for-beginners that referenced this issue Sep 3, 2024
this addresses microsoft#572 

Unless you need Python 3.12 which requires more updates to setuptools and even numpy, this is the easiest fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants