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
30 frames
AttributeError: module 'google.protobuf.internal.api_implementation' has no attribute '_c_module'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1086 return importlib.import_module("." + module_name, self.name)
1087 except Exception as e:
-> 1088 raise RuntimeError(
1089 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1090 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
module 'google.protobuf.internal.api_implementation' has no attribute '_c_module'
The text was updated successfully, but these errors were encountered:
I was trying to vectorize my text from a pdf in preparation of using pinecone vector store.
!pip install --upgrade transformers
!pip install --upgrade protobuf
#for vectors
from transformers import pipeline
import pinecone
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1085 try:
-> 1086 return importlib.import_module("." + module_name, self.name)
1087 except Exception as e:
30 frames
AttributeError: module 'google.protobuf.internal.api_implementation' has no attribute '_c_module'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1086 return importlib.import_module("." + module_name, self.name)
1087 except Exception as e:
-> 1088 raise RuntimeError(
1089 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1090 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
module 'google.protobuf.internal.api_implementation' has no attribute '_c_module'
The text was updated successfully, but these errors were encountered: