question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[KED-1055] Dependency issue with pyarrow

See original GitHub issue

Description

There is a regression on windows for kedro 0.15.1 and 0.15.0 on windows. When running pipenv install kedro===0.14.3, everything is fine, but when doing pipenv install kedro===0.15.0 or pipenv install kedro===0.15.1, it fails at a depency on pyarrow 0.14.1

Context

I can’t install the latest version of kedro on windows 10

Steps to Reproduce

  1. create a fresh python environment and activate it
  2. pipenv install kedro

Expected Result

The dependency should be resolved, and kedro 0.15 should be able to install on windows

Actual Result

Fails to install kedro

[pipenv.exceptions.InstallError]: ['Collecting pyarrow==0.14.1 (from -r C:\\Users\\OUELAL\\AppData\\Local\\Temp\\pipenv-1e42tyv4-requirements\\pipenv-ocm118ym-requirement.txt (line 1))']
[pipenv.exceptions.InstallError]: ['ERROR: Could not find a version that satisfies the requirement pyarrow==0.14.1 (from -r C:\\Users\\OUELAL\\AppData\\Local\\Temp\\pipenv-1e42tyv4-requirements\\pipenv-ocm118ym-requirement.txt (line 1)) (from versions: 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0)', 'ERROR: No matching distribution found for pyarrow==0.14.1 (from -r C:\\Users\\OUELAL\\AppData\\Local\\Temp\\pipenv-1e42tyv4-requirements\\pipenv-ocm118ym-requirement.txt (line 1))']

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Kedro version used (pip show kedro or kedro -V):
  • Python version used (python -V): Python 3.6.8
  • Operating system and version: Windows 10 Pro

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
AlexandreOuelletcommented, Sep 18, 2019

I’ve had a look, and pyarrow was pinned to 0.12.0 in the kedro 0.14.3 release.

Also, this doesn’t happen with a pip install, only pipenv. I’ve had a similar issue with airflow, where essentially an unpinned dependency got updated, and it’s requirements of a common library was pinned to a higher version. So airflow depended on X and Y. X also depended on an unpinned version of Y and suddenly the dependency got all screwed up when X got updated. Pip was not making an error (although it should have), but pipenv was correctly throwing an error.

edit: To clarify, it was essentially this issue : https://github.com/pypa/pipenv/issues/2596

1reaction
AlexandreOuelletcommented, Sep 17, 2019

as a workaround, you can pin the pyarrow version to 0.14.0, and it seems to do the trick.

Here is my Pipfile :

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
pyarrow = "==0.14.0"
kedro = "*"

[requires]
python_version = "3.6"

What I find strange is that you need to pin the pyarrow version within the packages for it to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[KED-1055] Dependency issue with pyarrow #94 - GitHub
There is a regression on windows for kedro 0.15.1 and 0.15.0 on windows. When running pipenv install kedro===0.14.3 , everything is fine, but ......
Read more >
Installing PyArrow — Apache Arrow v10.0.1
If you encounter any importing issues of the pip wheels on Windows, you may need to install the Visual C++ Redistributable for Visual...
Read more >
pyarrow 4.0.1 - PyPI
If you encounter any issues importing the pip wheels on Windows, you may need to install the Visual C++ Redistributable for Visual Studio ......
Read more >
pyarrow dependency custom build wheel - c++ - Stack Overflow
I am developing a python package using pybind11 which depends on pyarrow to interop between data types in python and C++.
Read more >
Pyarrow - :: Anaconda.org
conda install -c conda-forge pyarrow conda install -c "conda-forge/label/broken" pyarrow conda install -c "conda-forge/label/cf201901" pyarrow
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found