tensorflow / tensorflow

An Open Source Machine Learning Framework for Everyone
https://tensorflow.org
Apache License 2.0
183.19k stars 73.98k forks source link

Bug - pip install tflite-model-maker fails or hangs forever #60431

Open Huxwell opened 1 year ago

Huxwell commented 1 year ago
Click to expand! ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Tensorflow Version v2.12.0-rc1-12-g0db597d0d75 2.12.0 ### Custom Code No ### OS Platform and Distribution, Mobile device, Python version, Bazel version, GCC/Compiler version, CUDA version Default Colab Pro ### Current Behaviour? ```!pip install tflite-model-maker``` fails or hangs forever The error occurs in tutorial notebook: https://colab.research.google.com/github/khanhlvg/tflite_raspberry_pi/blob/main/object_detection/Train_custom_model_tutorial.ipynb I have tried multiple things in colab None/GPU runtime, 'Disconnect and delete runtime' after each failed attempt.: `!pip install tflite-model-maker-nightly` `pip install --no-dependencies tflite-model-maker` (imports will fail, manually installing them with `pip install tensorflowjs` won't help with `NotFoundError: /usr/local/lib/python3.10/dist-packages/tensorflow_decision_forests/tensorflow/ops/inference/inference.so: undefined symbol: _ZN3tsl6Status22MaybeAddSourceLocationENS_14SourceLocationE` error) ``` !pip install --upgrade pip !wget https://raw.githubusercontent.com/tensorflow/examples/master/tensorflow_examples/lite/model_maker/requirements.txt !pip install -r requirements.txt ``` results in: ``` ERROR: Could not find a version that satisfies the requirement tflite-support>=0.4.2 (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1) ERROR: No matching distribution found for tflite-support>=0.4.2 ``` I have also tried: `pip install tflite-model-maker==0.4.2` got `ERROR: No matching distribution found for numba==0.53` `pip install tflite-model-maker==0.4.1` got `ERROR: No matching distribution found for scann==1.2.6` `pip install tflite-model-maker==0.4.0` got `ERROR: No matching distribution found for tflite-support>=0.4.0` Related issues: https://github.com/tensorflow/tensorflow/issues/59855 https://github.com/tensorflow/tensorflow/issues/51031 ### Standalone code to reproduce the issue ```shell `!pip install tflite-model-maker` in colab ``` ### Relevant log output tflite_modelmaker_debug2_ Notebook unstarred 1 Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting tflite-model-maker Downloading tflite_model_maker-0.4.2-py3-none-any.whl (577 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 577.3/577.3 kB 11.3 MB/s eta 0:00:00 Downloading tflite_model_maker-0.4.1-py3-none-any.whl (642 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 642.4/642.4 kB 28.3 MB/s eta 0:00:00 Collecting tf-models-official==2.3.0 Downloading tf_models_official-2.3.0-py2.py3-none-any.whl (840 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 12.0 MB/s eta 0:00:00 Requirement already satisfied: numpy>=1.17.3 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (1.22.4) Requirement already satisfied: PyYAML>=5.1 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (6.0) Requirement already satisfied: absl-py>=0.10.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (1.4.0) Requirement already satisfied: tensorflow-datasets>=2.1.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (4.8.3) Requirement already satisfied: lxml>=4.6.1 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (4.9.2) Collecting tensorflow-addons>=0.11.2 Downloading tensorflow_addons-0.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.0/591.0 kB 27.8 MB/s eta 0:00:00 Requirement already satisfied: six>=1.12.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (1.16.0) Collecting sentencepiece>=0.1.91 Downloading sentencepiece-0.1.98-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 46.1 MB/s eta 0:00:00 Collecting tensorflow-hub<0.13,>=0.7.0 Downloading tensorflow_hub-0.12.0-py2.py3-none-any.whl (108 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.8/108.8 kB 10.7 MB/s eta 0:00:00 Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.0/128.0 kB 7.5 MB/s eta 0:00:00 Requirement already satisfied: pillow>=7.0.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (8.4.0) Requirement already satisfied: tensorflow>=2.6.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (2.12.0) Collecting librosa==0.8.1 Downloading librosa-0.8.1-py3-none-any.whl (203 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 203.8/203.8 kB 12.1 MB/s eta 0:00:00 Collecting neural-structured-learning>=1.3.1 Downloading neural_structured_learning-1.4.0-py2.py3-none-any.whl (128 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.6/128.6 kB 7.0 MB/s eta 0:00:00 Requirement already satisfied: Cython>=0.29.13 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (0.29.34) Collecting tensorflowjs>=2.4.0 Downloading tensorflowjs-4.4.0-py3-none-any.whl (85 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.1/85.1 kB 6.0 MB/s eta 0:00:00 Collecting matplotlib<3.5.0,>=3.0.3 Downloading matplotlib-3.4.3.tar.gz (37.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.9/37.9 MB 9.8 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting fire>=0.3.1 Downloading fire-0.5.0.tar.gz (88 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.3/88.3 kB 6.4 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting flatbuffers==1.12 Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB) Collecting tflite-model-maker Downloading tflite_model_maker-0.4.0-py3-none-any.whl (642 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 642.1/642.1 kB 34.6 MB/s eta 0:00:00 Downloading tflite_model_maker-0.3.4-py3-none-any.whl (616 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 616.8/616.8 kB 33.1 MB/s eta 0:00:00 Downloading tflite_model_maker-0.3.3-py3-none-any.whl (616 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 616.8/616.8 kB 30.7 MB/s eta 0:00:00 Downloading tflite_model_maker-0.3.2-py3-none-any.whl (591 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.6/591.6 kB 22.7 MB/s eta 0:00:00 Requirement already satisfied: librosa>=0.5 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (0.10.0.post2) Collecting tensorflow-hub<0.10>=0.8.0 Downloading tensorflow_hub-0.9.0-py2.py3-none-any.whl (103 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.3/103.3 kB 7.1 MB/s eta 0:00:00 Collecting tflite-model-maker Downloading tflite_model_maker-0.3.1-py3-none-any.whl (590 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 590.8/590.8 kB 32.7 MB/s eta 0:00:00 Downloading tflite_model_maker-0.3.0-py3-none-any.whl (567 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 567.9/567.9 kB 23.1 MB/s eta 0:00:00 Downloading tflite_model_maker-0.2.5-py3-none-any.whl (499 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 499.2/499.2 kB 4.4 MB/s eta 0:00:00 Downloading tflite_model_maker-0.2.4-py3-none-any.whl (190 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.1/190.1 kB 11.9 MB/s eta 0:00:00 Downloading tflite_model_maker-0.2.3-py3-none-any.whl (114 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.2/114.2 kB 10.0 MB/s eta 0:00:00 Requirement already satisfied: tensorflow-hub>=0.8.0 in /usr/local/lib/python3.10/dist-packages (from tflite-model-maker) (0.13.0) Downloading tflite_model_maker-0.2.2-py3-none-any.whl (103 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.3/103.3 kB 7.8 MB/s eta 0:00:00 Downloading tflite_model_maker-0.2.1-py3-none-any.whl (102 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.9/102.9 kB 2.3 MB/s eta 0:00:00 Downloading tflite_model_maker-0.2.0-py3-none-any.whl (102 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.6/102.6 kB 8.0 MB/s eta 0:00:00 Downloading tflite_model_maker-0.1.2-py3-none-any.whl (104 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.1/104.1 kB 4.8 MB/s eta 0:00:00 Collecting tf-nightly Downloading tf_nightly-2.13.0.dev20230428-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.1/524.1 MB 2.8 MB/s eta 0:00:00 Collecting tflite-model-maker Downloading tflite_model_maker-0.1.1-py3-none-any.whl (86 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.0/87.0 kB 9.6 MB/s eta 0:00:00 Collecting tflite-support==0.1.0a0 Downloading tflite-support-0.1.0a0.tar.gz (258 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 258.8/258.8 kB 23.9 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting tf-models-nightly Downloading tf_models_nightly-2.12.0.dev20230426-py2.py3-none-any.whl (2.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 90.1 MB/s eta 0:00:00 Collecting pybind11>=2.4 Using cached pybind11-2.10.4-py3-none-any.whl (222 kB) Requirement already satisfied: promise in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (2.3) Requirement already satisfied: protobuf>=3.12.2 in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (3.20.3) Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (2.27.1) Requirement already satisfied: dm-tree in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (0.1.8) Requirement already satisfied: tensorflow-metadata in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (1.13.1) Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (4.65.0) Requirement already satisfied: termcolor in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (2.3.0) Requirement already satisfied: wrapt in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (1.14.1) Requirement already satisfied: etils[enp,epath]>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (1.2.0) Requirement already satisfied: click in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (8.1.3) Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (5.9.5) Requirement already satisfied: toml in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker) (0.10.2) Collecting immutabledict Downloading immutabledict-2.2.4-py3-none-any.whl (4.1 kB) Collecting pyyaml<6.0,>=5.1 Downloading PyYAML-5.4.1.tar.gz (175 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 19.8 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (4.7.0.72) Collecting sacrebleu Downloading sacrebleu-2.3.1-py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 kB 12.3 MB/s eta 0:00:00 Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (9.0.0) Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (2.84.0) Requirement already satisfied: scipy>=0.19.1 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (1.10.1) Requirement already satisfied: tf-slim>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (1.1.0) Collecting tensorflow-text-nightly Downloading tensorflow_text_nightly-2.13.0.dev20230424-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 79.8 MB/s eta 0:00:00 Requirement already satisfied: oauth2client in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (4.1.3) Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (1.5.3) Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (1.5.13) Collecting seqeval Downloading seqeval-1.2.2.tar.gz (43 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 kB 4.9 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: pycocotools in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (2.0.6) Requirement already satisfied: gin-config in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (0.5.0) Collecting tensorflow-model-optimization>=0.4.1 Downloading tensorflow_model_optimization-0.7.4-py2.py3-none-any.whl (240 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 240.6/240.6 kB 25.4 MB/s eta 0:00:00 Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from tf-models-nightly->tflite-model-maker) (3.7.1) Collecting tf-nightly Downloading tf_nightly-2.13.0.dev20230427-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.0/524.0 MB 2.7 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230426-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.6/524.6 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230425-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.7/524.7 MB 2.9 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230424-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.6/524.6 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230420-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (522.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 522.9/522.9 MB 2.8 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230419-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.5/598.5 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230418-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.3/598.3 MB 2.7 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230417-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.3/598.3 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230416-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.3/598.3 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230415-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.3/598.3 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230414-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (598.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 598.3/598.3 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230413-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (597.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 597.3/597.3 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230412-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (597.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 597.2/597.2 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230411-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (521.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 521.7/521.7 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230410-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.9/596.9 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230409-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.9/596.9 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230408-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (597.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 597.0/597.0 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230406-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230405-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230404-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.9/596.9 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230403-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.9/596.9 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230402-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230401-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230331-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 2.3 MB/s eta 0:00:00 Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (23.1) Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (1.54.0) Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (3.3.0) Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (1.6.3) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (0.32.0) Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (16.0.0) Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (3.8.0) Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (67.7.2) Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from tf-nightly->tflite-model-maker) (0.4.0) Downloading tf_nightly-2.13.0.dev20230330-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.8/596.8 MB 1.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230329-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 1.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230328-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.3/596.3 MB 2.0 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230327-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230326-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230325-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230324-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230323-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.2/596.2 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230322-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.0/596.0 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230321-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 595.9/595.9 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230319-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 595.8/595.8 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230318-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 595.9/595.9 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230316-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 595.8/595.8 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230315-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 596.4/596.4 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230314-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.3/591.3 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230313-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.0/591.0 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230312-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.0/591.0 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230310-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (590.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 590.9/590.9 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230309-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.7/589.7 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230308-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.5/589.5 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230307-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.2/589.2 MB 2.1 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230306-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230305-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230304-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230302-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (588.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 588.0/588.0 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230301-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.6/591.6 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230228-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.6/591.6 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230227-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.4/589.4 MB 2.1 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230226-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.3/589.3 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230224-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.6/589.6 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230223-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.4/589.4 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230222-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.3/589.3 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230220-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230219-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230218-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230217-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.1/589.1 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230216-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.5/589.5 MB 2.4 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230215-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.4/589.4 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230214-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 589.2/589.2 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230213-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (587.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.8/587.8 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230212-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (587.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.8/587.8 MB 2.6 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230211-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (587.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.7/587.7 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230210-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (587.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.7/587.7 MB 2.4 MB/s eta 0:00:00 Collecting tb-nightly~=2.12.0.a Downloading tb_nightly-2.12.0a20230209-py3-none-any.whl (5.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 85.7 MB/s eta 0:00:00 Collecting tf-nightly Downloading tf_nightly-2.13.0.dev20230209-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (587.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 587.3/587.3 MB 2.3 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230208-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (586.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 586.9/586.9 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230207-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (586.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 586.4/586.4 MB 2.5 MB/s eta 0:00:00 Downloading tf_nightly-2.13.0.dev20230206-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (585.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 585.9/585.9 MB 1.7 MB/s eta 0:00:00 Downloading tf_nightly-2.12.0.dev20230203-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (585.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 585.9/585.9 MB 2.2 MB/s eta 0:00:00 Downloading tf_nightly-2.12.0.dev20230201-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (586.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 586.6/586.6 MB 2.3 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of tf-models-nightly to determine which version is compatible with other requirements. This could take a while. Collecting tf-models-nightly Downloading tf_models_nightly-2.12.0.dev20230425-py2.py3-none-any.whl (2.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 69.6 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of sentencepiece to determine which version is compatible with other requirements. This could take a while. Collecting sentencepiece Downloading sentencepiece-0.1.97-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 54.4 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of pillow to determine which version is compatible with other requirements. This could take a while. Collecting pillow Downloading Pillow-9.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 68.3 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of fire to determine which version is compatible with other requirements. This could take a while. Collecting fire Downloading fire-0.4.0.tar.gz (87 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.7/87.7 kB 9.9 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done INFO: pip is looking at multiple versions of tensorflow-hub to determine which version is compatible with other requirements. This could take a while. Collecting tensorflow-hub>=0.8.0 Downloading tensorflow_hub-0.13.0-py2.py3-none-any.whl (100 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.6/100.6 kB 11.3 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of tensorflow-datasets to determine which version is compatible with other requirements. This could take a while. Collecting tensorflow-datasets>=2.1.0 Downloading tensorflow_datasets-4.9.2-py3-none-any.whl (5.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 89.6 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of numpy to determine which version is compatible with other requirements. This could take a while. Collecting numpy>=1.17.3 Downloading numpy-1.24.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 70.3 MB/s eta 0:00:00 Downloading numpy-1.23.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.1/17.1 MB 74.9 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of absl-py to determine which version is compatible with other requirements. This could take a while. Collecting absl-py Downloading absl_py-1.4.0-py3-none-any.whl (126 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.5/126.5 kB 15.5 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of tflite-support to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of flatbuffers to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of tflite-model-maker to determine which version is compatible with other requirements. This could take a while. Collecting tflite-model-maker Downloading tflite_model_maker-0.1.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.6/84.6 kB 10.4 MB/s eta 0:00:00 ERROR: Cannot install tflite-model-maker==0.1.2, tflite-model-maker==0.2.0, tflite-model-maker==0.2.1, tflite-model-maker==0.2.2, tflite-model-maker==0.2.3, tflite-model-maker==0.2.4, tflite-model-maker==0.2.5, tflite-model-maker==0.3.0, tflite-model-maker==0.3.1, tflite-model-maker==0.3.2, tflite-model-maker==0.3.3, tflite-model-maker==0.3.4, tflite-model-maker==0.4.0, tflite-model-maker==0.4.1 and tflite-model-maker==0.4.2 because these package versions have conflicting dependencies. The conflict is caused by: tflite-model-maker 0.4.2 depends on tflite-support>=0.4.2 tflite-model-maker 0.4.1 depends on scann==1.2.6 tflite-model-maker 0.4.0 depends on tflite-support>=0.4.0 tflite-model-maker 0.3.4 depends on tflite-support>=0.3.1 tflite-model-maker 0.3.3 depends on tflite-support>=0.3.1 tflite-model-maker 0.3.2 depends on tflite-support>=0.1.0rc4 tflite-model-maker 0.3.1 depends on tflite-support>=0.1.0rc4 tflite-model-maker 0.3.0 depends on tflite-support>=0.1.0rc4 tflite-model-maker 0.2.5 depends on tflite-support==0.1.0rc4 tflite-model-maker 0.2.4 depends on tflite-support==0.1.0rc4 tflite-model-maker 0.2.3 depends on tflite-support==0.1.0rc3.dev2 tflite-model-maker 0.2.2 depends on tflite-support==0.1.0rc3.dev2 tflite-model-maker 0.2.1 depends on tflite-support==0.1.0rc3.dev2 tflite-model-maker 0.2.0 depends on tf-nightly==2.4.0.dev20200810 tflite-model-maker 0.1.2 depends on tflite-support==0.1.0rc3.dev2 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
UsamaHameed1 commented 1 year ago

