linkedin / linkedin/pygradle

[0.8.10] - Task :python:installProject FAILED

Open
#256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
603
Forks
142
PR merge metrics
No merged PRs in 30d

Description

## Repro:
`$ gradlew build`
`$ gradlew build`

## Error:
```
$ gradlew build
Configuration on demand is an incubating feature.

> Task :python:installProject FAILED
Error installing package using `[/Users/<>/repo/cs-interview-questions/python/build/venv/bin/python, /Users/<>/repo/cs-interview-questions/python/build/venv/bin/pip, install, --disable-pip-version-check, --no-deps, --ignore-installed, --editable, /Users/<>/repo/cs-interview-questions/python]`
Obtaining file:///Users/<>/repo/cs-interview-questions/python
Installing collected packages: python
Found existing installation: Python 2.7.14
Cannot uninstall 'Python'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':python:installProject'.
> Failed to install python. Please see above output for reason, or re-run your build using ``gradle -i build`` for additional logging.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
```

Contributor guide

No contributing guide indexed for this repository

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 running `gradlew build` and inspect the `:python:installProject` task using the reported error output. Investigate the interaction between `python/build/venv`, pip's editable install, and the existing Python 2.7.14 installation; done means the build completes without the installation failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.