How to solve Pybluez OSerror
How to solve Pybluez OSerror I would like to connect a Lego Mindstorms NXT using pybleuz to my labtop. But when I search for the Mindstorms I get the following error: import bluetooth print("performing inquiry...") nearby_devices = bluetooth.discover_devices( duration=8, lookup_names=True, flush_cache=True, lookup_class=False) print("found %d devices" % len(nearby_devices)) for addr, name in nearby_devices: try: print(" %s - %s" % (addr, name)) except UnicodeEncodeError: print(" %s - %s" % (addr, name.encode('utf-8', 'replace'))) I get the error: OSError Traceback (most recent call last) <ipython-input-8-bcb3970d611c> in <module>() 4 5 nearby_devices = bluetooth.discover_devices( ----> 6 duration=8, lookup_names=True, flush_cache=True, lookup_class=False) 7 8 print("found %d devices" % len(nearby_devices)) /...