I am also facing the same issue when installing !pip install -q tflite-model-makerthe downloading continues to infinity and fill the storage of the google colab env. Also the issue continues if we try to do on the local machine. Looks like it downloads again and again the same thing. Kindly fix the issue

at local machine: image

at colab env

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libportaudio2 is already the newest version (19.6.0-1build1).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.9/37.9 MB 17.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.6/128.6 kB 14.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.5/77.5 kB 9.4 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.3/103.3 kB 13.6 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.5/127.5 kB 16.2 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 460.5/460.5 kB 39.8 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 459.9/459.9 kB 43.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Preparing metadata (setup.py) ... done
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 440.9/440.9 kB 32.8 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━ 251.1/588.0 MB 55.4 MB/s eta 0:00:07
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
    yield
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/cachecontrol/filewrapper.py", line 94, in read
    self.__buf.write(data)
  File "/usr/lib/python3.10/tempfile.py", line 622, in func_wrapper
    return func(*args, **kwargs)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/req_command.py", line 241, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/commands/install.py", line 419, in run
    requirement_set = resolver.resolve(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 211, in _attempt_to_pin_criterion
    for candidate in criterion.candidates:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
    self.dist = self._prepare()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
    dist = self._prepare_distribution()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 536, in _prepare_linked_requirement
    local_file = unpack_url(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 166, in unpack_url
    file = get_http_url(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/network/download.py", line 147, in __call__
    for chunk in chunks:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/network/utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 560, in read
    with self._error_catcher():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 455, in _error_catcher
    raise ProtocolError("Connection broken: %r" % e, e)
pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: OSError(28, 'No space left on device')", OSError(28, 'No space left on device'))
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
    yield
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/cachecontrol/filewrapper.py", line 94, in read
    self.__buf.write(data)
  File "/usr/lib/python3.10/tempfile.py", line 622, in func_wrapper
    return func(*args, **kwargs)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/req_command.py", line 241, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/commands/install.py", line 419, in run
    requirement_set = resolver.resolve(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 211, in _attempt_to_pin_criterion
    for candidate in criterion.candidates:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
    self.dist = self._prepare()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
    dist = self._prepare_distribution()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 536, in _prepare_linked_requirement
    local_file = unpack_url(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 166, in unpack_url
    file = get_http_url(
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/prepare.py", line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/network/download.py", line 147, in __call__
    for chunk in chunks:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/network/utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 560, in read
    with self._error_catcher():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/urllib3/response.py", line 455, in _error_catcher
    raise ProtocolError("Connection broken: %r" % e, e)
pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: OSError(28, 'No space left on device')", OSError(28, 'No space left on device'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/__init__.py", line 1104, in emit
    self.flush()
  File "/usr/lib/python3.10/logging/__init__.py", line 1084, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/local/bin/pip3", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/main.py", line 70, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 101, in main
    return self._main(args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 214, in _main
    return run(options, args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 202, in exc_logging_wrapper
    logger.critical("Exception:", exc_info=True)
Message: 'Exception:'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/__init__.py", line 1104, in emit
    self.flush()
  File "/usr/lib/python3.10/logging/__init__.py", line 1084, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/local/bin/pip3", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/main.py", line 70, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/base_command.py", line 100, in main
    with self.main_context():
  File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/cli/command_context.py", line 19, in main_context
    with self._main_context:
  File "/usr/lib/python3.10/contextlib.py", line 561, in __exit__
    if cb(*exc_details):
  File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/build/build_tracker.py", line 50, in get_build_tracker
    with BuildTracker(root) as tracker:
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/build/build_tracker.py", line 70, in __exit__
    self.cleanup()
  File "/usr/local/lib/python3.10/dist-packages/pip/_internal/operations/build/build_tracker.py", line 118, in cleanup
    logger.debug("Removed build tracker: %r", self._root)
Message: 'Removed build tracker: %r'
Arguments: ('/tmp/pip-build-tracker-fya0r08r',)
UsamaHameed1 commented 1 year ago

@Huxwell have you found any solution to the problem yet?

Huxwell commented 1 year ago

No progress, sorry :( @synandi any chances you have seen the bug report?

arunniterate commented 1 year ago

Same issue , Tried git clone , nightly options. Also tried installing requirements.txt before the pip install. Nothing worked.

UsamaHameed1 commented 1 year ago

Is there any change that the issue can be fixed?

UFthomasboosinger commented 1 year ago

Running into the same problem.

Bsm672 commented 1 year ago

Is there any change that the issue can be fixed?

SamanthaSoh commented 1 year ago

I'm facing the same issue, I was able to install it without errors a month ago. Are there any fixes for it yet?

santiagolassog commented 1 year ago

I am having the same problem, I tried with different ways but doesn't work

RRubaid959 commented 1 year ago

I also having same issue if any update please tell ..

Elias-Traunbauer commented 1 year ago

Hello

YannickFuereder commented 1 year ago

same issue

iamlun commented 1 year ago

same problem here :(

ubaidari commented 1 year ago

Same issue here .. Its bug or what pleaze give solution .. I though that pyhton updates to 3.10 from 3.8 in colab . Tflite model maker nit importing

Huxwell commented 1 year ago

more people reporting the same problem as separate issues: https://github.com/tensorflow/tensorflow/issues/60455 https://github.com/tensorflow/tensorflow/issues/60466

I have also tried

!pip install --no-dependencies tflite-model-maker
!pip install tensorflowjs 

but I am getting NotFoundError: /usr/local/lib/python3.10/dist-packages/tensorflow_decision_forests/tensorflow/ops/inference/inference.so: undefined symbol: _ZN3tsl6Status22MaybeAddSourceLocationENS_14SourceLocationE error when trying to use the lib (btw I am not utilising decision forest algorithm anywhere in this project that I am aware of)

synandi commented 1 year ago

Hi @Huxwell, Apologies for the inconvience. We are working on it. We'll update here soon. Thank you!

sachinprasadhs commented 1 year ago

@Huxwell , @UsamaHameed1 , Thanks for reporting the issue. This looks like package distribution issue with python 3.10, to narrow down the issue, could you please help us testing with Python 3.9 environment and let us know if you face the same issue for pip install tflite-model-maker and pip install tflite-model-maker-nightly

sachinprasadhs commented 1 year ago

@terryheo , Could you please take a look into this. Thanks!

UsamaHameed1 commented 1 year ago

@sachinprasadhs so i have tried the above mentioned instructions with google colab env Python 3.9.16 image

when i tried pip install tflite-model-maker The following log came: ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible. ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible. ERROR: tflite-support 0.4.3 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible. ERROR: tensorflowjs 3.18.0 has requirement packaging~=20.9, but you'll have packaging 23.1 which is incompatible. ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible.

Screenshot : image

when i tried pip install tflite-model-maker-nightly

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting tflite-model-maker-nightly Downloading tflite_model_maker_nightly-0.4.3.dev202305020507-py3-none-any.whl (577 kB) |████████████████████████████████| 577 kB 12.0 MB/s Requirement already satisfied: absl-py>=0.10.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.4.0) Requirement already satisfied: tensorflow-hub<0.13,>=0.7.0; python_version >= "3" in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.12.0) Requirement already satisfied: pillow>=7.0.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (9.5.0) Requirement already satisfied: matplotlib<3.5.0,>=3.0.3 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (3.4.3) Requirement already satisfied: six>=1.12.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.16.0) Requirement already satisfied: fire>=0.3.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: numba==0.53 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.53.0) Requirement already satisfied: tensorflowjs<3.19.0,>=2.4.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (3.18.0) Requirement already satisfied: scann==1.2.6 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.2.6) Requirement already satisfied: numpy>=1.17.3 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.24.3) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.25.11) Requirement already satisfied: librosa==0.8.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.8.1) Requirement already satisfied: tf-models-official==2.3.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (2.3.0) Requirement already satisfied: lxml>=4.6.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (4.9.2) Requirement already satisfied: tensorflow-model-optimization>=0.5 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.7.4) Requirement already satisfied: tensorflow-datasets>=2.1.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (4.9.2) Collecting tfa-nightly Downloading tfa_nightly-0.21.0.dev20230418145214-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591 kB) |████████████████████████████████| 591 kB 75.8 MB/s Requirement already satisfied: PyYAML>=5.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (6.0) Requirement already satisfied: sentencepiece>=0.1.91 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.1.99) Collecting tflite-support-nightly Downloading tflite_support_nightly-0.4.4.dev20221103-cp39-cp39-manylinux2014_x86_64.whl (60.9 MB) |████████████████████████████████| 60.9 MB 1.2 MB/s Requirement already satisfied: flatbuffers>=2.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (23.3.3) Requirement already satisfied: tensorflow>=2.6.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: Cython>=0.29.13 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.29.34) Requirement already satisfied: neural-structured-learning>=1.3.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.4.0) Requirement already satisfied: protobuf>=3.8.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-hub<0.13,>=0.7.0; python_version >= "3"->tflite-model-maker-nightly) (4.22.3) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (1.4.4) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (0.11.0) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (2.8.2) Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (3.0.9) Requirement already satisfied: termcolor in /usr/local/lib/python3.9/dist-packages (from fire>=0.3.1->tflite-model-maker-nightly) (2.3.0) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba==0.53->tflite-model-maker-nightly) (45.2.0) Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in /usr/local/lib/python3.9/dist-packages (from numba==0.53->tflite-model-maker-nightly) (0.36.0) Collecting packaging~=20.9 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) |████████████████████████████████| 40 kB 6.1 MB/s Requirement already satisfied: decorator>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (5.1.1) Requirement already satisfied: pooch>=1.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.7.0) Requirement already satisfied: resampy>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (0.4.2) Requirement already satisfied: audioread>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (3.0.0) Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.2.2) Requirement already satisfied: joblib>=0.14 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.2.0) Requirement already satisfied: soundfile>=0.10.2 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (0.12.1) Requirement already satisfied: scipy>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.10.1) Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (2.0.1) Requirement already satisfied: psutil>=5.4.3 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (5.9.5) Requirement already satisfied: google-cloud-bigquery>=0.31.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (3.10.0) Requirement already satisfied: tensorflow-addons in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.20.0) Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (9.0.0) Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (1.5.13) Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (2.86.0) Requirement already satisfied: tf-slim>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (1.1.0) Requirement already satisfied: dataclasses in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.6) Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (4.7.0.72) Requirement already satisfied: gin-config in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: dm-tree~=0.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-model-optimization>=0.5->tflite-model-maker-nightly) (0.1.8) Requirement already satisfied: array-record in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (0.2.0) Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (2.29.0) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (4.65.0) Requirement already satisfied: wrapt in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.15.0) Requirement already satisfied: promise in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (2.3) Requirement already satisfied: tensorflow-metadata in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.13.1) Requirement already satisfied: toml in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (0.10.2) Requirement already satisfied: etils[enp,epath]>=0.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.2.0) Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (8.1.3) Requirement already satisfied: typeguard<3.0.0,>=2.7 in /usr/local/lib/python3.9/dist-packages (from tfa-nightly->tflite-model-maker-nightly) (2.13.3) Requirement already satisfied: pybind11>=2.6.0 in /usr/local/lib/python3.9/dist-packages (from tflite-support-nightly->tflite-model-maker-nightly) (2.10.4) Requirement already satisfied: sounddevice>=0.4.4 in /usr/local/lib/python3.9/dist-packages (from tflite-support-nightly->tflite-model-maker-nightly) (0.4.6) Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.2.0) Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (1.54.0) Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.4.0) Requirement already satisfied: keras<2.13,>=2.12.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (3.3.0) Requirement already satisfied: tensorboard<2.13,>=2.12 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.3) Requirement already satisfied: typing-extensions>=3.6.6 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (4.5.0) Requirement already satisfied: jax>=0.3.15 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.4.8) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1; platform_machine != "arm64" or platform_system != "Darwin" in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.32.0) Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (16.0.0) Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (1.6.3) Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (3.8.0) Requirement already satisfied: tensorflow-estimator<2.13,>=2.12.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: attrs in /usr/local/lib/python3.9/dist-packages (from neural-structured-learning>=1.3.1->tflite-model-maker-nightly) (23.1.0) Requirement already satisfied: platformdirs>=2.5.0 in /usr/local/lib/python3.9/dist-packages (from pooch>=1.0->librosa==0.8.1->tflite-model-maker-nightly) (3.5.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa==0.8.1->tflite-model-maker-nightly) (3.1.0) Requirement already satisfied: cffi>=1.0 in /usr/local/lib/python3.9/dist-packages (from soundfile>=0.10.2->librosa==0.8.1->tflite-model-maker-nightly) (1.15.1) Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.9/dist-packages (from pandas>=0.22.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2023.3) Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.9/dist-packages (from pandas>=0.22.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2023.3) Requirement already satisfied: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.11.0) Requirement already satisfied: proto-plus<2.0.0dev,>=1.15.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.22.2) Requirement already satisfied: google-resumable-media<3.0dev,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.5.0) Requirement already satisfied: google-cloud-core<3.0.0dev,>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.3.2) Requirement already satisfied: certifi in /usr/local/lib/python3.9/dist-packages (from kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (2022.12.7) Requirement already satisfied: python-slugify in /usr/local/lib/python3.9/dist-packages (from kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (8.0.1) Requirement already satisfied: google-auth-httplib2>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.1.0) Requirement already satisfied: google-auth<3.0.0dev,>=1.19.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.17.3) Requirement already satisfied: httplib2<1dev,>=0.15.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.22.0) Requirement already satisfied: uritemplate<5,>=3.0.1 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (4.1.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.19.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.19.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.4) Requirement already satisfied: googleapis-common-protos<2,>=1.52.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-metadata->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.59.0) Requirement already satisfied: zipp; extra == "epath" in /usr/local/lib/python3.9/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.15.0) Requirement already satisfied: importlib_resources; extra == "epath" in /usr/local/lib/python3.9/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (5.12.0) Requirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (1.0.0) Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (2.3.3) Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (3.4.3) Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.7.0) Requirement already satisfied: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.34.2) Requirement already satisfied: ml-dtypes>=0.0.3 in /usr/local/lib/python3.9/dist-packages (from jax>=0.3.15->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.1.0) Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.0->soundfile>=0.10.2->librosa==0.8.1->tflite-model-maker-nightly) (2.21) Collecting grpcio-status<2.0dev,>=1.33.2; extra == "grpc" Downloading grpcio_status-1.54.0-py3-none-any.whl (5.1 kB) Requirement already satisfied: google-crc32c<2.0dev,>=1.0 in /usr/local/lib/python3.9/dist-packages (from google-resumable-media<3.0dev,>=0.6.0->google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.5.0) Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify->kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.3) Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (5.3.0) Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.6" in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (4.9) Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.3.0) Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (1.3.1) Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from werkzeug>=1.0.1->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (2.1.2) Requirement already satisfied: importlib-metadata>=4.4; python_version < "3.10" in /usr/local/lib/python3.9/dist-packages (from markdown>=2.6.8->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (6.6.0) Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.9/dist-packages (from rsa<5,>=3.1.4; python_version >= "3.6"->google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (3.2.2) ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible. ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible. ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible. ERROR: tflite-support-nightly 0.4.4.dev20221103 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible. Installing collected packages: packaging, tfa-nightly, tflite-support-nightly, tflite-model-maker-nightly, grpcio-status Attempting uninstall: packaging Found existing installation: packaging 23.1 Uninstalling packaging-23.1: Successfully uninstalled packaging-23.1 Successfully installed grpcio-status-1.54.0 packaging-20.9 tfa-nightly-0.21.0.dev20230418145214 tflite-model-maker-nightly-0.4.3.dev202305020507 tflite-support-nightly-0.4.4.dev20221103

