Closed stonehippo closed 5 years ago
This is my fix on Nividia Jetson Nano and Nanopi M4 ( might be useful on Pi4 )
cd /usr/local/lib/python3.6/dist-packages/edgetpu/swig/ sudo cp _edgetpu_cpp_wrapper.cpython-35m-aarch64-linux-gnu.so edgetpu_cpp_wrapper.so
Guess you have to adapt to 3.7
Ok, that got me a bit further, but now it's complaining about other missing libs. Pretty sure it needs to be compiled for Python 3.7.
Uninstall 3.7 and use 3.6 ?
Which device are you using - Rpi Zero or Rpi3 ?
I just reproduced your error using a clean Raspbian Buster and a Rpi3. A workaround was (as suggested above) to do: cd /usr/local/lib/python3.7/dist-packages/edgetpu/swig/ sudo cp _edgetpu_cpp_wrapper.cpython-35m-arm-linux-gnueabihf.so _edgetpu_cpp_wrapper.cpython-37m-arm-linux-gnueabihf.so
This worked for me and I can now run the examples here: https://coral.withgoogle.com/docs/accelerator/get-started/
@mtyka I'm trying this on a Pi Zero, so I can try the same with the armhf .so.
Ah yes, I meant the arm one not the aarch64 one - sorry for the typo. LMK if it works - in theory it should work since the libedgetpu.so is a seperate lib that's independent from the python version.
@mtyka I tried the cp on my upgraded instance of Buster; no dice. There was an import error for libpython3.5m.so.1.0
, which implies that maybe the armhf wrapper is dynamically linked. I was able to fix that by explicitly installed libpython35-dev
, but that lead to another missing dependency (libgflags
) and now it's whack-a-mole.
I then tried a clean install of Raspian Buster Lite, and only installed apt updates, and the edgetpu API. Still no dice; same issues as with the upgraded Raspbian. Looks like there needs to be a recompilation to support Raspbian Buster on RPi Zero and Python 3.7. :(
I'll try and take a look this week. For now I recommend to stick with Raspbian Stretch on Pi 0
I haven't been able to make this work unfortunately. For now please stick with stretch. For convenience i've added a prebuilt image for rpi0: https://github.com/google-coral/edgetpu-platforms/releases/download/v1.9.2/rpi0-raspbian-stretch-edgetpu-1.9.2.img.gz
I recently moved to the latest Raspbian Buster release, which includes Python 3.7. After reinstalling the Pi Zero W version of the EdgeTPU support, I’m getting the following error when attempting to run the
classify_image.py
demo:I’m not really sure about swig and using C/C++ code with Python yet, but aliasing
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py
to/usr/local/lib/python3.7/diet-packages/edgetpu/_edgetpu_cpp_wrapper.py
the module resolution worked. However, this led to another error:Based on this, I presume that the swig binding in Raspbian Buster are broken somehow.
I’m going to try a clean install of Buster with 1.9.2 (rather than the upgrade I’m using now) to see if that makes a difference.