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

pip install ml-metadata==1.14.0 doesn't work with Python >= 3.11 #191

Open
hbelmiro opened this issue Feb 19, 2024 · 2 comments
Open

pip install ml-metadata==1.14.0 doesn't work with Python >= 3.11 #191

hbelmiro opened this issue Feb 19, 2024 · 2 comments

Comments

@hbelmiro
Copy link

When we run pip install ml-metadata with versions 3.11 or newer it doesn't install ml-metadata==1.14.0. We get 0.13.1.dev0 installed. And if we force 1.14.0 with pip install ml-metadata==1.14.0, it can't be found.

With Python 3.10

$ python --version               
Python 3.10.13
$ pip install ml-metadata==1.14.0          
Collecting ml-metadata==1.14.0
  Downloading ml_metadata-1.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.9 kB)
Collecting absl-py<2.0.0,>=0.9 (from ml-metadata==1.14.0)
  Using cached absl_py-1.4.0-py3-none-any.whl.metadata (2.3 kB)
Collecting attrs<22,>=20.3 (from ml-metadata==1.14.0)
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting grpcio<2,>=1.8.6 (from ml-metadata==1.14.0)
  Downloading grpcio-1.60.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
Collecting protobuf<4,>=3.13 (from ml-metadata==1.14.0)
  Downloading protobuf-3.20.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 1.4 MB/s eta 0:00:00
Collecting six<2,>=1.10 (from ml-metadata==1.14.0)
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading ml_metadata-1.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 5.9 MB/s eta 0:00:00
Using cached absl_py-1.4.0-py3-none-any.whl (126 kB)
Downloading grpcio-1.60.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 1.8 MB/s eta 0:00:00
Installing collected packages: six, protobuf, grpcio, attrs, absl-py, ml-metadata
Successfully installed absl-py-1.4.0 attrs-21.4.0 grpcio-1.60.1 ml-metadata-1.14.0 protobuf-3.20.3 six-1.16.0

With Python 3.11

$ python --version
Python 3.11.7
$ pip install ml-metadata==1.14.0
ERROR: Could not find a version that satisfies the requirement ml-metadata==1.14.0 (from versions: 0.12.0.dev0, 0.13.0.dev0, 0.13.1.dev0)
ERROR: No matching distribution found for ml-metadata==1.14.0
@adcperez
Copy link

adcperez commented Mar 30, 2024

Having the same issue here.

I tried replicating your env by installing python 3.10.13 and running the pip install ml-metadata==1.14.0 but still got the '(from versions: 0.12.0.dev0, 0.13.0.dev0, 0.13.1.dev0)'.

This is causing dependency issues in tfx. Has anyone found a solve for this?

@tarilabs
Copy link
Contributor

tarilabs commented Apr 3, 2024

versions 3.11 or newer it doesn't install ml-metadata==1.14.0.

If that helps, as we can see on this page: https://pypi.org/project/ml-metadata/1.14.0/#files since it's only CPython >=3.8 up to CPython <=3.10, it won't be possible to find a suitable wheel when you use Python 3.11. Or at least this sound the reason for your error.

I tried replicating your env by installing python 3.10.13 and running the pip install ml-metadata==1.14.0 but still got the '(from versions: 0.12.0.dev0, 0.13.0.dev0, 0.13.1.dev0)'.
This is causing dependency issues in tfx. Has anyone found a solve for this?

This sound like very much like the same problem I encountered when using ARM / M-chip based Mac; you can find some additional information in this thread: #143 (comment)
provided that indeed:

  • you are using a ARM / M-chip based Mac,
  • compatible Python version,
  • but unable to pip install ml-metadata==1.14.0

Hope this help!

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

No branches or pull requests

3 participants