image

Important Log Point for pip install tflite-model-maker-nightly

ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible.
ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible.
ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible.
ERROR: tflite-support-nightly 0.4.4.dev20221103 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible.

My understanding is that when i downgrade the python env other dependency issue come. I hope my this work will help in debugging the issue. If any thing missing please let me know what to do next?

juanjricci commented 1 year ago

I have the same problem and Im using it for my thesis. Please fix it ASAP!

ubaidari commented 1 year ago

I have the same problem and Im using it for my thesis. Please fix it ASAP!

@juanjricci same issue :(

ubaidari commented 1 year ago

@sachinprasadhs so i have tried the above mentioned instructions with google colab env Python 3.9.16 image

when i tried pip install tflite-model-maker The following log came: ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible. ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible. ERROR: tflite-support 0.4.3 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible. ERROR: tensorflowjs 3.18.0 has requirement packaging~=20.9, but you'll have packaging 23.1 which is incompatible. ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible.

Screenshot : image

when i tried pip install tflite-model-maker-nightly

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting tflite-model-maker-nightly Downloading tflite_model_maker_nightly-0.4.3.dev202305020507-py3-none-any.whl (577 kB) |████████████████████████████████| 577 kB 12.0 MB/s Requirement already satisfied: absl-py>=0.10.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.4.0) Requirement already satisfied: tensorflow-hub<0.13,>=0.7.0; python_version >= "3" in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.12.0) Requirement already satisfied: pillow>=7.0.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (9.5.0) Requirement already satisfied: matplotlib<3.5.0,>=3.0.3 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (3.4.3) Requirement already satisfied: six>=1.12.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.16.0) Requirement already satisfied: fire>=0.3.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: numba==0.53 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.53.0) Requirement already satisfied: tensorflowjs<3.19.0,>=2.4.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (3.18.0) Requirement already satisfied: scann==1.2.6 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.2.6) Requirement already satisfied: numpy>=1.17.3 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.24.3) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.25.11) Requirement already satisfied: librosa==0.8.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.8.1) Requirement already satisfied: tf-models-official==2.3.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (2.3.0) Requirement already satisfied: lxml>=4.6.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (4.9.2) Requirement already satisfied: tensorflow-model-optimization>=0.5 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.7.4) Requirement already satisfied: tensorflow-datasets>=2.1.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (4.9.2) Collecting tfa-nightly Downloading tfa_nightly-0.21.0.dev20230418145214-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591 kB) |████████████████████████████████| 591 kB 75.8 MB/s Requirement already satisfied: PyYAML>=5.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (6.0) Requirement already satisfied: sentencepiece>=0.1.91 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.1.99) Collecting tflite-support-nightly Downloading tflite_support_nightly-0.4.4.dev20221103-cp39-cp39-manylinux2014_x86_64.whl (60.9 MB) |████████████████████████████████| 60.9 MB 1.2 MB/s Requirement already satisfied: flatbuffers>=2.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (23.3.3) Requirement already satisfied: tensorflow>=2.6.0 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: Cython>=0.29.13 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (0.29.34) Requirement already satisfied: neural-structured-learning>=1.3.1 in /usr/local/lib/python3.9/dist-packages (from tflite-model-maker-nightly) (1.4.0) Requirement already satisfied: protobuf>=3.8.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-hub<0.13,>=0.7.0; python_version >= "3"->tflite-model-maker-nightly) (4.22.3) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (1.4.4) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (0.11.0) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (2.8.2) Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib<3.5.0,>=3.0.3->tflite-model-maker-nightly) (3.0.9) Requirement already satisfied: termcolor in /usr/local/lib/python3.9/dist-packages (from fire>=0.3.1->tflite-model-maker-nightly) (2.3.0) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba==0.53->tflite-model-maker-nightly) (45.2.0) Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in /usr/local/lib/python3.9/dist-packages (from numba==0.53->tflite-model-maker-nightly) (0.36.0) Collecting packaging~=20.9 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) |████████████████████████████████| 40 kB 6.1 MB/s Requirement already satisfied: decorator>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (5.1.1) Requirement already satisfied: pooch>=1.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.7.0) Requirement already satisfied: resampy>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (0.4.2) Requirement already satisfied: audioread>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (3.0.0) Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.2.2) Requirement already satisfied: joblib>=0.14 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.2.0) Requirement already satisfied: soundfile>=0.10.2 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (0.12.1) Requirement already satisfied: scipy>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from librosa==0.8.1->tflite-model-maker-nightly) (1.10.1) Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (2.0.1) Requirement already satisfied: psutil>=5.4.3 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (5.9.5) Requirement already satisfied: google-cloud-bigquery>=0.31.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (3.10.0) Requirement already satisfied: tensorflow-addons in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.20.0) Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (9.0.0) Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (1.5.13) Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (2.86.0) Requirement already satisfied: tf-slim>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (1.1.0) Requirement already satisfied: dataclasses in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.6) Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (4.7.0.72) Requirement already satisfied: gin-config in /usr/local/lib/python3.9/dist-packages (from tf-models-official==2.3.0->tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: dm-tree~=0.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-model-optimization>=0.5->tflite-model-maker-nightly) (0.1.8) Requirement already satisfied: array-record in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (0.2.0) Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (2.29.0) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (4.65.0) Requirement already satisfied: wrapt in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.15.0) Requirement already satisfied: promise in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (2.3) Requirement already satisfied: tensorflow-metadata in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.13.1) Requirement already satisfied: toml in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (0.10.2) Requirement already satisfied: etils[enp,epath]>=0.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.2.0) Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (8.1.3) Requirement already satisfied: typeguard<3.0.0,>=2.7 in /usr/local/lib/python3.9/dist-packages (from tfa-nightly->tflite-model-maker-nightly) (2.13.3) Requirement already satisfied: pybind11>=2.6.0 in /usr/local/lib/python3.9/dist-packages (from tflite-support-nightly->tflite-model-maker-nightly) (2.10.4) Requirement already satisfied: sounddevice>=0.4.4 in /usr/local/lib/python3.9/dist-packages (from tflite-support-nightly->tflite-model-maker-nightly) (0.4.6) Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.2.0) Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (1.54.0) Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.4.0) Requirement already satisfied: keras<2.13,>=2.12.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (3.3.0) Requirement already satisfied: tensorboard<2.13,>=2.12 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.3) Requirement already satisfied: typing-extensions>=3.6.6 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (4.5.0) Requirement already satisfied: jax>=0.3.15 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.4.8) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1; platform_machine != "arm64" or platform_system != "Darwin" in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (0.32.0) Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (16.0.0) Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (1.6.3) Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (3.8.0) Requirement already satisfied: tensorflow-estimator<2.13,>=2.12.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow>=2.6.0->tflite-model-maker-nightly) (2.12.0) Requirement already satisfied: attrs in /usr/local/lib/python3.9/dist-packages (from neural-structured-learning>=1.3.1->tflite-model-maker-nightly) (23.1.0) Requirement already satisfied: platformdirs>=2.5.0 in /usr/local/lib/python3.9/dist-packages (from pooch>=1.0->librosa==0.8.1->tflite-model-maker-nightly) (3.5.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa==0.8.1->tflite-model-maker-nightly) (3.1.0) Requirement already satisfied: cffi>=1.0 in /usr/local/lib/python3.9/dist-packages (from soundfile>=0.10.2->librosa==0.8.1->tflite-model-maker-nightly) (1.15.1) Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.9/dist-packages (from pandas>=0.22.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2023.3) Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.9/dist-packages (from pandas>=0.22.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2023.3) Requirement already satisfied: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.11.0) Requirement already satisfied: proto-plus<2.0.0dev,>=1.15.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.22.2) Requirement already satisfied: google-resumable-media<3.0dev,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.5.0) Requirement already satisfied: google-cloud-core<3.0.0dev,>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.3.2) Requirement already satisfied: certifi in /usr/local/lib/python3.9/dist-packages (from kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (2022.12.7) Requirement already satisfied: python-slugify in /usr/local/lib/python3.9/dist-packages (from kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (8.0.1) Requirement already satisfied: google-auth-httplib2>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.1.0) Requirement already satisfied: google-auth<3.0.0dev,>=1.19.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (2.17.3) Requirement already satisfied: httplib2<1dev,>=0.15.0 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.22.0) Requirement already satisfied: uritemplate<5,>=3.0.1 in /usr/local/lib/python3.9/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (4.1.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.19.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.19.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.4) Requirement already satisfied: googleapis-common-protos<2,>=1.52.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-metadata->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (1.59.0) Requirement already satisfied: zipp; extra == "epath" in /usr/local/lib/python3.9/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (3.15.0) Requirement already satisfied: importlib_resources; extra == "epath" in /usr/local/lib/python3.9/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets>=2.1.0->tflite-model-maker-nightly) (5.12.0) Requirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (1.0.0) Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (2.3.3) Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (3.4.3) Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.7.0) Requirement already satisfied: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.34.2) Requirement already satisfied: ml-dtypes>=0.0.3 in /usr/local/lib/python3.9/dist-packages (from jax>=0.3.15->tensorflow>=2.6.0->tflite-model-maker-nightly) (0.1.0) Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.0->soundfile>=0.10.2->librosa==0.8.1->tflite-model-maker-nightly) (2.21) Collecting grpcio-status<2.0dev,>=1.33.2; extra == "grpc" Downloading grpcio_status-1.54.0-py3-none-any.whl (5.1 kB) Requirement already satisfied: google-crc32c<2.0dev,>=1.0 in /usr/local/lib/python3.9/dist-packages (from google-resumable-media<3.0dev,>=0.6.0->google-cloud-bigquery>=0.31.0->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.5.0) Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify->kaggle>=1.3.9->tf-models-official==2.3.0->tflite-model-maker-nightly) (1.3) Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (5.3.0) Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.6" in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (4.9) Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.3.0) Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (1.3.1) Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from werkzeug>=1.0.1->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (2.1.2) Requirement already satisfied: importlib-metadata>=4.4; python_version < "3.10" in /usr/local/lib/python3.9/dist-packages (from markdown>=2.6.8->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (6.6.0) Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.9/dist-packages (from rsa<5,>=3.1.4; python_version >= "3.6"->google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.3.0->tflite-model-maker-nightly) (0.5.0) Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow>=2.6.0->tflite-model-maker-nightly) (3.2.2) ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible. ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible. ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible. ERROR: tflite-support-nightly 0.4.4.dev20221103 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible. Installing collected packages: packaging, tfa-nightly, tflite-support-nightly, tflite-model-maker-nightly, grpcio-status Attempting uninstall: packaging Found existing installation: packaging 23.1 Uninstalling packaging-23.1: Successfully uninstalled packaging-23.1 Successfully installed grpcio-status-1.54.0 packaging-20.9 tfa-nightly-0.21.0.dev20230418145214 tflite-model-maker-nightly-0.4.3.dev202305020507 tflite-support-nightly-0.4.4.dev20221103

