-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Import Error: cannot import name '_message' M1 macOS #10443
Comments
Same issue for me. |
Please upgrade to a newer version. Our setup for cross-compiling the binary wheels has been completely rewritten in 4.21.0 and M1 should work properly now. |
Strange it was working for me in 3.20.1 and no more for 3.20.2. Maybe it was just an install issue. I fixed the version for now. Can't upgrade to newer version as grpcio-tools require <4 |
Ah, sorry I didn't realize this represented a regression from 3.20.1. An issue has been discovered this morning where none of the binary wheels were released. This is being addressed now. |
My bad I didn't give any more details as the issue was still open. |
I believe this should be resolved now. Please re-open if it occurs again. |
What version of protobuf and what language are you using?
Version: 3.17.3
Language: Python - 3.9.11 and 3.9.7
What operating system (Linux, Windows, ...) and version?
macOS Monterey 12.5.1, AppleM1 Pro
What runtime / compiler are you using (e.g., python version or gcc version)
Python 3.9.11 and Python 3.9.7
What did you do?
Steps to reproduce the behavior:
Create virtual environment
pyenv virtualenv 3.9.11 'env-name'
pyenv local 'env-name'
pip install --upgrade pip
pip install wheel
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="cpp"
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION="2"
pip install protobuf==3.17.3
pip install --upgrade --force-reinstall protobuf==3.17.3
What did you expect to see
I am expecting to run without errors
What did you see instead?
When I try to run I get the following error:
Also '_message.py' file is missing from /google/protobuf/pyext.
I tried the same steps on macOS Big Sur 11.6.8 Intel Core/protobuf 3.17.3/python 3.9.7 and the package installs and there are no errors.
The text was updated successfully, but these errors were encountered: