-
Notifications
You must be signed in to change notification settings - Fork 519
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
Make yarn.py and launcher.py compatible with Python 3 #564
Conversation
Does this need to be done in any other files? What would be the repurcussions of just moving this to be only python3 compaible? Py2 is deprecated; it feels backwards to have to support this. Current users can continue to use an older git commit if necessary. |
@ericangelokim So you are okay with dropping Python 2.x? |
The versioning of this code is dependent on xgb version? |
@ericangelokim It's other way around. Each XGBoost version has reference to exact commit hash of dmlc-core. |
Right so existing customers of xgboost (locked to a previous version) will not be affected by this. In that case I think it makes sense to deprecate python 2 support. |
You may want to run an example training with python3 when changes are done to ensure that this is the only place that is affected. |
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.
Is there any way we can test this? Maybe a with mock? Not necessary for this PR, but tests generally makes life easier ...
I encountered the same error in the MPI tracker today, assume it's the same cause. |
@thvasilo I'm not sure why that line would cause issue. |
I'll need to check again, I'm running 0.72 and got this error, didn't
notice the new code on master.
…On Thu, Sep 26, 2019, 18:31 Philip Hyunsu Cho ***@***.***> wrote:
@thvasilo <https://github.com/thvasilo> I'm not sure why that line would
cause issue. b'mpich' in out seems quite valid.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#564?email_source=notifications&email_token=ACFBHI4HVNOP42NTE32MRR3QLTPULA5CNFSM4I2EWYRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WFXNA#issuecomment-535583668>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFBHI6Z2JLMOLMXZLIYTZLQLTPULANCNFSM4I2EWYRA>
.
|
Yup never mind, this was back in 0.72 |
I launched an EMR cluster today to test this out. I got this error in one of the containers:
Adding the argument I think the reason is explained in the docs for Popen:
|
@thvasilo Can you try my latest fix? I did not use |
I am getting the following error when trying to run
There's also a bug on line 58, if I'm not mistaken: |
Closes #538
@ericangelokim @thvasilo @chenqin @trivialfis Can you review?
For now, I added a compatibility shim to support both Python 2 and 3. See #565