Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Python 3.8 macOS CI jobs failing: "symbol not found" when loading pyarrow #6772

Closed
jameslamb opened this issue Jan 2, 2025 · 0 comments · Fixed by #6771
Closed

[ci] Python 3.8 macOS CI jobs failing: "symbol not found" when loading pyarrow #6772

jameslamb opened this issue Jan 2, 2025 · 0 comments · Fixed by #6771

Comments

@jameslamb
Copy link
Collaborator

Description

The Python 3.8 CI job on macOS here is failing like this:

___________ ERROR collecting tests/python_package_test/test_arrow.py ___________
ImportError while importing test module '/Users/runner/work/LightGBM/LightGBM/tests/python_package_test/test_arrow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../miniforge/envs/test-env/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/python_package_test/test_arrow.py:21: in
import pyarrow as pa # type: ignore
../../../miniforge/envs/test-env/lib/python3.8/site-packages/pyarrow/init.py:65: in
import pyarrow.lib as _lib
E ImportError: dlopen(/Users/runner/miniforge/envs/test-env/lib/python3.8/site-packages/pyarrow/lib.cpython-38-darwin.so, 0x0002): Symbol not found: _ZN4absl12lts_2024072212log_internal10LogMessagelsIiLi0EEERS2_RKT
E Referenced from: /Users/runner/miniforge/envs/test-env/lib/libprotobuf.28.2.0.dylib
E Expected in: /Users/runner/miniforge/envs/test-env/lib/libabsl_log_internal_message.2407.0.0.dylib
=========================== short test summary info ============================
ERROR tests/python_package_test/test_arrow.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 skipped, 1 error in 5.85s ==========================

(build link)

Reproducible example

Example build: https://github.com/microsoft/LightGBM/actions/runs/12585086008/job/35076093860?pr=6765

Environment info

LightGBM version or commit hash: f3bd64a

Additional Comments

I pulled the logs from a failed build (build link) and the last successful one, from a few days ago (build link).

There were just 3 changes in the conda environment:

-  libabseil          conda-forge/osx-64::libabseil-20240722.0-cxx17_hac325c4_1 
+  libabseil          conda-forge/osx-64::libabseil-20240722.0-cxx17_h0e468a2_2

-  libre2-11          conda-forge/osx-64::libre2-11-2024.07.02-hd530cb8_1 
+  libre2-11          conda-forge/osx-64::libre2-11-2024.07.02-h0e468a2_2

-  re2                conda-forge/osx-64::re2-2024.07.02-h2fb0a26_1 
+  re2                conda-forge/osx-64::re2-2024.07.02-ha5e900a_2

Looks like maybe this PR was the root cause:

And that that led to these other discussions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant