googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.21k stars 725 forks source link

tensorflow/lite/g3doc/models/modify/model_maker/object_detection.ipynb Fails installing dependencies #4956

Open Tathun opened 1 week ago

Tathun commented 1 week ago

The colab notebook fails installing the dependencies This is what I am getting when running the first cell:

Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: libportaudio2 0 upgraded, 1 newly installed, 0 to remove and 49 not upgraded. Need to get 65.3 kB of archives. After this operation, 223 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libportaudio2 amd64 19.6.0-1.1 [65.3 kB] Fetched 65.3 kB in 1s (53.8 kB/s) debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Selecting previously unselected package libportaudio2:amd64. (Reading database ... 123629 files and directories currently installed.) Preparing to unpack .../libportaudio2_19.6.0-1.1_amd64.deb ... Unpacking libportaudio2:amd64 (19.6.0-1.1) ... Setting up libportaudio2:amd64 (19.6.0-1.1) ... Processing triggers for libc-bin (2.35-0ubuntu3.4) ... /sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_0.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbbind.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libur_adapter_opencl.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbb.so.12 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libur_adapter_level_zero.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtcm.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libur_loader.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_5.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc_proxy.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libhwloc.so.15 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtcm_debug.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libumf.so.0 is not a symbolic link

 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.2/87.2 kB 7.0 MB/s eta 0:00:00

Preparing metadata (setup.py) ... done ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.1/41.1 kB 2.6 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.9/37.9 MB 22.7 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done WARNING: Ignoring version 0.3.2 of tflite-model-maker since it has invalid metadata: Requested tflite-model-maker from https://files.pythonhosted.org/packages/29/dc/f74a8aa41a8b78dc57e6cf1acf0003b40753c8b73ce581532ceff1442aaf/tflite_model_maker-0.3.2-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier tensorflow-hub (<0.10>=0.8.0)


Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.1 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/ea/96/b3149af45895426a918591d57a237323dbc2d331abb0d27d1adb9e218995/tflite_model_maker-0.3.1-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.0 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/b3/85/8849142f1a46d75713a3b28496da0f8b931c91818497b8bc24a971ea7a33/tflite_model_maker-0.3.0-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.5 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/53/61/5afa9c11a65bc1a096e110b96b414c00cc6665ffb085bb80426b4bd548c4/tflite_model_maker-0.2.5-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.4 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/52/a5/367b449b0a13b6db970e14604799238e0f7a15e97b6dfe1c8c51e7c200ef/tflite_model_maker-0.2.4-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    absl-py (<0.11>=0.10.0)
            ~~~~~~^
Please use pip<24.1 if you need to use this version.
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 258.8/258.8 kB 23.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.8/51.8 kB 4.9 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 kB 4.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
WARNING: Ignoring version 0.3.2 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/29/dc/f74a8aa41a8b78dc57e6cf1acf0003b40753c8b73ce581532ceff1442aaf/tflite_model_maker-0.3.2-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.1 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/ea/96/b3149af45895426a918591d57a237323dbc2d331abb0d27d1adb9e218995/tflite_model_maker-0.3.1-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.0 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/b3/85/8849142f1a46d75713a3b28496da0f8b931c91818497b8bc24a971ea7a33/tflite_model_maker-0.3.0-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.5 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/53/61/5afa9c11a65bc1a096e110b96b414c00cc6665ffb085bb80426b4bd548c4/tflite_model_maker-0.2.5-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.4 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/52/a5/367b449b0a13b6db970e14604799238e0f7a15e97b6dfe1c8c51e7c200ef/tflite_model_maker-0.2.4-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    absl-py (<0.11>=0.10.0)
            ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.2 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/29/dc/f74a8aa41a8b78dc57e6cf1acf0003b40753c8b73ce581532ceff1442aaf/tflite_model_maker-0.3.2-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.1 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/ea/96/b3149af45895426a918591d57a237323dbc2d331abb0d27d1adb9e218995/tflite_model_maker-0.3.1-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.3.0 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/b3/85/8849142f1a46d75713a3b28496da0f8b931c91818497b8bc24a971ea7a33/tflite_model_maker-0.3.0-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.5 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/53/61/5afa9c11a65bc1a096e110b96b414c00cc6665ffb085bb80426b4bd548c4/tflite_model_maker-0.2.5-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    tensorflow-hub (<0.10>=0.8.0)
                   ~~~~~~^
Please use pip<24.1 if you need to use this version.
WARNING: Ignoring version 0.2.4 of tflite-model-maker since it has invalid metadata:
Requested tflite-model-maker from https://files.pythonhosted.org/packages/52/a5/367b449b0a13b6db970e14604799238e0f7a15e97b6dfe1c8c51e7c200ef/tflite_model_maker-0.2.4-py3-none-any.whl has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    absl-py (<0.11>=0.10.0)
            ~~~~~~^
Please use pip<24.1 if you need to use this version.
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.3.3, tflite-model-maker==0.3.4, tflite-model-maker==0.4.0, tflite-model-maker==0.4.1, tflite-model-maker==0.4.2 and tflite-model-maker==0.4.3 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
colaboratory-team commented 1 week ago

Looking at that notebook, it looks pretty old - it tries to install Tensorflow 2.8, which is too old to work on our current GPU machines

I'll try and reach out to the notebook author to either get it updated or removed