Skip to content
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

Protocol Buffers #71

Open
JenniferStatter opened this issue Jul 5, 2023 · 0 comments
Open

Protocol Buffers #71

JenniferStatter opened this issue Jul 5, 2023 · 0 comments
Assignees

Comments

@JenniferStatter
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants