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

Tutorial "Recommending movies: retrieval" is broken due to protobuf version conflict #673

Open
marco-ve opened this issue Jun 15, 2023 · 0 comments

Comments

@marco-ve
Copy link

The movie retrieval tutorial/notebook is broken due to a version conflict of the protobuf dependencies.

https://github.com/tensorflow/recommenders/blob/main/docs/examples/basic_retrieval.ipynb

Running the pip installs in the notebook (as well as in offline environments) yields the following error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow-datasets 4.9.2 requires protobuf>=3.20, but you have protobuf 3.19.6 which is incompatible. tensorflow-metadata 1.13.1 requires protobuf<5,>=3.20.3, but you have protobuf 3.19.6 which is incompatible.

And subsequently:

ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.10/dist-packages/google/protobuf/internal/__init__.py)

Side note: installing scann in an offline environment will currently force tensorflow 2.11, which will conflicht with modules like tensorflow_datasets and tensorflow_recommenders.

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

1 participant