image

Important Log Point for pip install tflite-model-maker-nightly

ERROR: tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you'll have numpy 1.24.3 which is incompatible.
ERROR: tensorflow 2.12.0 has requirement wrapt<1.15,>=1.11.0, but you'll have wrapt 1.15.0 which is incompatible.
ERROR: scann 1.2.6 has requirement tensorflow~=2.8.0, but you'll have tensorflow 2.12.0 which is incompatible.
ERROR: tflite-support-nightly 0.4.4.dev20221103 has requirement protobuf<4,>=3.18.0, but you'll have protobuf 4.22.3 which is incompatible.

My understanding is that when i downgrade the python env other dependency issue come. I hope my this work will help in debugging the issue. If any thing missing please let me know what to do next?

@UsamaHameed1 hey iam from karachi having same issue my fyp project stucks here.

ubaidari commented 1 year ago

@sachinprasadhs When this issue resolve. The colab importing same packages forever and disk becomes full. Please resolve this ASAP!

akojace commented 1 year ago

any update on this? thesis defense is closing in and we need this resolved :(

ubaidari commented 1 year ago

Any update :(

Huxwell commented 1 year ago

@synandi @sachinprasadhs Not sure how to change python version in colab.

!add-apt-repository -y ppa:deadsnakes/ppa
!apt-get update
!apt-get install python3.9
!apt-get install python3.9-dev

!wget https://bootstrap.pypa.io/get-pip.py && python3.9 get-pip.py

import sys

sys.path[2] = '/usr/lib/python39.zip'
sys.path[3] = '/usr/lib/python3.9'
sys.path[4] = '/usr/lib/python3.9/lib-dynload'
sys.path[5] = '/usr/local/lib/python3.9/dist-packages'
sys.path[7] ='/usr/local/lib/python3.9/dist-packages/IPython/extensions'

Didn't work, I will still get:

from sys import version_info 
print(version_info) #sys.version_info(major=3, minor=10, micro=11, releaselevel='final', serial=0)
!sudo update-alternatives --config python3

allow me to change to 3.8, but again, version_info stays 3.10.

I am now trying to replicate on 3.8.1 on venv on my laptop instead of Google Colab.

Huxwell commented 1 year ago

Apparently there is a conflict in requirements for numpy version when using python 3.8.1.

I was able to install on python 3.8.1, but import import tflite_model_maker results in AttributeError: module 'numpy' has no attribute 'object'. , so clearly I have wrong numpy version and pip didn't notice.

The aliases was originally deprecated in NumPy 1.20; so I did pip install --upgrade numpy==1.19 but then importing model-maker results in `ImportError: this version of pandas is incompatible with numpy < 1.20.3 your numpy version is 1.19.0. Please upgrade numpy to >= 1.20.3 to use this pandas version.

I have also tried pip install tflite-model-maker-nightly but it has similar issues.

BTW thanks for your support, I know that wheel packaging, pip, and dependencies are extremally frustrating for all parties involved. The lib is available to use free of charge, and you still are trying to help us.

ubaidari commented 1 year ago

Apparently there is a conflict in requirements for numpy version when using python 3.8.1.

I was able to install on python 3.8.1, but import import tflite_model_maker results in AttributeError: module 'numpy' has no attribute 'object'. , so clearly I have wrong numpy version and pip didn't notice.

The aliases was originally deprecated in NumPy 1.20; so I did pip install --upgrade numpy==1.19 but then importing model-maker results in `ImportError: this version of pandas is incompatible with numpy < 1.20.3 your numpy version is 1.19.0. Please upgrade numpy to >= 1.20.3 to use this pandas version.

I have also tried pip install tflite-model-maker-nightly but it has similar issues.

BTW thanks for your support, I know that wheel packaging, pip, and dependencies are extremally frustrating for all parties involved. The lib is available to use free of charge, and you still are trying to help us.

@Huxwell So from this issue resolved or not ?

ubaidari commented 1 year ago

@tensorflow-copybara

UsamaHameed1 commented 1 year ago

Is there any solution to the problem so far?

Yosef-6 commented 1 year ago

Same problem here is there any other way to use lib ? Am new to pip and python btw :)

Alex858624 commented 1 year ago

У меня тоже проблема с tflite-model-maker на позопрошлой недели все работало а потом я решил обучить модель на прошлых выходных и все бесконечная загрузка и заполняет диск

Alex858624 commented 1 year ago

Есть ли другой способ обучать модели?

Alex858624 commented 1 year ago

Это же из за обновления python произошло?

Alex858624 commented 1 year ago

Подругому не знаю как объяснить

tomkuzma commented 1 year ago

I found a fix for this yesterday for using model maker on Colab.

Use the command Palette in colab with cmd+shift+P. Then type "use fallback runtime version" and select. This will roll back to Python 3.9.16 runtime and tflite-model-maker can be installed.

Screenshot 2023-05-03 at 12 42 48 PM

Edit: You need to connect to a runtime first, then the option will be available and it will restart with 3.9.16 instead of 3.10.

Also just a heads up that apparently this will only be available until mid-May so a fix for 3.10 probably is still needed to work with Colab after that.

Screenshot 2023-05-04 at 1 13 57 AM
Plessen commented 1 year ago

@tomkuzma that worked for me!

ubaidari commented 1 year ago

@tomkuzma yes it worked but some of dependencies gets error but module installed .

Huxwell commented 1 year ago

@tomkuzma image seems that for me the option is not there, thanks for sharing though

Edit: thanks @tomkuzma it seems to have helped. My intuition was that the opposite should be true - change runtime before actually starting a one / after deleting the existing one.

tomkuzma commented 1 year ago

@Huxwell you need to connect to a runtime first, then should be available.

Alex858624 commented 1 year ago

У меня все получилось но вобще планируется это исправлять в новой версии python?

ioanbsu commented 1 year ago

The python 3.9.16 fixed the issues in codelab, but locally (in conda env with python 3.9.16) I still have infinity download issue.

wafrsbsg commented 1 year ago

@tomkuzma There is a dependency conflict error

MaurizioNaletto-code commented 1 year ago

Same problem in colab with python 3.10 & tflite script who was working until 4 days ago.

gaddyh commented 1 year ago

after using the fallback it got installed but then i got error for librosa: ImportError: numpy.core.multiarray failed to import

ghost commented 1 year ago

I ran some tests yesterday. Granted, on my M1 Mac so I was expecting problems from the start.

Running a 3.9.x conda env did not solve the indefinite dependency issues.

Tried manually installing a nightly wheel. Manually installed dependencies as they showed up.

Problem on Mac is it's looking for the "tensorflow" package but with Apple silicone the package name is tensorflow-macos which is maintained by Apple so the manual package install did not work.

Will test more on a Linux machine.

Huxwell commented 1 year ago

For me, the workaround from @tomkuzma works in colab. I still get warnings or even errors when I import tflite-model-maker, but simply rerunning the cell helps. I am able to successfully train my models. Thank you again @tomkuzma for sharing this, each one of us owns you a good craft beer...

gui-rossi commented 1 year ago

All, like @Huxwell said just run the tflite-model-maker cell 2 TIMES, after changing to the fallback version. You'll get the error on the first one and the second should be good.

Gurkan26 commented 1 year ago

worked for me. thanks

notadoktor commented 1 year ago

It looks to be a weird version dependency parsing issue. Install in a clean conda environment fails for me whether via pypi or repo clone. However, using pipenv to handle the dependency graph lets the install work as expected. I also needed to set numpy<1.24.0 to accommodate deprecation errors, but this did not appear to cause any other issues.

Interestingly, when using pipenv requirements to generate a requirements.txt from the Pipfile.lock the pip install still fails complaining about other version mismatches.