-
Notifications
You must be signed in to change notification settings - Fork 13
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: No module named 'edgetpu' #42
Comments
This is due to the init.py not doing its job As a workaround I had to remove
becomes
and so on, anyone knows how to fix this? |
Hi. Did you figure out the problem? I'm having the exat problem. Can you help me please? |
Getting exact the same comment, any idea???? |
Hey man, I reinstalled the edgetpu library and it worked for me. https://coral.withgoogle.com/docs/edgetpu/api-intro/ |
Thanks Jean for quick response, I tried already to reinstall the
library -but will try again tomorrow..
Concerning projects: I just started with the Coral Edge TPU and installed
Mike Tykas teachable machine --which worked fine in the beginning
but failed now (very frustraiting).
I planned to combine the TPU with a robot arm or the Monsterborg
but just started....
I will try again and will let you know
Thanks again
Peter
Gesendet: Samstag, 02. November 2019 um 18:21 Uhr
Von: "JeanCarm" <[email protected]>
An: f0cal/google-coral <[email protected]>
Cc: PjotrG <[email protected]>, Mention <[email protected]>
Betreff: Re: [f0cal/google-coral] ImportError: No module named 'edgetpu' (#42)
Hey man, I reinstalled the edgetpu library and it worked for me. https://coral.withgoogle.com/docs/edgetpu/api-intro/
Let me know if it works and also what type of project are you working on?
@PjotrG
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Jean, thanx once again for your advice.
Tried once again to upload, got this:
pi@raspberrypi:~ $ sudo apt-get install python3-edgetpu
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-edgetpu is already the newest version (12-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
when I try to run one of the examples I get this:
pi@raspberrypi:~/Myprojects/Edgetpu/edgetpu-master/examples $ python3 classify_image.py --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --label models/inat_bird_labels.txt --image images/parrot.jpg
Traceback (most recent call last):
File "classify_image.py", line 17, in <module>
from edgetpu.classification.engine import ClassificationEngine
ImportError: No module named 'edgetpu.classification'
I'm a bit desperate
Regaeds Peter
Gesendet: Samstag, 02. November 2019 um 18:21 Uhr
Von: "JeanCarm" <[email protected]>
An: f0cal/google-coral <[email protected]>
Cc: PjotrG <[email protected]>, Mention <[email protected]>
Betreff: Re: [f0cal/google-coral] ImportError: No module named 'edgetpu' (#42)
Hey man, I reinstalled the edgetpu library and it worked for me. https://coral.withgoogle.com/docs/edgetpu/api-intro/
Let me know if it works and also what type of project are you working on?
@PjotrG
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Did you try my workaround? |
@zubairahmed-ai |
@zubairahmed-ai |
Yes like that, you have to go in each sub-file that the main script is calling and change it there. Tedious but once done it worked for me. |
@zubairahmed-ai @JeanCarm |
@PjotrG I am not working on anything right now, what about you? |
@zubairahmed-ai I just installed the detect.py (https://github.com/google-coral/examples-camera/tree/master/gstreameron) with minor modifications on my robot arm (OWI 535): the gripper holds the camera and the arm follows a defined object detected (somehow similar to https://github.com/google-coral/project-banana-robo/blob/master/detect_standalone.py) it went "surprinsingly" well. |
The python module edgetpu is in the python3-edgetpu package. |
Hi guys! I had the same issue and solved it by Installing the Edge TPU library as follows
|
I'm able to |
I'm having the same issue in RPi 4B (no virtual env).
export PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages:/usr/local/python3.7/dist-packages |
Hey, |
Hi guys I'll one up @aeropia. To me this is very standard python issues especially if you have multiple python version install + some odd virtual environment. Check out my answer here robmarkcole/coral-pi-rest-server#56 (comment) |
Doc you were trying to follow: https://coral.withgoogle.com/docs/accelerator/get-started/
https://www.pyimagesearch.com/2019/04/22/getting-started-with-google-corals-tpu-usb-accelerator/
Your host OS: Raspbian on RPi 3B+
Your Python3 version: 3.5.2
What I ran
python3 demo/classify_image.py --model ~/edgetpu_models/mobilenet_v2_1.0_224_quant_edgetpu.tflite --label ~/edgetpu_models/imagenet_labels.txt --image test_data/parrot.jpg
What the docs said should happen
I should see the results of the parrot classification
macaw
Score : 0.99609375
What actually happened
File "demo/classify_image.py", line 3, in
from edgetpu.classification.engine import ClassificationEngine
ImportError: No module named 'edgetpu'
The text was updated successfully, but these errors were encountered: