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

Unable to Install Pycoral on Raspberry Pi 5 #133

Open
minhtribui153 opened this issue Nov 12, 2023 · 10 comments
Open

Unable to Install Pycoral on Raspberry Pi 5 #133

minhtribui153 opened this issue Nov 12, 2023 · 10 comments
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues

Comments

@minhtribui153
Copy link

minhtribui153 commented Nov 12, 2023

Description

The latest version of raspbian os for raspberry pi 5 currently only supports Python 3.11, not Python 3.10 or newer. But for Pycoral to be installed, it requires Python 3.10 or newer. Is there any way that you can support Raspberry Pi 5?

This is the command I used to run:

sudo apt-get install python3-pycoral
Click to expand!

Issue Type

Build/Install

Operating System

Linux

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

Other

Relevant Log Output

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-tflite-runtime : Depends: python3 (< 3.10) but 3.11.2-1 is to be installed
E: Unable to correct problems, you have held broken packages.
@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 Nov 12, 2023
@hra42
Copy link

hra42 commented Dec 4, 2023

same problem

2 similar comments
@Jo59Devs
Copy link

Jo59Devs commented Dec 6, 2023

same problem

@sjunger
Copy link

sjunger commented Dec 13, 2023

same problem

@sjunger
Copy link

sjunger commented Dec 13, 2023

tflite-runtime can be installed in my venv wirh "pip install tflite-runtime".

Now when I run "pip install pycoral" I get the following messages:

(.venv) ┌─[ ]-[17:45:30]-[sjunger@xxxxxxxxxxxxx]-[~/Documents/xxxxxxxxxxxxxx]
└─$ pip install pycoral
Collecting pycoral
Using cached pycoral-0.2.0-py3-none-any.whl.metadata (9.0 kB)
Collecting requests>=2.23.1 (from pycoral)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting progressbar2>=3.53.1 (from pycoral)
Using cached progressbar2-4.2.0-py2.py3-none-any.whl (27 kB)
Collecting area>=1.1.1 (from pycoral)
Using cached area-1.1.1.tar.gz (4.1 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tenacity>=8.0.1 (from pycoral)
Using cached tenacity-8.2.3-py3-none-any.whl.metadata (1.0 kB)
Collecting pandas>=2.1.1 (from pycoral)
Using cached pandas-2.1.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (18 kB)
Collecting pyproj>=1.9.5.1 (from pycoral)
Using cached pyproj-3.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (31 kB)
Collecting shapely>=1.7.1 (from pycoral)
Using cached shapely-2.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.0 kB)
Collecting fiona>=1.8.20 (from pycoral)
Using cached fiona-1.9.5.tar.gz (409 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
:86: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


Python 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0] on linux

@sjunger
Copy link

sjunger commented Dec 13, 2023

Okay, forget "tflite-runtime". This version would be too new anyway. pycoral requires 2.5.0.post1 and I now have 2.14.0

@hra42
Copy link

hra42 commented Dec 13, 2023

I just run pycoral in a docker container for now.. performance is good enoght for what I need to do.

@Jo59Devs
Copy link

I just run pycoral in a docker container for now.. performance is good enoght for what I need to do.

which docker image can you recommend?
Thanks!

@hra42
Copy link

hra42 commented Dec 14, 2023

As the documentation requests, I used Debian 10

@nathan-stewart
Copy link

nathan-stewart commented Dec 27, 2023

Pycoral is basically abandoned. Using pyenv and python-3.9.18 I have gotten https://github.com/oberluz/pycoral fork to work. At least, after fixing a couple s/PIL.Image.ANTIALIAS/PIL.Image.LANCZOS/ breakages (the PIL version this pulls has removed ANTIALIAS), I can run the classify and detect_image examples to run. I haven't yet managed to get it to work with the model I'm trying (tf2_ssd_mobilenet_v2_coco17_ptq_edgetpu.tflite)

@feranick
Copy link

feranick commented Mar 4, 2024

Support for EdgeTPu is coming back. Updated libcoral and pycoral libraries for Python 3.11+ and modern TF are coming. The libedgetpu official repo was just updated based on my PR, and is compatible with TF 2.15.0

I am working to get libcoral/pycoral merged to the stable repo by the time TF 2.16.0 reaches stable.

Details here:

#137 (comment)

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

6 participants