apache / arrow

Apache Arrow is a multi-language toolbox for accelerated data interchange and in-memory processing
https://arrow.apache.org/
Apache License 2.0
14.42k stars 3.51k forks source link

[Python] pyarrow wheel: `DLL load failed` when importing on windows #22421

Closed asfimport closed 4 years ago

asfimport commented 5 years ago

When installing pyarrow 0.14.1 on windows 10 x64 with python 3.7, you get:

import pyarrow Traceback (most recent call last):   File "", line 1, in   File "C:\Python37\lib\site-packages\pyarrow__init__.py", line 49, in     from pyarrow.lib import cpu_count, set_cpu_count   ImportError: DLL load failed: The specified module could not be found.

On 0.14.0 everything works fine.

Reporter: Ruslan Kuprieiev / @efiop Assignee: Krisztian Szucs / @kszucs

Related issues:

Note: This issue was originally created as ARROW-6015. Please see the migration documentation for further details.

asfimport commented 4 years ago

Sascha Hofmann / @saschahofmann: We were observing the same error with a conda installation of pyarrow 0.15.0. Previously (on 0.14.1) we were running error-free.  After updating the DLL loading failed error started popping up. We finally fixed it by installing the Visual C++ Redistributables 2019. Neither the 2015 or 2017 versions were fixing the issue!

 

Edit: After restarting the machine, we are now seeing the error again. We are on Windows 10 and are using conda to install pyarrow.

asfimport commented 4 years ago

Wes McKinney / @wesm: This was resolved in 0.15.0.

Any conda issues are something else and should be diagnosed separately, can you open an issue on the pyarrow-feedstock on conda-forge?

I ran


conda create -n pyarrow-conda-test python=3.7 pyarrow -c conda-forge

and couldn't reproduce the issue locally

asfimport commented 4 years ago

Sascha Hofmann / @saschahofmann: Ok, great. I will do that. I just found an issue there which is probably related/ the same as ours. Thanks