Skip to content

Remove symbolic link for pip in devcontainer#208

Merged
sstjean merged 1 commit intomainfrom
fixpythonsymlink
May 13, 2021
Merged

Remove symbolic link for pip in devcontainer#208
sstjean merged 1 commit intomainfrom
fixpythonsymlink

Conversation

@sstjean
Copy link
Copy Markdown
Contributor

@sstjean sstjean commented May 13, 2021

Description

Removed the symbolic link creation for pip in the dev container. The current Ubuntu 20.04 base image already contains this symlink and this code was failing with the error

ln: failed to create symbolic link '/usr/bin/pip': File exists

The command '/bin/sh -c apt-get update     && 
                        apt-get install -y     python3     python3-pip     && 
                        ln -s /usr/bin/python3 /usr/bin/python     && 
                        ln -s /usr/bin/pip3 /usr/bin/pip' 
returned a non-zero code: 1

Failed to create container.

Issue reference

The issue this PR will close: #207

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles or validates correctly
  • BASH scripts have been validated using shellcheck
  • All tests pass (manual and automated)
  • The documentation is updated to cover any new or changed features
  • Markdown files have been linted using the recommended linter. (See .vscode/extensions.json.)
  • Relevant issues are linked to this PR

Copy link
Copy Markdown
Contributor

@brooke-hamilton brooke-hamilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I successfully built the container in GitHub Codespaces

@sstjean sstjean merged commit 1da1280 into main May 13, 2021
@sstjean sstjean deleted the fixpythonsymlink branch May 13, 2021 19:46
jwaltireland pushed a commit to ARPA-H/AzureMissionLZ that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.devcontainer errors on build with "failed to create symbolic link '/usr/bin/pip': File exists"

2 participants