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

Unable to install grpcio-tools on Python 3.11.5 (MacOS) #35556

Closed
vancromy opened this issue Jan 16, 2024 · 1 comment
Closed

Unable to install grpcio-tools on Python 3.11.5 (MacOS) #35556

vancromy opened this issue Jan 16, 2024 · 1 comment

Comments

@vancromy
Copy link

I know there are a few closed issues in this repo on this topic and some help in the Troubleshooting.MD but none of those helped me resolve my issue or were similar to the issues I experienced during install.

What version of gRPC and what language are you using?

1.48.2 - Python

What operating system (Linux, Windows,...) and version?

MacOS 14.2.1 (23C71) - (Intel Mac)

What runtime / compiler are you using (e.g. python version or version of gcc)

Python version 3.11.5 and gcc installed by Homebrew (v13.2.0)

What did you do?

Please provide either 1) A unit test for reproducing the bug or 2) Specific steps for us to follow to reproduce the bug. If there’s not enough information to debug the problem, gRPC team may close the issue at their discretion. You’re welcome to re-open the issue once you have a reproduction.

  1. Install Python 3.11.5 and gcc 13.2.0 gcc with brew
  2. Create a virtualenv with the python executable
  3. Activate and run: pip install grpcio-tools==1.48.2

What did you expect to see?

Installs grpcio-tools without any issues

What did you see instead?

Build failure with what seems to be issues related to changes made in Cython in Python 3.11 (python/cpython#89874)

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Full install log:
install.log

See TROUBLESHOOTING.md for how to diagnose problems better.

Anything else we should know about your project / environment?

Note: I am also experiencing the same build issues in a kubeflow pipeline I am running on google-cloud which uses the python:3.11 docker base image.

@XuanWang-Amos
Copy link
Contributor

Hi, we don't support Python 3.11 for 1.48.2, the oldest version should be 1.49.0 for Python 3.11 support.

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

No branches or pull requests

3 participants