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
xgboost.DMatrix
raises AttributeError
in xgboost 1.3.0
#6481
Comments
@harupy It appears that the XGBoost package inside your virtual env is conflicting with an older XGBoost package installed somewhere else in the system. Can you scan your system to check for other copies of XGBoost? |
I cannot reproduce the error on my Linux machine after installing a fresh copy of XGBoost. |
@harupy Usually, the XGBoost python package should locate Currently, here are the list of paths xgboost/python-package/xgboost/libpath.py Lines 21 to 30 in 0ffaf0f
|
@hcho3 Thanks for the quick reply. You're right. The error I got seems related to my environment. |
This Dockerfile:
gave:
|
@harupy I reproduced the issue on my end using the container
|
I was able to repro the error by importing xgboost:
logs
|
@harupy I think I found a fix. See #6480 (comment) |
@hcho3 Thanks for the quick action. The new wheel worked. Here's the updated dockerfile.
|
The 1.3.0.post0 version is now available on PyPI: https://pypi.org/project/xgboost/1.3.0.post0/#files. It contains the hot fix (#6482) and should not crash upon import. |
@hcho3 Thanks you 👍 |
Thanks for participating in the XGBoost community! We use https://discuss.xgboost.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first :)
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
For bug reports, to help the developer act on the issues, please include a description of your environment, preferably a minimum script to reproduce the problem.
For feature proposals, list clear, small actionable items so we can track the progress of the change.
Code to reproduce the error.
The text was updated successfully, but these errors were encountered: