question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: Failed to load delegate from libedgetpu.so.1

See original GitHub issue

Hey, I’m trying to run classify_image.py on a Coral USB Accelerator, but it throws the following error.

Traceback (most recent call last):
  File "classify_image.py", line 122, in <module>
    main()
  File "classify_image.py", line 99, in main
    interpreter = make_interpreter(args.model)
  File "classify_image.py", line 73, in make_interpreter
    {'device': device[0]} if device else {})
  File "/home/andyxu/.local/lib/python3.6/site-packages/tflite_runtime/interpreter.py", line 164, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1

Following all the steps verbatim here, I’m able to run in on the Windows 10 cmd. However, when set up everything on the same PC with Ubuntu WSL 2, I get the above error. I’ve tried everything mentioned in #4, and it appears that the libraries have been successfully installed. Any idea what the issue could be?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Namburgercommented, Jul 14, 2020

@Everthings Humn, I’m actually not sure if libedgetpu would works under WSL 😕 Although it’s possible that your linux user just doesn’t have plugdev access, could you try this?

sudo usermod -aG plugdev $USER

Then reboot your device and try again.

0reactions
Everthingscommented, Jul 15, 2020

Ok, good to know. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load delegate from libedgetpu.so.1 M.2 Accelerator ...
Issue Type Support Source binary Tensorflow Version 2.9.1 Custom Code No OS Platform and Distribution Debian GNU/Linux 11 (bullseye) Mobile ...
Read more >
Failed to load delegate from libedgetpu.so.1 docker container ...
ValueError : Failed to load delegate from libedgetpu.so.1. I checked the connection to the coral, it's ok. I tried looking at the /dev/apex_0 ......
Read more >
Coral USB inference not working on Windows 10 (ValueError
The last line, “ValueError: Failed to load delegate from edgetpu.dll” usually means that no Coral USB device could be recognized. (If you unplug ......
Read more >
Build Coral for your platform
Failed to load delegate from libedgetpu.so.1link ... Failing to load the delegate is a very general error that can indicate a few issues...
Read more >
tf.lite.experimental.load_delegate | TensorFlow v2.11.0
Returns loaded Delegate object. ... ValueError, Delegate failed to load. RuntimeError, If delegate loading is used on unsupported platform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found