You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError: cannot import name 'runtime_version' from 'google.protobuf' in version 0.49.0 #5383
While running Feast I am getting error cannot import name 'runtime_version' from 'google.protobuf'
Expected Behavior
Should work with no error
Current Behavior
File "/usr/local/lib/python3.11/site-packages/feast/__init__.py", line 4, in<module>
from feast.infra.offline_stores.bigquery_source import BigQuerySource
File "/usr/local/lib/python3.11/site-packages/feast/infra/offline_stores/bigquery_source.py", line 5, in ‹module>
from feast import type_map
File "/usr/local/lib/python3.11/site-packages/feast/type_map-py", line 39, in ‹module>
from feast.protos.feast.types.Value pb2 import (
File "/usr/local/lib/python3.11/site-packages/feast/protos/feast/types/Value_pb2.py", line 9, in ‹module>
from google protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.11/site-packages/google/protobuf/__init__.py)
@ntkathole I need to use a stable version, as the code being used in production, for now I have downgraded to feast 0.48.1 this worked for me for now. @franciscojavierarceo I tried upgrading protobuf version but it is giving me dependency conflict.
Activity
ntkathole commentedon May 23, 2025
@Deshmukh1992 Can you please check if master branch fixes this issues for you ? It is fixed via #5309 which will be available in upcoming release.
franciscojavierarceo commentedon May 23, 2025
What protobuf version do you have installed?
Deshmukh1992 commentedon May 23, 2025
protobuf 4.25.7
franciscojavierarceo commentedon May 24, 2025
Can you try to upgrade your protobuf version?
Deshmukh1992 commentedon May 27, 2025
@ntkathole I need to use a stable version, as the code being used in production, for now I have downgraded to feast 0.48.1 this worked for me for now.
@franciscojavierarceo I tried upgrading protobuf version but it is giving me dependency conflict.
Thanks
ntkathole commentedon Jul 21, 2026
This should be fixed in later releases, please reopen if not