Re: error bluetooth

2012-10-05 Thread Luca Sanna
Il giorno venerdì 5 ottobre 2012 13:33:14 UTC+2, Hans Mulder ha scritto: > On 5/10/12 10:51:42, Luca Sanna wrote: > > > > > from bluetooth import * > > > > [..] > > > > > luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py > > > > When you say "from bluetooth im

Re: error bluetooth

2012-10-05 Thread Hans Mulder
On 5/10/12 10:51:42, Luca Sanna wrote: > from bluetooth import * [..] > luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py When you say "from bluetooth import *", Python will find a file name "bluetooth.py" and import stuff from that file. Since your script happens to

Re: error bluetooth

2012-10-05 Thread Dave Angel
On 10/05/2012 04:51 AM, Luca Sanna wrote: > the code is output the error of the ubuntu > > from bluetooth import * > > target_name = "My Phone" > target_address = None > > nearby_devices = discover_devices() > > for address in nearby_devices: > if target_name == lookup_name( address ): >

Re: error bluetooth

2012-10-05 Thread Ulrich Eckhardt
Am 05.10.2012 10:51, schrieb Luca Sanna: the code is output the error of the ubuntu from bluetooth import * [...] nearby_devices = discover_devices() [...] the error luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py Traceback (most recent call last): File "blue