Bug - pip install tflite-model-maker fails or hangs forever
envgap__tensorflow__tensorflow-60431
Original GitHub issue ↗Opened 2023-04-28
01 / FAILURE SIGNATURE
As reported upstream
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
requirements.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
tensorflow/tensorflow #60431 · read the original issue
<details><summary>Click to expand!</summary>
### 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)
Requ04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue concerns tflite-model-maker distribution; legacy run attempted nonexistent TensorFlow root manifests.
Legacy reproduction is generic install-only; match the actual issue failure before admission.