Skip to content

Polars build failed with poetry when trying to install polars[all] #15

@100mi

Description

@100mi

Following output came when tried to install complete version of polars, It failed for subdependency xlsx2csv

➜  hunting git:(feat/pandas-to-polars) ✗ poetry add "polars[all]"
Creating virtualenv hunting in /Users/somitragupta/factly/hunting/.venv
Using version ^0.14.28 for polars

Updating dependencies
Resolving dependencies... (13.6s)

  KeyError

  Package('xlsx2csv', '0.8.0')

  at /usr/local/Cellar/poetry/1.1.13/libexec/lib/python3.10/site-packages/poetry/puzzle/solver.py:270 in _solve
      266│ 
      267│                 continue
      268│ 
      269│             final_packages.append(package)
    → 270│             depths.append(results[package])
      271│ 
      272│         # Return the packages in their original order with associated depths
      273│         return final_packages, depths
      274│ 

As a workaround we are currently using polars with limited sub-dependencies by installing it as :

➜  hunting git:(feat/pandas-to-polars) ✗ poetry add "polars[numpy,pandas,pyarrow,fsspec]"
Using version ^0.14.28 for polars

NOTE : This is not a blocker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions