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

Limit the protobuf version - tensorflow requirement #1199

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

negvet
Copy link
Collaborator

@negvet negvet commented Jun 15, 2022

Changes

When installing NNCF with TF the following error pop up
error: protobuf 4.21.1 is installed but protobuf<3.20,>=3.9.2 is required by {'tensorboard'}
Steps to reproduce:

pip install -U pip
python setup.py install --tf

Temporary patch proposed (upper limit of protobuf version). Not sure if adding this additional explicit requirement is safe.

Reason for changes

Protobuf releases new version, which is getting installed by TensorFlow but not supported by TensorBoard. For reference please see tensorflow/tensorflow#56077.
Update is needed be able to install NNCF with TF.

Related tickets

[CVS-86310]

Tests

@github-actions github-actions bot added the dependencies Any changes in any dependencies (new dep or its version) should be produced via Change Request on PM label Jun 15, 2022
@negvet negvet added the NNCF TF Pull requests that updates NNCF TensorFlow label Jun 15, 2022
@negvet negvet requested a review from vinnamkim June 15, 2022 14:09
Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change working on pip install nncf[tf]?

@negvet
Copy link
Collaborator Author

negvet commented Jun 17, 2022

Is this change working on pip install nncf[tf]?

Thanks for the comment!

Most probably it should.
Do you know how to check if? should I upload to testpypi just for a try?

Note: currenlty, the error does not reproduce with
pip install nncf[tf]
I also tried with --no-cache-dir option and updated pip - it works. Probably due to different installation order.

@negvet negvet requested a review from vinnamkim June 17, 2022 21:23
@vinnamkim
Copy link
Contributor

Is this change working on pip install nncf[tf]?

Thanks for the comment!

Most probably it should. Do you know how to check if? should I upload to testpypi just for a try?

Note: currenlty, the error does not reproduce with pip install nncf[tf] I also tried with --no-cache-dir option and updated pip - it works. Probably due to different installation order.

Maybe we can test by

pip install -e .[tf]

https://stackoverflow.com/a/30239714

@negvet
Copy link
Collaborator Author

negvet commented Jun 20, 2022

Maybe we can test by

pip install -e .[tf]

https://stackoverflow.com/a/30239714

Thanks for the suggestion. I tested. It works.

Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wonjuleee wonjuleee merged commit e16bed2 into openvinotoolkit:develop Jun 21, 2022
kshpv pushed a commit to kshpv/nncf that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Any changes in any dependencies (new dep or its version) should be produced via Change Request on PM NNCF TF Pull requests that updates NNCF TensorFlow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants