canonical / tf-lite-examples-snap

Snap packaging of TensorFlow Lite examples for Raspberry Pi
Apache License 2.0
0 stars 0 forks source link

Incorrect error message for audio classification #5

Closed farshidtz closed 6 days ago

farshidtz commented 1 week ago

https://github.com/canonical/tf-lite-examples-snap/blob/de441b1249c18ef5bf2252628cfcb4bc332dc43b/README.md?plain=1#L116-L131

This mentions the issue related to core22 base, while the snap is currently based on core20.

The core20 based snap gives the following error:

tf-lite-examples.audio-classification 
Traceback (most recent call last):
  File "/snap/tf-lite-examples/x1/tflite/audio_classification/classify.py", line 22, in <module>
    from utils import Plotter
  File "/snap/tf-lite-examples/x1/tflite/audio_classification/utils.py", line 17, in <module>
    from matplotlib import rcParams
ModuleNotFoundError: No module named 'matplotlib'

_Originally posted by @farshidtz in https://github.com/canonical/tf-lite-examples-snap/pull/2#discussion_r1658910544_

I suggest moving the error and the documentation of various scenarios to an issue.

jpm-canonical commented 6 days ago

Solved in PR #8