Closed ckuethe closed 4 years ago
As a nasty workaround, you can do cd /usr/local/lib/python3.7/dist-packages/edgetpu/swig/ && sudo ln -s _edgetpu_cpp_wrapper.cpython-3{6,7}m-x86_64-linux-gnu.so
which somewhat works for the parrot demo, albeit with a warning:
W third_party/darwinn/driver/package_registry.cc:65] Minimum runtime version required by package (5) is lower than expected (10).
installed from edgetpu_api_1.9.2.tar.gz
Hit a similar error: my system (ODROID-XU4, running Ubuntu 18.04.2 LTS) comes with Python 3.6, and edgetpu_api_1.9.2.tar.gz
has the arm32 version of the swig wrapper compiled only for Python 3.5.
Symlinking the file as suggested above works at least well enough to run the demo. (It initially failed with RuntimeError: Failed to allocate tensors.
but I saw at google-coral/edgetpu-platforms#1 that this is just a permissions problem.)
Is there source available for the swig wrapper, so we can just rebuild it? I looked around a bit starting from https://coral.withgoogle.com/resources/ but didn't find it. I was a little surprised; I wouldn't expect there to be any secret sauce in this component.
For now the edgetpu_cpp_wrapper.py doesn't seem to be dynamic enough to pick the right version automatically.
I got it working by renaming the .so file to _edgetpu_cpp_wrapper.so. I should note that I also had to choose the .so file that corresponded to my machine. E.g the _edgetpu_cpp_wrapper.cpython-36m-x86_64-linux-gnu.so I renamed.
I should recommend anyone going this direction to make a directory for the four available .so files.
Also if you are using "any" of nvidia's jetson boards (e.g. nano, tx1, tx2, xavier) then rename and use the aarch .so file.
Let me know if this helps. :smiley:
I am getting this error with raspbian Buster on a pi 3
This command below fixed it for me on raspian Buster on a pi 3. It's sort of like ECE-Engineer's solution but for arm:
sudo cp _edgetpu_cpp_wrapper.cpython-35m-arm-linux-gnueabihf.so _edgetpu_cpp_wrapper.cpython-37m-arm-linux-gnueabihf.so
it's possible that you just have 2 python version installation also and the one your're using just happen to not be linked to "/usr/local/lib/python3.6/dist-packages"
if it's not in the out put of this:
$ python3 -c 'print(__import__("sys").path)
then you may need to use your system python instead
For now the edgetpu_cpp_wrapper.py doesn't seem to be dynamic enough to pick the right version automatically.
I got it working by renaming the .so file to _edgetpu_cpp_wrapper.so. I should note that I also had to choose the .so file that corresponded to my machine. E.g the _edgetpu_cpp_wrapper.cpython-36m-x86_64-linux-gnu.so I renamed.
I should recommend anyone going this direction to make a directory for the four available .so files.
Also if you are using "any" of nvidia's jetson boards (e.g. nano, tx1, tx2, xavier) then rename and use the aarch .so file.
Let me know if this helps. 😃
Hi @ECE-Engineer, how did you rename a file in that directory? I couldn't rightclick>rename, like it was blocked for renaming. By the way I'm using Xavier. Thanks!
I had python3.7 (built mendel from master branch) so I did:
cd /usr/lib/python3/dist-packages/edgetpu/swig/ sudo ln -s _edgetpu_cpp_wrapper.cpython-35m-aarch64-linux-gnu.so _edgetpu_cpp_wrapper.cpython-37m-aarch64-linux-gnu.so
I am on raspbian buster and followed this advice:
sudo cp _edgetpu_cpp_wrapper.cpython-35m-arm-linux-gnueabihf.so _edgetpu_cpp_wrapper.cpython-37m-arm-linux-gnueabihf.so
When I now execute my python file, the error is a different one:
root@487cac231a2a:/app# python3 mirror.py
Traceback (most recent call last):
File "mirror.py", line 6, in
Does anyone have any clue?
The problem is ImportError: libunwind.so.8: cannot open shared object file: No such file or directory
You need to install libunwind. Start with apt search unwind
to see what version is available for your machine
Please check this answer :) https://github.com/f0cal/google-coral/issues/7#issuecomment-633244553
What I ran
What the docs said should happen
What actually happened
I'm guessing this is because there is no
37m-x86_64
build...