NumbersStationAI / DuckDB-NSQL

DuckDB NSQL Model
Apache License 2.0
202 stars 10 forks source link

Install fails with version conflict (ResolutionImpossible) #8

Open jaraco opened 2 months ago

jaraco commented 2 months ago

After bypassing #5 by disabling the flash-attn dependency, I run pip install -r requirements.txt and I encounter this failure:

 @ DuckDB-NSQL main @ py -m pip install -r requirements.txt
...
INFO: pip is looking at multiple versions of manifest-ml[all] to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 21), manifest-ml[all]==0.1.8 and transformers>=4.34.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested transformers>=4.34.1
    peft 0.6.0 depends on transformers
    manifest-ml[all] 0.1.8 depends on transformers<4.31.0 and >=4.29.0; extra == "all"

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

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Indeed, I see transformers>=4.34.1 and manifest-ml[all]==0.1.8 in the requirements, so it seems this set of requirements was never solveable.

jaraco commented 2 months ago

I see in #2 "and requirements update". Maybe that's needed to get things to install.

jaraco commented 2 months ago

Indeed, applying that PR, I'm almost able to get the requirements to install, seemingly only failing to get duckdb to build. If I bump duckdb to 0.10.2, the dependencies resolve.

jaraco commented 2 months ago

Oh, interesting. If I start from scratch, it still doesn't install due to another ResolutionImpossible:

ERROR: Cannot install manifest-ml and pydantic>2 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested pydantic>2
    manifest-ml 0.1.9 depends on pydantic<2.0 and >=1.9.0