Message from discussion
error bluetooth
Received: by 10.204.145.140 with SMTP id d12mr17056bkv.6.1349942678262;
Thu, 11 Oct 2012 01:04:38 -0700 (PDT)
Path: q11ni134269373wiw.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!backlog1.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!not-for-mail
From: Ulrich Eckhardt <ulrich.eckha...@dominolaser.com>
Newsgroups: comp.lang.python
Subject: Re: error bluetooth
Date: Fri, 05 Oct 2012 12:03:38 +0200
Lines: 29
Message-ID: <qsn2k9-0r1.ln1@satorlaser.homedns.org>
References: <05fbbc10-241d-4976-a571-afbf5ac2c872@googlegroups.com>
Mime-Version: 1.0
X-Trace: news.uni-berlin.de Lm9NScpTffwO6vtUFjvQPwZUqg3cHp0YP/5FUH5wNtUw==
X-Orig-Path: satorlaser.homedns.org!not-for-mail
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To: <05fbbc10-241d-4976-a571-afbf5ac2c872@googlegroups.com>
Bytes: 1934
X-Original-Bytes: 1770
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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 "bluetooth.py", line 14, in <module>
> from bluetooth import *
> File "/home/luca/py-temperature/py-temperature/bluetooth.py", line 19, in <module>
> nearby_devices = discover_devices()
> NameError: name 'discover_devices' is not defined
The module "bluetooth" doesn't export any function called
discover_devices(). You could try "dir(bluetooth)" or "help(bluetooth)"
(do that from an interactive prompt) to find out what is in there. I
don't know why you expect such a function there, if it is mentioned in
the documentation or example code that would be a bug.
Uli