-
Notifications
You must be signed in to change notification settings - Fork 149
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
ImportError: _pywrap_coral.cpython-38-darwin.so not found #35
Comments
Hi, please try uninstall tflite_runtime and pycoral and install from these whl files using pip: Here the links commands for python3.8 and Mac
Thanks |
@hjonnala having followed your instructions I receive:
|
@ robmarkcole. I am not able to reproduce the error. Can you please share entire error details from which line the error is coming.
|
we have new release. Please try to create new virtual env and install using python3 -m pip install --index-url https://google-coral.github.io/py-repo/ --extra-index-url=https://pypi.python.org/simple pycoral. And let us know if you are still facing any issues.
|
Following exactly your steps:
I notice you are on Python 3.8.2 whilst I am on Python 3.8.5 |
we can see it is using cache to install the libraries. Can you try create virtual env with different name. You should be getting pycoral2.0.0. |
@hjonnala even creating a fresh venv with a new name, I encounter the issue as it appears its not getting pycoral2.0.0. Tried adding
I then created a fresh venv and pip istalled as above and have:
|
@robmarkcole Looks like you are missing |
@dmitriykovalev thanks for the pointer. However I hit various issues and am unable to install
|
@robmarkcole Looks like there is an error while installing |
@dmitriykovalev I am currently wiping and reinstalling my command line tools after the following, lets see if this resolves it. However all indications are that my tools are already up to date
Alright after doing that libusb is able to install. I tried to update it also but got a different error:
Nevertheless libedgetpu can now install
My apologies for the many screendumps but perhaps this will help someone else with their debugging. Tbh it is not clear from the docs that a mac use will need to do these manual steps to install libusb and libedgetpu I am then able to
which is google-coral/edgetpu#364 however I am using the USB accelerator. My notebook is at https://github.com/robmarkcole/pycoral-experiments/blob/main/quickstart-macos.ipynb |
@robmarkcole That's interesting. Please copy the output from the following commands:
and
|
|
@robmarkcole Everything seems to be correct so far. Do you have Coral USB Accelerator properly connected to the Mac? Can you see it in the output of Just in case, can you also try to run the python script with |
@robmarkcole It's interesting that you have |
Could be the device is not found as I am using an adapter? The output:
Same error with |
I also get
I do see the device Brew just returns errors
|
I see, device is properly connected then. Please run this command and copy the output:
|
|
Looks like everything is connected properly and should be working fine, it's weird that it doesn't. Is there a chance you can try connecting USB accelerator directly to the laptop without any hubs? There are usually two ways of doing this:
It could also be useful to try a different USB hub if possible. |
Alright, using the USB-C to USB-C cable the inference runs without issue! Closing this issue and purchasing extra cables :-) |
@robmarkcole I'm glad it works now! According to my experience, USB cable/power issues are the hardest to debug. |
Platform:
Python 3.8.5. with venv using
python3 -m venv venv
and installation usingpython3 -m pip install --index-url https://google-coral.github.io/py-repo/ --extra-index-url=https://pypi.python.org/simple pycoral
On running
from pycoral.utils import edgetpu
and having the usb accelerator plugged into USB, I receive:The text was updated successfully, but these errors were encountered: