lobe / lobe-adafruit-kit

Everything you need to bring your machine learning ideas to life with our brand new machine learning kit in partnership with Adafruit.
https://lobe.ai
MIT License
75 stars 8 forks source link

FAILED In terminal on the Pi, run the Python program #9

Open bernardleung opened 2 years ago

bernardleung commented 2 years ago
  1. In terminal on the Pi, run the Python program lobe-basic-prediction.py Type the following commands:

Download File Copy Code cd ~ cd lobe-adafruit-kit python3 lobe-basic-prediction.py

python lobe-basic-prediction.py RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd Traceback (most recent call last): File "/home/pi/lobe-adafruit-kit/lobe-basic-prediction.py", line 5, in from lobe import ImageModel File "/usr/local/lib/python3.9/dist-packages/lobe/init.py", line 2, in from .model.image_model import ImageModel, VizEnum File "/usr/local/lib/python3.9/dist-packages/lobe/model/image_model.py", line 8, in from matplotlib import cm File "/usr/local/lib/python3.9/dist-packages/matplotlib/init.py", line 109, in from . import _api, _version, cbook, docstring, rcsetup File "/usr/local/lib/python3.9/dist-packages/matplotlib/rcsetup.py", line 27, in from matplotlib.colors import Colormap, is_color_like File "/usr/local/lib/python3.9/dist-packages/matplotlib/colors.py", line 56, in from matplotlib import _api, cbook, scale File "/usr/local/lib/python3.9/dist-packages/matplotlib/scale.py", line 23, in from matplotlib.ticker import ( File "/usr/local/lib/python3.9/dist-packages/matplotlib/ticker.py", line 136, in from matplotlib import transforms as mtransforms File "/usr/local/lib/python3.9/dist-packages/matplotlib/transforms.py", line 46, in from matplotlib._path import ( ImportError: numpy.core.multiarray failed to import pi@raspberrypi:~/lobe-adafruit-kit $ cd ~ cd lobe-adafruit-kit python3 lobe-basic-prediction.py RuntimeError: module compiled against API version 0xf but this versio