docarray: bug: protobuf not installed with docarray[common]
I was trying something like:
docs.push('file://books.docarray')
And I got the following error:
ImportError: The following required library is not installed: google.protobuf
To install all necessary libraries, run: `pip install "docarray[common]"`
After running pip install docarray[common] and retrying I get the same error. pip list | grep protobuf returns nothing.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (20 by maintainers)
this is expected as the default behavior.
The goal is to have the same experience with push pull to cloud that push pull locally. This means that you need to save, at least by default, into a common cache. If you just want to save to a file use
save_bynariI would say parse the path.
file://foowould always refer to./fooeverywhere else I’ve seen ityeah you’re right, I think the problem is with the relative path, for me it only works with absolute paths.We should either state this in the docstring or try to parse a relative path to it absolute version. I will open a PR for it