google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
340 stars 138 forks source link

ModuleNotFoundError: No module named 'pycoral' #107

Closed bme323 closed 1 year ago

bme323 commented 1 year ago

Description

Hi all,

I am trying to follow the Coral 'Get started with the USB Accelerator' demo and run the parrot demo (step 3 of part 3), however when executing, I get the error message shown.

2023-03-06-221602_1920x1080_scrot

Info:

I have tried running the 32-bit whl. file and also changing directory name and continue getting error messages.

Any help appreciated.

Thanks

Click to expand! ### Issue Type Build/Install, Support ### Operating System Linux ### Coral Device _No response_ ### Other Devices Rapsberry Pi 4 ### Programming Language Python 3.7, Python 3.9 ### Relevant Log Output ```shell Traceback (most recent call last): File "examples/classify_image.py", line 37, in from pycoral.adapters import classify ModuleNotFoundError: No module named 'pycoral' ```
hjonnala commented 1 year ago

Hi, can you please share the output of below command as root user and without root user..

hemanthj@:~$ python3 -c "import tflite_runtime as tflite; print('tflite runtime vesrion:', tflite.__version__);import pycoral; print('pycoral version:', pycoral.__version__)"
tflite runtime vesrion: 2.5.0.post1
pycoral version: 2.0.0
bme323 commented 1 year ago

Hi Hemanth,

Here is my output as root user and non-root user. I have not installed tflite. Is this a prerequisite for the https://coral.ai/docs/accelerator/get-started/#pycoral-on-linux demo?

image image

hjonnala commented 1 year ago

Could you please uninstall the exsiting packages and try the installation again. Please share the installation logs and output of below command. Thanks!!

python3 -c "import tflite_runtime as tflite; print('tflite runtime vesrion:', tflite.__version__);import pycoral; print('pycoral version:', pycoral.__version__)"

google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No

bme323 commented 1 year ago

Hi thanks,

I reset rpi OS. think initial problem was the pyenv directory but have now run into a new issue about failing to load delegate from libedgetpu. I've created a new issue, and have closed this. Thanks