google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
426 stars 125 forks source link

RuntimeError: Error in device opening (/dev/apex_0)! #255

Closed jolloqui closed 3 years ago

jolloqui commented 3 years ago

Hi,

I am following the execution instructions from the Coral posenet example.

When I try to run:

python3 pose_camera.py

The output is:

Loading model: models/mobilenet/posenet_mobilenet_v1_075_481_641_quant_decoder_edgetpu.tflite Traceback (most recent call last): File "pose_camera.py", line 163, in main() File "pose_camera.py", line 159, in main run(run_inference, render_overlay) File "pose_camera.py", line 115, in run engine = PoseEngine(model) File "/home/mendel/project-posenet/pose_engine.py", line 85, in init BasicEngine.init(self, model_path) File "/usr/lib/python3/dist-packages/edgetpu/basic/basic_engine.py", line 92, in init self._engine = BasicEnginePythonWrapper.CreateFromFile(model_path) RuntimeError: Error in device opening (/dev/apex_0)!

Any help would be appreciated.

EDIT: After upgrade de distribution whit sudo apt-get dist-upgrade know the output is:

Traceback (most recent call last): File "pose_camera.py", line 26, in from pose_engine import PoseEngine File "/home/mendel/project-posenet/pose_engine.py", line 20, in from edgetpu import version as edgetpu_version ModuleNotFoundError: No module named 'edgetpu'

Namburger commented 3 years ago

@jolloqui our posenet repo is being updated as the edgetpu repo has been deprecated in favor of pycoral and libcoral, this should be fixed soon. However,

RuntimeError: Error in device opening (/dev/apex_0)!

Seems to be a different issue, can you share the outputs of these commands?

$ ls /dev/apex_0
$ lspci
jolloqui commented 3 years ago

@Namburger I have installed the system again to get the error. Because it only happens before the update.

$ ls /dev/apex_0 
/dev/apex_0
$ lspci
0000:00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 (rev 01)
0000:01:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
0001:00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 (rev 01)
0001:01:00.0 System peripheral: Device 1ac1:089a
Namburger commented 3 years ago

@jolloqui yes, posenet just won't works at the moment due to our new update, which deprecated this import we're working on it, however you should be able to run any other example, correct?

jolloqui commented 3 years ago

@Namburger yes, the other examples work fine! Thank you very much!

hjonnala commented 3 years ago

Closing the issue as it got fixed with newer versions. Screenshot from 2021-07-07 10-19-43