-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[Suggestion] Force the import library selection priority as the same order as dll_path #9790
Comments
I'm curious how the two environments got mixed together in the first place. |
XGBoost looks for ipdb> pprint(dll_path)
['/mnt/NAS/sda/ShareFolder/lidawei/ExperimentNotebook/daweilee_research/lib/python3.8/site-packages/xgboost/lib',
'/mnt/NAS/sda/ShareFolder/lidawei/ExperimentNotebook/daweilee_research/lib/python3.8/site-packages/xgboost/../../lib',
'/mnt/NAS/sda/ShareFolder/anaconda3/envs/research/lib']
ipdb> sys.base_prefix
'/mnt/NAS/sda/ShareFolder/anaconda3/envs/research' sys — System-specific parameters and functions — Python 3.12.0 documentation
|
Related #9349 . |
We have the same issue in an HPC environment where the base system is installed with conda and a user wants to install a newer version with Adding the |
I'm not against of the change if it reduces confusion for users. But it's a bit odd to me that one would mix environments and sources of packages, it's an invitation of troubles. |
I think the comment #9790 (comment) makes sense, I will prepare a PR for that change. |
Hi, I opened #9860, could you please take a look when you are available? |
core.py
Maybe it is better to break the
lib_paths
for-loop whenlib_success
is True.Which will first use the library along with the package instead of other installed XGBoost in the system somewhere else.
libpath.py
As the comment in
libpath.py
, the dll_path last item was designed to be the last option. But currently, it will be selected if available.And might cause error like this which is misleading:
After adding
if lib_success: break
the error is fixed.The text was updated successfully, but these errors were encountered: