Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issue with tflite-runtime Version for pycoral Installation #147

Open
aletes67 opened this issue Jul 22, 2024 · 1 comment
Open
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues

Comments

@aletes67
Copy link

aletes67 commented Jul 22, 2024

Description

Hello,

I am encountering an issue while trying to install pycoral with tflite-runtime. The pycoral package seems to require tflite-runtime==2.5.0.post1, but this specific version is not available. The available versions of tflite-runtime are 2.13.0 and 2.14.0.

Here is the error message I receive during the installation:

ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.5.0.post1 (from pycoral) (from versions: 2.13.0, 2.14.0)
ERROR: No matching distribution found for tflite-runtime==2.5.0.post1

Steps to Reproduce:

  1. Create and activate a virtual environment:

    python3 -m venv myenv
    source myenv/bin/activate
  2. Attempt to install pycoral:

    pip install git+https://github.com/google-coral/pycoral

Environment:

  • OS: Ubuntu 22.04
  • Python Version: 3.10.12
  • tflite-runtime Available Versions: 2.13.0, 2.14.0

Expected Behavior:
pycoral should install without errors using a compatible version of tflite-runtime.

Actual Behavior:
The installation fails due to the unavailability of tflite-runtime==2.5.0.post1.

Temporary Workaround:
I have attempted to install tflite-runtime==2.14.0 and then install pycoral with the --no-deps flag, but this results in a ModuleNotFoundError for pycoral.pybind.

Error Log:

ModuleNotFoundError: No module named 'pycoral.pybind'

Could you please provide guidance on how to resolve this issue? Is there a recommended version of tflite-runtime that is compatible with pycoral, or is there a way to update the dependencies to support the available versions of tflite-runtime?

Thank you for your assistance.

Click to expand!

Issue Type

Build/Install

Operating System

Ubuntu

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

C++, Python 3.9, Other

Relevant Log Output

from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
ModuleNotFoundError: No module named 'pycoral.pybind'
@google-coral-bot google-coral-bot bot added Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues labels Jul 22, 2024
@aletundo
Copy link

@aletes67 I think you can workaround by indicating a specific index URL for the tflite-runtime==2.5.0.post1 because it's hosted in the same Python repository that hosts the pycoral package.

For example, in your requirements.txt you can write:

--extra-index-url https://google-coral.github.io/py-repo/
pycoral==2.0.0
--extra-index-url https://google-coral.github.io/py-repo/
tflite-runtime==2.5.0.post1

Anyways, I also would like to use the latest version of tflite-runtime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants