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 3.7 macOS Support #2079
Python 3.7 macOS Support #2079
Conversation
Awesome, this is looking great! I can help with the |
91b597b
to
4b15ca7
Compare
57f46fc
to
aeef399
Compare
del net._children[24] | ||
net._children[23] = op | ||
except KeyError: | ||
# Newer versions of MXNet use string keys |
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.
Ah, this definitely explains some of the issues we've seen reported here
src/python/README.rst
Outdated
@@ -17,7 +17,7 @@ Turi Create supports: | |||
System Requirements | |||
------------------- | |||
|
|||
- Python 2.7, 3.5, or 3.6 | |||
- Python 2.7, 3.5, 3.6, or 3.7 (macOS only) |
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.
We might want to clarify that Linux is supported on 2.7, 3.5, and 3.6? To me it looks like all of them are macOS only the way it's written.
src/unsupported_python/setup.py
Outdated
@@ -25,7 +25,7 @@ def run(self): | |||
|
|||
* Linux x86_64 (including WSL on Windows 10). | |||
* macOS 10.12+ x86_64. | |||
* Python 2.7, 3.5, or 3.6. | |||
* Python 2.7, 3.5, 3.6, or 3.7 (macOS only). |
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.
Same comment as above.
* For macOS and Linux, update all necessary dependencies, other than mxnet. * Install MXNet 1.5.0 only for Python 3.7 on AVX2 supported macOS. * Prevent stackoverflow (inifinte recursion) for TC image resize. * Updated panda dtypes. * Don't clobber symlinks in deps/local/include. * Object Detection use new version of MXNet. * Sound Classifier use new version of MXNet. * Update what versions of Python we say we support. * Make clear Python 3.7 is supported on macOS only * Remove unneeded additional depedencies for scenario tests. * Add pyton 3.7 to docker configs. * Add '--docker-python3.7' option to scenario tests. * Make run_cpp_test.py python 3 compatible. * Add logging to error case. * Use ignore_stale_grad and even_split to ignore MXNet warnings surfaced as exceptions. * Minor unit test refactor. * GitLab CI: Add Python 3.7 for macOS. * GitLab CI: commented out another 10.13 jobs. * Fix Travis CI.
I believe this is almost all of the changes we need (in this repository) to support Python 3.7. The only other changes that I know will be needed are in
.gitlab-ci.yml
.Currently calling
predict(...)
on a coremltools model is broken in Python 3. This is being tracked in an issue in the coremltools repository. We'll need to wait for that to get fixed and for a new version to be released.All non-CoreML related unit tests pass for Python 3.7 on macOS.
This also fixes #1455