Feast init: ImportError: cannot import name '_message' from 'google.protobuf.pyext'
See original GitHub issueAfter running the command feast init feature-repo-name
, I received an error
ImportError: cannot import name '_message' from 'google.protobuf.pyext' (/opt/homebrew/Caskroom/miniforge/base/envs/intel_py39/lib/python3.9/site-packages/google/protobuf/pyext/__init__.py)
Here is what I have tried but none was working as I received the exact same error
- Reinstall
protobuf
to the latest version using
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
pip3 install --upgrade --force-reinstall protobuf
- Switch to a Mac with an Intel chip and run everything all over again
Specifications
- Version: feast 0.14.1
- Platform:
- macOS Big Sur (version 11.6) (Apple M1 chip)
- python 3.9.7
- Dependencies:
- protobuf 3.19.1
- google-api-core 2.2.1
- googleapis-common-protos 1.52.0
- google-auth 2.3.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
cannot import name '_message' from 'google.protobuf.pyext' (c ...
What does the above command do? Why do I get this error message? C:\Windows\system32>python --version Python 3.7.1 C:\Windows ...
Read more >tensorflow - Bountysource
ImportError : cannot import name '_message' from 'google.protobuf.pyext' (/usr/lib/python3.7/site-packages/google/protobuf/pyext/__init__.py)
Read more >Python CPP backend bug: cannot import name ...
File "build\bdist.win-amd64\egg\google\protobuf\internal\cpp_message.py", line 39, in <module> ImportError: cannot import name _net_proto2___python.
Read more >google.protobuf.descriptor — Apache Beam documentation
The name of the class is required in case the options message is None and has to ... _options from google.protobuf import descriptor_pb2...
Read more >[protobuf] Python CPP backend bug: cannot import name ...
Hi, I get the aforementioned error message when trying to use the cpp backend for python with the new version 2.6.0:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also ran into the same issue but was able to get it working. My solution (originally posted in https://github.com/protocolbuffers/protobuf/issues/8820#issuecomment-961552604):
Edit (2021/11/09):
brew install protobuf
).Thank you so much @TeoZosa . It works for me now. Finally!!