error bluetooth

Luca Sanna sanluca78 at gmail.com
Fri Oct 5 08:03:00 EDT 2012


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 at 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 be named "bluetooth.py", Python will import
> 
> your script, thinking it is a module.
> 
> 
> 
> > it's a bug of the module?
> 
> 
> 
> You've chosen the wrong file name.  Rename your script.
> 
> 
> 
> 
> 
> Hope this helps,
> 
> 
> 
> -- HansM



i'm sorry, it's ok the rename file in bt.py

how do I send a ping in bluetooth?
because android phones are not always visible.
I can not find the ping command
thanks



More information about the Python-list mailing list