Failed to create symbolic link error
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 70
- Forks
- 104
- Avg merge
- 17h 46m
- Merged PRs (30d)
- 14
Description
I am trying to utilize this xblock-sdk and am installing it via Docker as explained in the readme file. However, when I run make docker_build I get the following error:
> [5/6] RUN ln -s /usr/bin/python3.8 /usr/bin/python && /usr/bin/python3 -m pip install --upgrade pip && pip install -r /usr/local/src/xblock-sdk/requirements/dev.txt:
#9 0.695 ln: failed to create symbolic link '/usr/bin/python': File exists
------
executor failed running [/bin/sh -c ln -s /usr/bin/python3.8 /usr/bin/python && /usr/bin/python3 -m pip install --upgrade pip && pip install -r /usr/local/src/xblock-sdk/requirements/dev.txt]: exit code: 1
ERROR: Service 'xblock_sdk' failed to build
make: *** [docker_build] Error 1
I interpret that error to mean that Python already exists, which seems like a good thing. How do I rectify this issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's Docker setup and run make docker_build to reproduce the failure. Inspect the build step containing ln -s /usr/bin/python3.8 /usr/bin/python; done means the xblock-sdk Docker image builds successfully without the existing-link error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100