Skip to content
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

Merged
merged 1 commit into from Aug 7, 2019
Merged

Python 3.7 macOS Support #2079

merged 1 commit into from Aug 7, 2019

Conversation

TobyRoseman
Copy link
Collaborator

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

@znation
Copy link
Contributor

znation commented Jun 21, 2019

Awesome, this is looking great! I can help with the .gitlab-ci.yml changes.

README.md Outdated Show resolved Hide resolved
del net._children[24]
net._children[23] = op
except KeyError:
# Newer versions of MXNet use string keys
Copy link
Collaborator

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

@TobyRoseman
Copy link
Collaborator Author

TobyRoseman commented Aug 6, 2019

Internal tests pass (minus known issues). I have cleaned/squashed git commit history/messages.

@znation @nickjong - I believe these changes are ready to go in now.

@TobyRoseman TobyRoseman changed the title [WIP] Python 3.7 Support Python 3.7 Support Aug 6, 2019
@TobyRoseman TobyRoseman changed the title Python 3.7 Support Python 3.7 macOS Support Aug 6, 2019
znation
znation approved these changes Aug 7, 2019
@@ -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)
Copy link
Contributor

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.

@@ -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).
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mxnet < 1.4.0 brings in an unsupported requests version
3 participants