Skip to content

[Python] Unable to install requirements.txt #975

@mmuru

Description

@mmuru

Describe the bug
A clear and concise description of what the bug is.
Try to do local build using the steps in README.md file. The checked in arrow-datafusion/python/requirements.txt is locked in python 3.8 version.

the step pip install -r requirements.txt throws the below exception and failed to install dependencies.

Collecting typed-ast>=1.4.2
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    typed-ast>=1.4.2 from https://files.pythonhosted.org/packages/01/08/0d92feed38a4cafe45bcbd42a2507c1900e9ec1e2e9b5e5a472f8ebfa9bb/typed_ast-1.4.3-cp37-cp37m-macosx_10_9_x86_64.whl#sha256=0fb71b8c643187d7492c1f8352f2c15b4c4af3f6338f21681d3681b3dc31a266 (from black==21.7b0->-r requirements.txt (line 15))

To Reproduce
Steps to reproduce the behavior:
Python 3.7.11 version (venv)
pip install -r requirements.txt

Expected behavior
A clear and concise description of what you expected to happen.

It should install all the dependencies without any errors.

Additional context
Add any other context about the problem here.

To workaround is to generate requirements.txt using

pip-compile --generate-hashes requirements.in

Then pip install -r requirements.txt works in python 3.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions