tensorflow / models

Models and examples built with TensorFlow
Other
76.94k stars 45.79k forks source link

`!pip install models/research/seq_flow_lite` fails. #11003

Open zer0ken opened 1 year ago

zer0ken commented 1 year ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/tree/master/research/seq_flow_lite

https://github.com/tensorflow/models/blob/master/research/seq_flow_lite/demo/colab/emotion_colab.ipynb

2. Describe the bug

While I triying to run the demo code of PRADO model, I figured out that the code of emotion_colab.ipynb has some problems. Setup codes shows some of dependencies errors, and even !pip install models/research/seq_flow_lite didn't work.

3. Steps to reproduce

  1. go to the colab project.
  2. run the cells in order.
  3. installing `seq_flow_lite

4. Expected behavior

It should build the seq_flow_lite with bazel properly so that I can go to the next cell.

5. Additional context

5.1. With tensorflow 2.11.0

Dependency warning

!pip install tensorflow==2.11.0
...
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.
Successfully installed google-auth-oauthlib-0.4.6 keras-2.11.0 protobuf-3.19.6 tensorboard-2.11.2 tensorboard-data-server-0.6.1 tensorflow-2.11.0 tensorflow-estimator-2.11.0
WARNING: The following packages were previously imported in this runtime:
  [google]
You must restart the runtime in order to use newly installed versions.

and also

!pip install tensorflow_datasets
...
Installing collected packages: protobuf
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.19.6
    Uninstalling protobuf-3.19.6:
      Successfully uninstalled protobuf-3.19.6
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.
tensorboard 2.11.2 requires protobuf<4,>=3.9.2, but you have protobuf 4.23.1 which is incompatible.
tensorflow 2.11.0 requires protobuf<3.20,>=3.9.2, but you have protobuf 4.23.1 which is incompatible.
Successfully installed protobuf-4.23.1

Build error.

!git clone https://www.github.com/tensorflow/models
!models/research/seq_flow_lite/demo/colab/setup_workspace.sh
!pip install models/research/seq_flow_lite
!rm -rf models/research/seq_flow_lite/tf_ops
!rm -rf models/research/seq_flow_lite/tflite_ops
Cloning into 'models'...
warning: redirecting to https://github.com/tensorflow/models.git/
remote: Enumerating objects: 85653, done.
remote: Counting objects: 100% (1252/1252), done.
remote: Compressing objects: 100% (510/510), done.
remote: Total 85653 (delta 787), reused 1171 (delta 736), pack-reused 84401
Receiving objects: 100% (85653/85653), 598.69 MiB | 24.52 MiB/s, done.
Resolving deltas: 100% (61289/61289), done.
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Processing ./models/research/seq_flow_lite
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: seq-flow-lite
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for seq-flow-lite (setup.py) ... error
  ERROR: Failed building wheel for seq-flow-lite
  Running setup.py clean for seq-flow-lite
Failed to build seq-flow-lite
ERROR: Could not build wheels for seq-flow-lite, which is required to install pyproject.toml-based projects

5.2. With tensorflow 2.12.0

Build error.

!git clone https://www.github.com/tensorflow/models
!models/research/seq_flow_lite/demo/colab/setup_workspace.sh
!pip install models/research/seq_flow_lite
!rm -rf models/research/seq_flow_lite/tf_ops
!rm -rf models/research/seq_flow_lite/tflite_ops
Cloning into 'models'...
warning: redirecting to https://github.com/tensorflow/models.git/
remote: Enumerating objects: 85653, done.
remote: Counting objects: 100% (1252/1252), done.
remote: Compressing objects: 100% (508/508), done.
remote: Total 85653 (delta 789), reused 1168 (delta 738), pack-reused 84401
Receiving objects: 100% (85653/85653), 598.67 MiB | 16.11 MiB/s, done.
Resolving deltas: 100% (61282/61282), done.
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Processing ./models/research/seq_flow_lite
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: seq-flow-lite
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for seq-flow-lite (setup.py) ... error
  ERROR: Failed building wheel for seq-flow-lite
  Running setup.py clean for seq-flow-lite
Failed to build seq-flow-lite
ERROR: Could not build wheels for seq-flow-lite, which is required to install pyproject.toml-based projects

6. System information

23.05.26 colab

howardgriffin commented 1 year ago

Same promblem, Any ideas?

harshutxo commented 1 month ago

yess exact problem what's the solution ........