piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Problem with package: xgboost #436

Open mtobin-tdab opened 3 months ago

mtobin-tdab commented 3 months ago

Package name

xgboost

Package version

2.0.3

PyPI URL

https://pypi.org/project/xgboost/

piwheels URL

https://www.piwheels.org/project/xgboost/

Python version

I am aware this is the issue tracker for a Python package index specifically for Raspberry Pi

I have checked for duplicate issues

I am the maintainer

More information

The 2.0.3 wheel for xgboost linux/arm/7 can be installed but not run. It produces the following result:

Python 3.9.18 (main, Mar 12 2024, 06:33:39)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xgboost
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/code/.venv/lib/python3.9/site-packages/xgboost/__init__.py", line 7, in <module>
    from . import collective, dask, rabit
  File "/code/.venv/lib/python3.9/site-packages/xgboost/collective.py", line 12, in <module>
    from .core import _LIB, _check_call, c_str, from_pystr_to_cstr, py_str
  File "/code/.venv/lib/python3.9/site-packages/xgboost/core.py", line 267, in <module>
    _LIB = _load_lib()
  File "/code/.venv/lib/python3.9/site-packages/xgboost/core.py", line 217, in _load_lib
    raise XGBoostError(
xgboost.core.XGBoostError:
XGBoost Library (libxgboost.so) could not be loaded.
Likely causes:
  * OpenMP runtime is not installed
    - vcomp140.dll or libgomp-1.dll for Windows
    - libomp.dylib for Mac OSX
    - libgomp.so for Linux and other UNIX-like OSes
    Mac OSX users: Run `brew install libomp` to install OpenMP runtime.

  * You are running 32-bit Python on a 64-bit OS

Error message(s): ["/usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /code/.venv/lib/python3.9/site-packages/xgboost/lib/libxgboost.so)"]

Running on:

Linux 97949f311687 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux

Hardware : BCM2835 Revision : a020d3 Serial : 00000000d8e74aaf Model : Raspberry Pi 3 Model B Plus Rev 1.3

bennuttall commented 3 months ago

Did you install the apt dependencies listed here: https://www.piwheels.org/project/xgboost/

And also for any dependencies of this package?

mtobin-tdab commented 3 months ago

Yes I've done both

mtobin-tdab commented 3 months ago

@bennuttall Did you manage to recreate this issue?