linkedin / linkedin/shiv

shiv generate bad executable (interpreter = #!/usr/share/bash-completion/completions/python3)

Open
#148 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.9k
Forks
114
PR merge metrics
No merged PRs in 30d

Description

Since the latest binary release of `shiv` is [missing](https://github.com/linkedin/shiv/issues/147), I have tried to build it with itself - according to https://github.com/linkedin/shiv#installing (except, I run these in an empty directory):

```
python3 -m venv .
source bin/activate
pip install shiv
shiv -c shiv -o shiv shiv
```

The resulting executable is not working:

```bash
$ ./shiv
-bash: ./shiv: /usr/share/bash-completion/completions/python3: bad interpreter: Permission denied

$ head -1 shiv
#!/usr/share/bash-completion/completions/python3
```

----
OS: Arch linux
Python: 3.8.3
shiv: 0.1.2 (current from pypi)

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 by reproducing the issue with the listed Python 3.8.3, Arch Linux environment, and the documented `shiv -c shiv -o shiv shiv` command. Inspect the generated `shiv` executable and its first-line interpreter path; done means the self-built command runs successfully with a usable interpreter path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.