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

Update coremltools dependency to 4.0. Python 3.8 error #3375

Open
Vozf opened this issue Jan 13, 2021 · 3 comments
Open

Update coremltools dependency to 4.0. Python 3.8 error #3375

Vozf opened this issue Jan 13, 2021 · 3 comments

Comments

@Vozf
Copy link

Vozf commented Jan 13, 2021

current pip version requires coremltools 3.3.

@Vozf Vozf changed the title Update coremltools to 4.0 Update coremltools dependency to 4.0 Jan 13, 2021
@Vozf
Copy link
Author

Vozf commented Jan 13, 2021

As I understand currently it can't be installed on python 3.8 as coremltools must be >=4.0 for python 3.8 and turicreate requires coremltools 3.3 which is not available for python 3.8

@Vozf Vozf changed the title Update coremltools dependency to 4.0 Update coremltools dependency to 4.0. Python 3.8 error Jan 13, 2021
@Vozf
Copy link
Author

Vozf commented Jan 13, 2021

Ok, I'm not sure what the problem anymore
I'm using poetry and python 3.8 and ubuntu 20

poetry add turicreate

results in

Using version ^6.4.1 for turicreate

Updating dependencies
Resolving dependencies... (0.8s)

Writing lock file

Package operations: 16 installs, 0 updates, 0 removals

  • Installing llvmlite (0.31.0)
  • Installing astunparse (1.6.3)
  • Installing flatbuffers (1.12)
  • Installing gast (0.3.3)
  • Installing google-pasta (0.2.0)
  • Installing h5py (2.10.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing numba (0.49.1)
  • Installing opt-einsum (3.3.0)
  • Installing tensorflow-estimator (2.4.0)
  • Installing termcolor (1.1.0)
  • Installing coremltools (3.3): Failed

  RuntimeError

  Unable to find installation candidates for coremltools (3.3)

  at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

but if install via github assets release link, it works fine

 poetry add https://github.com/apple/turicreate/releases/download/6.4.1/turicreate-6.4.1-cp38-cp38-manylinux1_x86_64.whl
Updating dependencies
Resolving dependencies... (56.8s)

Writing lock file

Package operations: 5 installs, 0 updates, 0 removals

  • Installing mpmath (1.1.0)
  • Installing attr (0.3.1)
  • Installing sympy (1.7.1)
  • Installing coremltools (4.0b3)
  • Installing turicreate (6.4.1 https://github.com/apple/turicreate/releases/download/6.4.1/turicreate-6.4.1-cp38-cp38-manylinux1_x86_64.whl)

@TobyRoseman
Copy link
Collaborator

It looks like you're using poetry. I believe that is the issue. poetry doesn't seem to like the way TuriCreate handles dependencies, see #3342.

In a fresh virtual environment (without using poetry), I just tried installing the latest turicreate then upgrading to the lasted version of coremltools. It worked fine.

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

2 participants