X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/33f0ddd6aa45b596ba788e931c3b7734b57c9682..ca7808f6268337bdfcae9d897c8de43a65b290e8:/src/board.py diff --git a/src/board.py b/src/board.py index c2469cc..92ed6b9 100755 --- a/src/board.py +++ b/src/board.py @@ -227,6 +227,14 @@ elif board_id == ap_board.PICO_U2IF: elif "sphinx" in sys.modules: pass +elif board_id is None: + import platform + import pkg_resources + package = str(pkg_resources.get_distribution('adafruit_platformdetect')).split() + raise NotImplementedError("We could not identify what IoT microcomputer running " + "{0} your Adafruit is attached to, please update the package {1} " + "verison {2} to a newer verison by running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect' " + "".format(platform.system(),package[0],package[1])) else: raise NotImplementedError("Board not supported {}".format(board_id))