microsoft / microsoft/Graphormer

Error running 'bash install.sh': option --use-feature: invalid choice: 'in-tree-build'

Open
#197 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.5k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

When running the bash install.sh I'm getting this error:

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

option --use-feature: invalid choice: 'in-tree-build' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
install.sh: line 22: 1225 Segmentation fault python setup.py build_ext --inplace

image

It's related to this line within the install.sh file:

pip install . --use-feature=in-tree-build

The error message is indicating that --use-feature=in-tree-build is not a valid option for the pip install command. The valid choices for --use-feature are fast-deps, truststore, and no-binary-enable-wheel-cache.

The in-tree-build feature was used in pip version 21.3 to allow building packages in their own directory, but I'm using a newer version "pip 24.0".

If I directly run that line, I get the same error:

image

Looks like a bug/issue in the bash install.sh script to be fixed?
Or is there any workaround/fix for this?

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 reading install.sh, especially the pip install command and line 22 where python setup.py build_ext --inplace runs. Reproduce the failure with pip 24.0, then verify that the installation completes without the invalid --use-feature error or the reported build failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.