MaartenGr / MaartenGr/PolyFuzz

Pytorch dependency for Flair too restrictive

Open
#56 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
803
Forks
72
PR merge metrics
No merged PRs in 30d

Description

Hi,

When trying to `pip install polyfuzz[flair]`, pip is not able to resolve the pytorch dependency:

```
INFO: pip is looking at multiple versions of polyfuzz[flair] to determine which version is compatible with other requirements. This could take a while.
Collecting polyfuzz[flair]
Downloading polyfuzz-0.2.0-py2.py3-none-any.whl (25 kB)
Downloading polyfuzz-0.0.1-py2.py3-none-any.whl (21 kB)
WARNING: polyfuzz 0.0.1 does not provide the extra 'flair'
Collecting sparse-dot-topn>=0.2.9
Downloading sparse_dot_topn-0.3.1.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Cannot install polyfuzz[flair]==0.2.2, polyfuzz[flair]==0.3.0, polyfuzz[flair]==0.3.1, polyfuzz[flair]==0.3.2, polyfuzz[flair]==0.3.3, polyfuzz[flair]==0.3.4 and polyfuzz[flair]==0.4.0 because these package versions have conflicting dependencies.

The conflict is caused by:
polyfuzz[flair] 0.4.0 depends on torch<1.7.1 and >=1.4.0; extra == "flair"
polyfuzz[flair] 0.3.4 depends on torch<1.7.1 and >=1.4.0; extra == "flair"
polyfuzz[flair] 0.3.3 depends on torch<1.7.1 and >=1.4.0; extra == "flair"
polyfuzz[flair] 0.3.2 depends on torch>=1.2.0; extra == "flair"
polyfuzz[flair] 0.3.1 depends on torch>=1.2.0; extra == "flair"
polyfuzz[flair] 0.3.0 depends on torch>=1.2.0; extra == "flair"
polyfuzz[flair] 0.2.2 depends on torch>=1.2.0; extra == "flair"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
```

Neither pip nor conda offers pytorch version less than 1.9, current release is 1.13 - is the strict dependency something that can be updated without breaking anything?

Or have I just missed something obvious here?

Standard polyfuzz 0.4 install works just fine, otherwise - but I'd like to try out flair!

Thanks, Indy

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

No dependency file or test is named in the issue. Start by reproducing `pip install polyfuzz[flair]` and locating the package metadata that declares the Flair extra; done means the extra resolves with an available PyTorch version while the standard PolyFuzz install still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
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.