Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Installation error with coremltools 2.0 #356

Closed
jbmaxwell opened this issue Nov 12, 2018 · 7 comments
Closed

Installation error with coremltools 2.0 #356

jbmaxwell opened this issue Nov 12, 2018 · 7 comments

Comments

@jbmaxwell
Copy link

I'm trying to set up a fastai v1 environment (python 3.7), ultimately for deployment on iOS. However, I'm not able to install onnx-coreml for some reason. Running pip install -U onnx-coreml I get the error: No matching distribution found for coremltools>=2.0 (from onnx-coreml).

@jbmaxwell
Copy link
Author

Sorry for the spam. Tried again with pip3 and installation completed.

@jbmaxwell
Copy link
Author

No, this doesn't actually work. I cannot import onnx_coreml: ModuleNotFoundError: No module named 'onnx_coreml'. I'm on python 3.7.0.

@jbmaxwell
Copy link
Author

Strangely, I can use the command-line script (convert-onnx-to-coreml). So I guess it must be some environment problem... Mind you, on conversion I get the error: NotImplementedError: Unsupported ONNX ops of type: Gather... I guess this isn't going to be a realistic goal, for now.

@aseemw
Copy link
Collaborator

aseemw commented Nov 12, 2018

coremltools is not supported on python 3.7, which is a dependency for onnx-coreml.

You can use python 3.6

Regarding the gather issue, can you try again with this PR #357 (you would have to checkout the PR and install from source)?

@jbmaxwell
Copy link
Author

Ah, okay. I wondered about python 3.7, but I didn't see that specific requirement... I'll try to give that PR a go a little later. Thanks.

@jbmaxwell
Copy link
Author

jbmaxwell commented Nov 12, 2018

Yes! That PR worked. Thanks! Haven't tried importing it to Xcode yet, but it's not a model I plan to use anyway; just a test. I'm fine using the command-line converter, for now, but I'll keep my eye on coremltools for a python 3.7 support update.

@Sam50056
Copy link

Guys , I run python 3.8 and I don't know what's PR. What is it? How can I go to python 3.6 so this can work?? Help me please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants