-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[python-package] fix libpath.py #6192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhhh sorry about that! This is my fault.
But given this bug has been there since v4.0.0 and we've received 0 reports of anyone encountering an error... could we just remove that item from the list of searched paths entirely?
I think that as of the move to scikit-build-core
+ the build-python.sh
script, there is less opportunity for lib_lightgbm.so
ending up in a non-standard path.
Removing that item would speed up library-loading a bit and reduce the risk of errors caused by non-standard approaches to building lightgbm
.
Actually I got a report from @chjinche this morning about the issue. And the first correct path is used in the LightGBM-Transform. So, can we just keep this since it seems that LightGBM-Transform heavily relies on the first path. |
If we want to prioritize the safety for the package, @chjinche may also help to change the paths in LightGBM-Transform. Which approach do you think is preferred? @jameslamb @chjinche |
Thanks for that. In the future @chjinche , I'd appreciate if you please post here on the project's public issue tracker instead of sending bug reports in private messages.
I'm surprised to learn that project relies "heavily" on something that appears to have been broken for several months. Seems that they're just now picking up development after more than a year of inactivity. https://github.com/microsoft/lightgbm-transform/commits/main I think |
hi @jameslamb to clarify, we are not asking for some private message, but are debugging community PR CI failure microsoft/lightgbm-transform#26 issue and found this. Looks it is a fault as you mentioned, and not intentional, could you please allow this fix in this time, so unblock people, we may consider improving our releasing process in the future to be more tolerant for the candidate path changes. |
Thanks for that! Linking to that context in the PR description would have prevented me from drawing an incorrect conclusion.
I really don't think we should. It seems that all you'd need to do is to fix these lines: to copy I don't support missing this opportunity to simplify |
Thanks @jameslamb, but looks more than the line work. This is because transform lib works as extensive Not sure if just simple line modification works, but I'll try. Anyway, |
Because as far as I can tell, the only thing relying on Please see all the discussion in #5061 and all the pull requests linked from it. In response to changes in Python packaging standards upstream (e.g. in That previous path ( But now that I am looking very carefully at each path as a result of this PR, I'd prefer to remove a path that, as far as I can tell, only Having fewer possible places that
Ultimately @shiyu1994 has the power to override me in this project, so if he says to drop my objection then I'll drop it. But I feel strongly that making |
@jameslamb if I understand correctly, the first candidate path should be removed, right? Can you commit the other three will not change in the future? Please kindly share your future plan.
|
correct.
I have no plan to remove those, correct. |
Based on microsoft/lightgbm-transform#26 being merged and the changes that were passed there, I guess you were able to resolve this in @shiyu1994 could you please update this PR to just completely remove that first path? Let's take this opportunity to simplify |
Thanks. I've removed the first library path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much!
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
This is to fix a mistake in libpath.py, which causes a wrong candidate library path, as shown by the first one below:
With this fix, it becomes