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
FIX Python 3 compatibility #1361
Conversation
By the way, some of the modifications are in joblib. I am working on G |
All tests still pass if run in python 2.6 or 2.7. (with nupy 1.6.2, scipy 0.11) |
Thanks, great. I just realized that our jenkins bot testing python 3 compatibility doesn't run at the moment, which explains why it is not working for you. @ogrisel could you please have a look at this then? |
On Tue, Nov 13, 2012 at 12:11:56PM -0800, Andreas Mueller wrote:
Just don't worry about this. I've just committed a huge amount of fixes I'll wait a bit, and then do a release and merge them in scikit-learn. In I was just mentioning this to tell you not to spend too much time on |
Yeah the jenkins build is disabled because we never found the time to finish the port so it was just wasting cpu cycles and failing over and over again. BTW I would like to get rid of the 2to3 translation stuff and just have a single code base that supports both 2.6 / 2.7 and 3.3+. I had started a branch a while ago (during last pycon: https://github.com/ogrisel/scikit-learn/tree/py3k ) but it got stalled. All tests in scikit-learn were passing both in 2.6, 2.7 and 3.2 but there were remaining failures in joblib. Now that python 3.3 reintroduced the |
I removed the changes I made to joblib, it was a nice git exercise :). A single code base sounds like a good idea, but in the mean time, I will still try to fix-up the current master version so I can use it in pyton 3.2. |
Yes, this seems about right. I'll try to review your changes and merge Thanks for pushing ahead with the Python 3 issues. This is useful! |
I also managed to patch setup.py to make scikit-learn installation on python 3 play nicely with pip. Should I add the change to this pull request or open another one? |
Thanks @astaric, can you please confirm that the tests still pass in 2.6 and 2.7 in this PR?
Please open a new one so that we can already merge this one quickly independently. |
I have rerun all the tests in 2.6 and 2.7 and they still pass. |
Ok +1 for merging then. |
+1 for merge |
Thanks! |
Fixed old-style imports, a bug that prevented scikit-learn from importing in python 3.2 and some failing tests.