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

Mac OSX 12 Monterey. unable to install PyCoral library #539

Open
paloj opened this issue Feb 15, 2022 · 5 comments
Open

Mac OSX 12 Monterey. unable to install PyCoral library #539

paloj opened this issue Feb 15, 2022 · 5 comments
Assignees
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:macOS macOS Build/installation issues type:build/install Build and install issues

Comments

@paloj
Copy link

paloj commented Feb 15, 2022

Description

Following install instructions here: https://coral.ai/docs/accelerator/get-started/#2-install-the-pycoral-library
I get stuck on 2b:
python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0
gives error:
ERROR: Could not find a version that satisfies the requirement pycoral~=2.0 (from versions: 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9)
ERROR: No matching distribution found for pycoral~=2.0

Click to expand!

Issue Type

Build/Install

Operating System

Mac OS

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

Python 3.8

Relevant Log Output

python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0
Looking in indexes: https://pypi.org/simple, https://google-coral.github.io/py-repo/
ERROR: Could not find a version that satisfies the requirement pycoral~=2.0 (from versions: 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9)
ERROR: No matching distribution found for pycoral~=2.0
@google-coral-bot google-coral-bot bot added Hardware:USB Accelerator Coral USB Accelerator issues subtype:macOS macOS Build/installation issues type:build/install Build and install issues labels Feb 15, 2022
@hjonnala
Copy link
Contributor

@paloj can you please try to install tflite runtime and pycoral in the same order from the whl flles: https://coral.ai/software/#pycoral-api.. Thanks!

@felisida
Copy link

I followed the whole procedure, without displaying any errors, but when I tried to run the example I get this error

Traceback (most recent call last):
File "/Users/homeassistant/coral/pycoral/examples/classify_image.py", line 40, in
from pycoral.utils.edgetpu import make_interpreter
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/_pywrap_coral.cpython-39-darwin.so, 0x0002): Library not loaded: '@rpath/libedgetpu.1.dylib'
Referenced from: '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/_pywrap_coral.cpython-39-darwin.so'
Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/libedgetpu.1.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/libedgetpu.1.dylib' (no such file), '/usr/lib/libedgetpu.1.dylib' (no such file)

thi is the last part of procedure
homeassistant@IMAC-4A7A7E ~ % python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0
Looking in indexes: https://pypi.org/simple, https://google-coral.github.io/py-repo/
Collecting pycoral~=2.0
Downloading https://github.com/google-coral/pycoral/releases/download/v2.0.0/pycoral-2.0.0-cp39-cp39-macosx_10_15_x86_64.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 2.5 MB/s
Requirement already satisfied: Pillow>=4.0.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pycoral~=2.0) (10.0.0)
Requirement already satisfied: tflite-runtime==2.5.0.post1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pycoral~=2.0) (2.5.0.post1)
Requirement already satisfied: numpy>=1.16.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pycoral~=2.0) (1.25.2)
Installing collected packages: pycoral
Successfully installed pycoral-2.0.0
WARNING: You are using pip version 20.2.3; however, version 23.2.1 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m pip install --upgrade pip' command.

@tomscholz
Copy link

I am facing the same issue. Did anyone manage to get it running?

@hongyuejin
Copy link

same issue here

@tomscholz
Copy link

I solved it by upgrading to Ventura

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:macOS macOS Build/installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

5 participants