def VersionErr(): print "For best performance, please install the latest Pi-Plates library." print "Do so by executing the following from the command line:" print "sudo pip install --upgrade pi-plates" response = raw_input("Would you like to upgrade now? (y/n)") if (response.lower() == 'y'): os.system("sudo pip install --upgrade pi-plates") reload(DAQC) else: sys.exit() try: version = DAQC.getVersion() if (version < 1.02): VersionErr() except AttributeError: VersionErr() try: #check for presence of Intial State module imp.find_module('ISStreamer') ISSfound = True from ISStreamer.Streamer import Streamer except ImportError: ISSfound = False print print 'Visit https://www.initialstate.com' print 'and learn how to stream your data to the cloud.' print