openedx / openedx/xblock-sdk

Failed to create symbolic link error

Open
#197 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.