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

Problem with package: xgboost #436

Open
3 of 6 tasks
mtobin-tdab opened this issue Mar 15, 2024 · 3 comments
Open
3 of 6 tasks

Problem with package: xgboost #436

mtobin-tdab opened this issue Mar 15, 2024 · 3 comments

Comments

@mtobin-tdab
Copy link

mtobin-tdab commented Mar 15, 2024

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

  • Python 3.7
  • Python 3.9
  • Python 3.11

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

  • Yes

I have checked for duplicate issues

  • Yes

I am the maintainer

  • Yes

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
Copy link
Member

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

And also for any dependencies of this package?

@mtobin-tdab
Copy link
Author

Yes I've done both

@mtobin-tdab
Copy link
Author

mtobin-tdab commented Mar 28, 2024

@bennuttall Did you manage to recreate this issue?

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

No branches or pull requests

2 participants