Skip to content

[CI][Python] pyarrow.lib fails loading on AppVeyor #44991

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

Recently the AppVeyor CI jobs have started failing with this error:

(arrow) C:\projects\arrow\python>py.test -r sxX --durations=15 --pyargs pyarrow.tests   || exit /B 
ERROR: module or package not found: pyarrow.tests (missing __init__.py?)
============================= test session starts =============================
platform win32 -- Python 3.10.16, pytest-8.3.4, pluggy-1.5.0
rootdir: C:\projects\arrow\python
configfile: setup.cfg
plugins: hypothesis-6.122.3
collected 0 items
============================ no tests ran in 1.43s ============================

A bit of debugging shows that its pyarrow.lib that fails loading, even though the corresponding DLL lib.cp310-win_amd64.pyd exists:

________________________ ERROR collecting test session ________________________
C:\Miniconda38-x64\envs\arrow\lib\importlib\__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:992: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:883: in exec_module
    ???
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
    ???
C:\Miniconda38-x64\envs\arrow\lib\site-packages\pyarrow\__init__.py:65: in <module>
    import pyarrow.lib as _lib
E   ImportError: DLL load failed while importing lib: The specified module could not be found.

When one compares a successful build from 4 days before and a failing build, the only relevant differences seem to be a CMake version bump and a NumPy version bump. However, neither downgrading NumPy nor downgrading CMake fixes the problem. No change in the source tree seems like it could have caused the issue.

(I also tried downgrading LZ4, which also failed)

Component(s)

Continuous Integration, Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions