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)

Most upvoted comments

This shouldn’t be closed, File still gets saved to ~/.cache/docarray, not ./

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_bynari

I would say parse the path. file://foo would always refer to ./foo everywhere else I’ve seen it

yeah 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