-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 in Python on M1 Mac #22742
Comments
.take-issue |
My understanding to this issue is that Beam is using some internal APIs of protobuf and the distributed protobuf release may not contain them depending on platforms. Have to do a compile installlation of protobuf. First install the sources
For me this installs to /opt/homebrew/Cellar/protobuf@3/3.20.1 then set
then install protobuf with
then This is only required when the user needs to compile beam from source. For the distributed beam releases the generated sources are included in release and the users do not need to do this. |
I can confirm that this does work for me. Will it work for any user attempting to compile from source or is access to this version of protobuf limited? |
I posted this issue in protobuf as well and they have closed in saying that it should be resolved in protobuf 4.21.x: protocolbuffers/protobuf#10417 (comment) Unfortunately, grpcio-tools still requires protobuf<4.0, even in the most up-to-date current version (1.48.1). |
Just wanted to chime in: I also have an M1 mac and struggled to get Beam working for Python. protobuf 3.20.x does not work for me (I get a That being said, after installing that pip installing that version, I'm seeing
(at the moment, that doesn't affect what I need to do, and I'm rarely contributing to the python SDK so it's not important right now, but in short, I'm not sure why I have to use a previous version of protobuf) |
Thanks for reporting, @andreigurau . Also, I wonder how if we could repro this w/ github actions emulation of aarch64. |
I think @jrmccluskey might meet those criteria, Valentyn. |
I have been beating my head into the wall with this one and I believe the protobuf issue was fixed on M1 for version 4.21.1 and greater, which is a big jump for our dependencies that we aren't ready for yet. I've been doing work SSH'd into a linux machine as a workaround for now |
Are you aware of what dependencies won't support protobuf 4 ? If so please comment on: #24569 |
What happened?
On Macs with M1 chips, urns may not build during installation. This problem has been traced to protobuf, so see protocolbuffers/protobuf#10417 for details.
Reporting here as well for tracking purposes.
Issue Priority
Priority: 2
Issue Component
Component: dependencies
The text was updated successfully, but these errors were encountered: